Last active
March 13, 2020 16:52
-
-
Save LnL7/70c4cf3bfa967e3e2b163db8c2783296 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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