From c376c21b31aaee39acadc5e4148ae4d366d45f00 Mon Sep 17 00:00:00 2001 From: ottjk Date: Sat, 27 Jan 2024 15:34:03 -0500 Subject: sweep kanata config and nvim updates --- nvim/lua/keymaps.lua | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'nvim/lua/keymaps.lua') diff --git a/nvim/lua/keymaps.lua b/nvim/lua/keymaps.lua index 18b379d..1bef617 100644 --- a/nvim/lua/keymaps.lua +++ b/nvim/lua/keymaps.lua @@ -78,13 +78,11 @@ map('i', '', [[: silent exec '.!xoppdog shake "'.getline('.').'" "'.b: map('n', '', [[: silent exec '!xoppdog fetch "'.b:vimtex.root.'/figures/" > /dev/null 2>&1 &':redraw!]], opts) vim.cmd([[ -" press to expand or jump in a snippet. These can also be mapped separately -" via luasnip-expand-snippet and luasnip-jump-next. imap luasnip#expand_or_jumpable() ? 'luasnip-expand-or-jump' : '' -]]) +inoremap lua require'luasnip'.jump(-1) -map('i', '', [[lua require'luasnip'.jump(-1)]], opts) -map('s', '', [[lua require('luasnip').jump(1)]], opts) -map('s', '', [[lua require('luasnip').jump(-1)]], opts) +snoremap lua require('luasnip').jump(1) +snoremap lua require('luasnip').jump(-1) +]]) map('n', 'xx', function() require('trouble').toggle() end) -- cgit v1.3