Merge 'upstream' conform warning, redundant hlsearch

Modify conform comments to prevent deprecation warning when used
Remove redundant hlsearch option
This commit is contained in:
Damjan 9000
2024-07-28 20:50:15 +02:00
2 changed files with 4 additions and 5 deletions

View File

@@ -1,8 +1,8 @@
-- [[ Basic Keymaps ]]
-- See `:help vim.keymap.set()`
-- Set highlight on search, but clear on pressing <Esc> in normal mode
vim.opt.hlsearch = true
-- Clear highlights on search when pressing <Esc> in normal mode
-- See `:help hlsearch`
vim.keymap.set('n', '<Esc>', '<cmd>nohlsearch<CR>')
-- Diagnostic keymaps