diff options
| author | Brahmajit Das <listout@listout.xyz> | 2026-02-06 02:40:16 +0000 |
|---|---|---|
| committer | Brahmajit Das <listout@listout.xyz> | 2026-02-06 02:40:16 +0000 |
| commit | 7e35baacfdeeb7f834fa37841c9d3a2189a976d0 (patch) | |
| tree | 0389a39b57cc83cf987590e1f7cb8434fcf4d16d /plugin/keymaps.lua | |
| parent | 339d7318c04d2ef00724fe409691bd4274182401 (diff) | |
| download | nvim-7e35baacfdeeb7f834fa37841c9d3a2189a976d0.tar.gz | |
removes usage of vim.api.nvim_set_keymap and replaces them with
vim.keymaps.set
Signed-off-by: Brahmajit Das <listout@listout.xyz>
Diffstat (limited to 'plugin/keymaps.lua')
| -rw-r--r-- | plugin/keymaps.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/keymaps.lua b/plugin/keymaps.lua index 0f4c5dd..1f596a1 100644 --- a/plugin/keymaps.lua +++ b/plugin/keymaps.lua @@ -7,7 +7,7 @@ local function map(mode, lhs, rhs, opts) if opts then options = vim.tbl_extend('force', options, opts) end - vim.api.nvim_set_keymap(mode, lhs, rhs, options) + vim.keymap.set(mode, lhs, rhs, options) end ----------------------------------------------------------- @@ -42,7 +42,7 @@ map('n', '<leader>M', ':Maps<CR>') -- FZF show normal mode mappings map('n', '<leader>E', ':NvimTreeToggle<CR>') -local keymap = vim.api.nvim_set_keymap +local keymap = vim.keymap.set local opts = { noremap = true, silent = true } keymap("i", "<c-j>", "<cmd>lua require'luasnip'.jump(1)<CR>", opts) keymap("s", "<c-j>", "<cmd>lua require'luasnip'.jump(1)<CR>", opts) |
