Created
March 2, 2019 16:08
-
-
Save Jomik/92ba318d1cc8979fdb94a028ff52a087 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
{ pkgs, ... }: | |
let | |
vimPlugins = pkgs.vimPlugins // pkgs.callPackage ./plugins.nix {}; | |
in | |
{ | |
programs.neovim = { | |
viAlias = true; | |
vimAlias = true; | |
configure= { | |
customRC = '' | |
let mapleader=" " | |
tnoremap <Esc> <C-\><C-n> | |
noremap <silent> k gk | |
noremap <silent> j gj | |
noremap <silent> 0 g0 | |
noremap <silent> $ g$ | |
map Y y$ | |
''; | |
packages.myVimPackage = with vimPlugins; { | |
start = [ | |
sensible | |
echodoc | |
direnv-vim | |
defx-nvim | |
vim-highlightedyank | |
vim-commentary | |
vim-repeat | |
vim-startify | |
vim-sandwich | |
vim-closer | |
]; | |
}; | |
}; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment