nixos-config/home/neovim/default.nix

48 lines
978 B
Nix
Raw Normal View History

2020-11-01 20:27:07 +00:00
{ config, pkgs, ... }:
{
programs.neovim = {
enable = true;
vimAlias = true;
extraConfig = builtins.readFile ./init.vim;
plugins = with pkgs.vimPlugins; [
editorconfig-vim
fzf-vim
vim-airline
vim-clang-format
vim-fish
vim-fetch
vim-nftables
vim-nix
vim-sensible
vim-toml
meson
gruvbox
2020-11-01 23:40:21 +00:00
2021-11-17 23:28:16 +00:00
nvim-lspconfig
nvim-compe
];
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-11-17 23:28:16 +00:00
python3
python3Packages.ipython
2021-11-02 01:15:54 +00:00
python3Packages.pylint
2021-11-17 23:28:16 +00:00
nodePackages.pyright
2020-11-22 21:26:28 +00:00
];
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";
2021-07-07 04:17:35 +00:00
clangd = {
path = "${pkgs.clang-tools}/bin/clangd";
2021-07-07 04:17:35 +00:00
semanticHighlighting = true;
};
2021-01-11 22:32:59 +00:00
languageserver.nix = {
command = "${pkgs.rnix-lsp}/bin/rnix-lsp";
filetypes = [ "nix" ];
};
};
2020-11-01 20:27:07 +00:00
}