diff options
author | Thomas Voss <mail@thomasvoss.com> | 2023-11-07 13:39:01 +0100 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2023-11-07 13:39:01 +0100 |
commit | 26e9302a62b7461ebffda8ae9a56025a90658194 (patch) | |
tree | 73147340e6c9eef3d3cba0fffc96c811c39be4c3 /.config/nvim/after | |
parent | 057345a82b916bb3b1043b0b91fe3a86631ce572 (diff) |
nvim: Use vim.keymap.set directly
Diffstat (limited to '.config/nvim/after')
-rw-r--r-- | .config/nvim/after/plugin/fugitive.lua | 4 | ||||
-rw-r--r-- | .config/nvim/after/plugin/luasnip.lua | 5 | ||||
-rw-r--r-- | .config/nvim/after/plugin/undotree.lua | 4 |
3 files changed, 4 insertions, 9 deletions
diff --git a/.config/nvim/after/plugin/fugitive.lua b/.config/nvim/after/plugin/fugitive.lua index 39f7df6..6e1b92d 100644 --- a/.config/nvim/after/plugin/fugitive.lua +++ b/.config/nvim/after/plugin/fugitive.lua @@ -1,3 +1 @@ -local lib = require('mango.lib') - -lib.remap('n', '<leader>gs', vim.cmd.Git) +vim.keymap.set('n', '<leader>gs', vim.cmd.Git) diff --git a/.config/nvim/after/plugin/luasnip.lua b/.config/nvim/after/plugin/luasnip.lua index 42103bc..8216615 100644 --- a/.config/nvim/after/plugin/luasnip.lua +++ b/.config/nvim/after/plugin/luasnip.lua @@ -1,5 +1,4 @@ local luasnip = require('luasnip') -local lib = require('mango.lib') -lib.remap('i', '<C-l>', function() luasnip.jump(1) end) -lib.remap('i', '<C-h>', function() luasnip.jump(-1) end) +vim.keymap.set('i', '<C-l>', function() luasnip.jump(1) end) +vim.keymap.set('i', '<C-h>', function() luasnip.jump(-1) end) diff --git a/.config/nvim/after/plugin/undotree.lua b/.config/nvim/after/plugin/undotree.lua index ff5625d..a346462 100644 --- a/.config/nvim/after/plugin/undotree.lua +++ b/.config/nvim/after/plugin/undotree.lua @@ -1,3 +1 @@ -local lib = require('mango.lib') - -lib.remap('n', '<leader>u', vim.cmd.UndotreeToggle) +vim.keymap.set('n', '<leader>u', vim.cmd.UndotreeToggle) |