refactor(nvim): use vim.cmd instead of nvim_command
This commit is contained in:
parent
fa54bfe71d
commit
62bac217db
@ -6,7 +6,7 @@ M.setup = function()
|
||||
|
||||
-- Get rid of highlight after search
|
||||
vim.keymap.set("n", "<esc>", function()
|
||||
vim.api.nvim_command("noh")
|
||||
vim.cmd.noh()
|
||||
end, { silent = true, desc = "Remove Highlighted Searches" })
|
||||
|
||||
-- Spell Checking
|
||||
|
Loading…
Reference in New Issue
Block a user