Adding missing plugins in my vimrc
This commit is contained in:
parent
745cc894e9
commit
4a14f4505b
2 changed files with 61 additions and 32 deletions
43
vim.nix
43
vim.nix
|
@ -1,22 +1,50 @@
|
|||
# Largely adapted from: https://www.mpscholten.de/nixos/2016/04/11/setting-up-vim-on-nixos.html
|
||||
with import <nixpkgs> {};
|
||||
|
||||
vim_configurable.customize {
|
||||
let plugins = let inherit (vimUtils) buildVimPluginFrom2Nix; in {
|
||||
"better-whitespace" = buildVimPluginFrom2Nix { # created by nix#NixDerivation
|
||||
name = "better-whitespace";
|
||||
src = fetchgit {
|
||||
url = "git://github.com/ntpeters/vim-better-whitespace";
|
||||
rev = "7729bada7ad8d341b910367da8a900490bd15e86";
|
||||
sha256 = "0kkj13jjzjyv2b17sk8bka2d55czz7v6xvv0zz1i8qidvg6lbniw";
|
||||
};
|
||||
dependencies = [];
|
||||
};
|
||||
"systemd-syntax" = buildVimPluginFrom2Nix { # created by nix#NixDerivation
|
||||
name = "systemd-syntax";
|
||||
src = fetchgit {
|
||||
url = "git://github.com/Matt-Deacalion/vim-systemd-syntax";
|
||||
rev = "05bd51f87628e4b714b9d1d16259e1ead845924a";
|
||||
sha256 = "04jlbm4cf47kvys22czz1i3fcqzz4zih2h6pkcfns9s8rs6clm3c";
|
||||
};
|
||||
dependencies = [];
|
||||
};
|
||||
"opencl-syntax" = buildVimPluginFrom2Nix { # created by nix#NixDerivation
|
||||
name = "opencl-syntax";
|
||||
src = fetchgit {
|
||||
url = "git://github.com/petRUShka/vim-opencl";
|
||||
rev = "a75693fdb1526cf0f2f2d1a6bdc23d6537ac1b6f";
|
||||
sha256 = "0ba3kj65h2lsn7s0fazhmbaa7nr8b9ssda3i54259mcc4nhwvi7b";
|
||||
};
|
||||
dependencies = [];
|
||||
};
|
||||
}; in vim_configurable.customize {
|
||||
name = "vim";
|
||||
vimrcConfig.vam.knownPlugins = pkgs.vimPlugins;
|
||||
vimrcConfig.vam.knownPlugins = pkgs.vimPlugins // plugins;
|
||||
vimrcConfig.vam.pluginDictionaries = [
|
||||
{ names = [
|
||||
"vim-nix"
|
||||
"Solarized"
|
||||
"better-whitespace"
|
||||
"systemd-syntax"
|
||||
"opencl-syntax"
|
||||
"elm-vim"
|
||||
"fugitive"
|
||||
"surround"
|
||||
"elm-vim"
|
||||
"vim-nix"
|
||||
"vimtex"
|
||||
#https://github.com/vim-voom/VOoM
|
||||
#https://github.com/ntpeters/vim-better-whitespace
|
||||
#https://github.com/Matt-Deacalion/vim-systemd-syntax
|
||||
#https://github.com/tpope/vim-obsession
|
||||
#https://github.com/petRUShka/vim-opencl
|
||||
]; }
|
||||
];
|
||||
vimrcConfig.customRC = ''
|
||||
|
@ -83,6 +111,7 @@ vim_configurable.customize {
|
|||
" vimtex options
|
||||
let g:vimtex_fold_enabled=1
|
||||
let g:vimtex_fold_manual=1
|
||||
let g:vimtex_latexmk_enabled=0
|
||||
|
||||
" nice pluginless stuff
|
||||
set path+=**
|
||||
|
|
Loading…
Reference in a new issue