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:airline_powerline_fonts = 1
|
||||
let g:airline#extensions#tabline#enabled = 1
|
||||
let g:airline#extensions#coc#enabled = 1
|
||||
|
||||
au BufWrite * :Autoformat
|
||||
" let g:autoformat_verbosemode=1
|
||||
|
|
|
@ -5,6 +5,8 @@ in {
|
|||
home.packages = with pkgs; [ ripgrep ];
|
||||
programs.neovim = {
|
||||
enable = true;
|
||||
package =
|
||||
inputs.nixpkgs-nixos-unstable.legacyPackages."${system}".neovim-unwrapped;
|
||||
coc = {
|
||||
enable = true;
|
||||
package = pkgs.vimUtils.buildVimPluginFrom2Nix {
|
||||
|
@ -18,17 +20,15 @@ in {
|
|||
};
|
||||
meta.homepage = "https://github.com/neoclide/coc.nvim/";
|
||||
};
|
||||
settings = ''
|
||||
{
|
||||
"languageserver": {
|
||||
"nix": {
|
||||
"command": "${nil}/bin/nil",
|
||||
"filetypes": ["nix"],
|
||||
"rootPatterns": ["flake.nix"]
|
||||
}
|
||||
}
|
||||
}
|
||||
'';
|
||||
settings = {
|
||||
languageserver = {
|
||||
nix = {
|
||||
command = "${nil}/bin/nil";
|
||||
rootPatterns = [ "flake.nix" ];
|
||||
filetypes = [ "nix" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
viAlias = true;
|
||||
|
@ -93,7 +93,7 @@ in {
|
|||
];
|
||||
extraConfig = ''
|
||||
if filereadable($HOME . "/.vimrc")
|
||||
source $HOME/.vimrc
|
||||
source $HOME/.vimrc
|
||||
endif
|
||||
'';
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue