From da8e6097f9ded8e54ba08c41616b551115838726 Mon Sep 17 00:00:00 2001 From: buffet Date: Wed, 17 Aug 2022 10:48:32 +0000 Subject: [PATCH] Add misc keybindings --- programs/nvim.nix | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/programs/nvim.nix b/programs/nvim.nix index ef38223..cac73db 100644 --- a/programs/nvim.nix +++ b/programs/nvim.nix @@ -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 + + vnoremap < >gv + + nnoremap h + nnoremap j + nnoremap k + nnoremap l + + nnoremap s :w ''; }; };