From 26e9302a62b7461ebffda8ae9a56025a90658194 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Tue, 7 Nov 2023 13:39:01 +0100 Subject: nvim: Use vim.keymap.set directly --- .config/nvim/after/plugin/fugitive.lua | 4 +--- .config/nvim/after/plugin/luasnip.lua | 5 ++--- .config/nvim/after/plugin/undotree.lua | 4 +--- 3 files changed, 4 insertions(+), 9 deletions(-) (limited to '.config/nvim/after') 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', 'gs', vim.cmd.Git) +vim.keymap.set('n', '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', '', function() luasnip.jump(1) end) -lib.remap('i', '', function() luasnip.jump(-1) end) +vim.keymap.set('i', '', function() luasnip.jump(1) end) +vim.keymap.set('i', '', 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', 'u', vim.cmd.UndotreeToggle) +vim.keymap.set('n', 'u', vim.cmd.UndotreeToggle) -- cgit v1.2.3