Replace vim.api.nvim_set_keymap with vim.keymap.set

This commit is contained in:
Sonny Bakker 2025-01-03 08:17:21 +01:00
parent 6f512112d8
commit 6115ca4be2
3 changed files with 10 additions and 15 deletions

View file

@ -4,6 +4,4 @@ local source_link = require('source-link')
source_link.setup()
local opts = { noremap = true, silent = true }
vim.api.nvim_set_keymap('n', '<C-L>', '<cmd>:SourceOpen<CR>', opts)
vim.keymap.set('n', '<C-L>', '<cmd>:SourceOpen<CR>', { noremap = true, silent = true })