dotfiles/nixos/programs/vim.nix

50 lines
1.2 KiB
Nix
Raw Normal View History

2019-11-23 09:03:58 +00:00
{ config, pkgs, ... }:
{
2020-05-02 10:05:10 +01:00
home.file.".vimrc".source = ~/dev/dotfiles/.vimrc.nixos;
home.packages = with pkgs; [
unstable.rust-analyzer
nodejs
(
neovim.override {
vimAlias = true;
configure = {
customRC = ''
if filereadable($HOME . "/.vimrc")
2019-11-23 09:03:58 +00:00
source $HOME/.vimrc
2020-05-02 10:05:10 +01:00
endif
'';
2019-11-23 09:03:58 +00:00
2020-05-02 10:05:10 +01:00
vam.knownPlugins = vimPlugins;
vam.pluginDictionaries = [
{ names = [
"ack-vim"
"coc-highlight"
"coc-nvim"
"coc-tabnine"
"ctrlp-vim"
"editorconfig-vim"
"fzf-vim"
"nerdtree"
"nerdtree-git-plugin"
"rust-vim"
"tabular"
"vim-airline"
"vim-airline-themes"
"vim-autoformat"
"vim-colors-solarized"
"vim-dirdiff"
"vim-dispatch"
"vim-fugitive"
"vim-gitgutter"
"vim-markdown"
"vim-nix"
"vim-sensible"
"vim-startify"
"vim-surround"
"vim-toml"
];}];
};})
2019-11-23 09:03:58 +00:00
2020-05-02 10:05:10 +01:00
];
}