newer nvim
This commit is contained in:
parent
7e22ee11dd
commit
7781e87271
2 changed files with 13 additions and 12 deletions
|
@ -2,6 +2,7 @@
|
||||||
let g:bufferline_echo = 0
|
let g:bufferline_echo = 0
|
||||||
let g:airline_powerline_fonts = 1
|
let g:airline_powerline_fonts = 1
|
||||||
let g:airline#extensions#tabline#enabled = 1
|
let g:airline#extensions#tabline#enabled = 1
|
||||||
|
let g:airline#extensions#coc#enabled = 1
|
||||||
|
|
||||||
au BufWrite * :Autoformat
|
au BufWrite * :Autoformat
|
||||||
" let g:autoformat_verbosemode=1
|
" let g:autoformat_verbosemode=1
|
||||||
|
|
|
@ -5,6 +5,8 @@ in {
|
||||||
home.packages = with pkgs; [ ripgrep ];
|
home.packages = with pkgs; [ ripgrep ];
|
||||||
programs.neovim = {
|
programs.neovim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
package =
|
||||||
|
inputs.nixpkgs-nixos-unstable.legacyPackages."${system}".neovim-unwrapped;
|
||||||
coc = {
|
coc = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.vimUtils.buildVimPluginFrom2Nix {
|
package = pkgs.vimUtils.buildVimPluginFrom2Nix {
|
||||||
|
@ -18,17 +20,15 @@ in {
|
||||||
};
|
};
|
||||||
meta.homepage = "https://github.com/neoclide/coc.nvim/";
|
meta.homepage = "https://github.com/neoclide/coc.nvim/";
|
||||||
};
|
};
|
||||||
settings = ''
|
settings = {
|
||||||
{
|
languageserver = {
|
||||||
"languageserver": {
|
nix = {
|
||||||
"nix": {
|
command = "${nil}/bin/nil";
|
||||||
"command": "${nil}/bin/nil",
|
rootPatterns = [ "flake.nix" ];
|
||||||
"filetypes": ["nix"],
|
filetypes = [ "nix" ];
|
||||||
"rootPatterns": ["flake.nix"]
|
};
|
||||||
}
|
};
|
||||||
}
|
};
|
||||||
}
|
|
||||||
'';
|
|
||||||
|
|
||||||
};
|
};
|
||||||
viAlias = true;
|
viAlias = true;
|
||||||
|
|
Loading…
Reference in a new issue