43 lines
878 B
Nix
43 lines
878 B
Nix
{ config, pkgs, ... }:
|
|
|
|
{
|
|
programs.neovim = {
|
|
enable = true;
|
|
vimAlias = true;
|
|
withNodeJs = true;
|
|
configure = {
|
|
customRC = builtins.readFile ./init.vim;
|
|
packages.default.start = with pkgs.vimPlugins; [
|
|
coc-nvim
|
|
editorconfig-vim
|
|
fzf-vim
|
|
vim-airline
|
|
vim-clang-format
|
|
vim-fetch
|
|
vim-nftables
|
|
vim-nix
|
|
vim-sensible
|
|
vim-toml
|
|
gruvbox
|
|
|
|
coc-go
|
|
coc-json
|
|
coc-rust-analyzer
|
|
];
|
|
};
|
|
};
|
|
|
|
home.sessionVariables.EDITOR = "nvim";
|
|
home.packages = with pkgs; [
|
|
nixpkgs-fmt
|
|
];
|
|
|
|
xdg.configFile."nvim/coc-settings.json".text = builtins.toJSON {
|
|
rust-analyzer.serverPath = "${pkgs.rust-analyzer}/bin/rust-analyzer";
|
|
languageserver.nix = {
|
|
command = "${pkgs.rnix-lsp}/bin/rnix-lsp";
|
|
filetypes = [ "nix" ];
|
|
};
|
|
};
|
|
}
|