newer nvim

This commit is contained in:
Cyryl Płotnicki 2022-10-15 09:39:12 +01:00
parent 7e22ee11dd
commit 7781e87271
2 changed files with 13 additions and 12 deletions

View file

@ -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

View file

@ -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;
@ -93,7 +93,7 @@ in {
]; ];
extraConfig = '' extraConfig = ''
if filereadable($HOME . "/.vimrc") if filereadable($HOME . "/.vimrc")
source $HOME/.vimrc source $HOME/.vimrc
endif endif
''; '';
}; };