Add misc keybindings

This commit is contained in:
buffet 2022-08-17 10:48:32 +00:00
parent f7d0c47d7b
commit da8e6097f9

View file

@ -8,9 +8,6 @@
EDITOR = "nvim";
};
# TODO: keybinds
# TODO: looks
# TODO: options
# TODO: completion
programs.neovim = let
leader = ",";
@ -49,7 +46,10 @@
{
plugin = lspsaga-nvim;
config = "lua require 'lspsaga'.init_lsp_saga()";
# TODO: lspsaga keybinds
config = ''
lua require 'lspsaga'.init_lsp_saga()
'';
}
{
@ -128,6 +128,18 @@
extraConfig = ''
let mapleader = "${leader}"
let g:mapleader = "${leader}"
inoremap kj <esc>
vnoremap < <gv
vnoremap > >gv
nnoremap <c-h> <c-w>h
nnoremap <c-j> <c-w>j
nnoremap <c-k> <c-w>k
nnoremap <c-l> <c-w>l
nnoremap <leader>s :w<cr>
'';
};
};