nixos-config/home/neovim/default.nix

45 lines
909 B
Nix
Raw Normal View History

2020-11-01 20:27:07 +00:00
{ config, pkgs, ... }:
{
programs.neovim = {
enable = true;
vimAlias = true;
2021-01-11 22:32:59 +00:00
withNodeJs = true;
2020-11-01 23:40:21 +00:00
configure = {
customRC = builtins.readFile ./init.vim;
packages.default.start = with pkgs.vimPlugins; [
coc-nvim
editorconfig-vim
fzf-vim
vim-airline
vim-clang-format
2021-01-31 05:52:31 +00:00
vim-fish
2020-11-01 23:40:21 +00:00
vim-fetch
vim-nftables
vim-nix
vim-sensible
vim-toml
meson
2020-12-16 21:41:11 +00:00
gruvbox
2020-11-01 23:40:21 +00:00
coc-go
coc-json
coc-rust-analyzer
];
};
2020-11-01 20:27:07 +00:00
};
2020-11-22 21:26:28 +00:00
2021-01-11 22:32:59 +00:00
home.sessionVariables.EDITOR = "nvim";
home.packages = with pkgs; [
2020-11-22 21:26:28 +00:00
nixpkgs-fmt
];
2021-01-11 22:32:59 +00:00
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" ];
};
};
2020-11-01 20:27:07 +00:00
}