Skip to content

Instantly share code, notes, and snippets.

@LnL7
Last active March 13, 2020 16:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LnL7/70c4cf3bfa967e3e2b163db8c2783296 to your computer and use it in GitHub Desktop.
Save LnL7/70c4cf3bfa967e3e2b163db8c2783296 to your computer and use it in GitHub Desktop.
self: super:
{
vimPlugins = super.vimPlugins // {
pytest-vim-compiler = super.vimUtils.buildVimPluginFrom2Nix {
pname = "pytest-vim-compiler";
version = "2015-05-28";
src = super.fetchFromGitHub {
owner = "5long";
repo = "pytest-vim-compiler";
rev = "f7c4cd0302c7baedffb45857e63eb4182d8ac45b";
sha256 = "1j4nn26yfl17aid85qahc7li95wmkp8lg2z4q1jq2q16lda14ws8";
};
};
};
neovim = super.neovim.override {
configure = {
packages.foo.start = with self.vimPlugins; [ ale deoplete-nvim pytest-vim-compiler ];
customRC = ''
" deoplete
inoremap <expr><C-g> deoplete#undo_completion()
inoremap <expr><C-l> deoplete#refresh()
inoremap <silent><expr><C-Tab> deoplete#mappings#manual_complete()
inoremap <silent><expr><Tab> pumvisible() ? "\<C-n>" : "\<TAB>"
let g:deoplete#enable_at_startup = 1
if filereadable($HOME . '/.vimrc')
source ~/.vimrc
endif
'';
};
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment