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
commit 5a2930fe62
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

View File

@ -30,9 +30,8 @@ return {
-- Conform can also run multiple formatters sequentially
-- python = { "isort", "black" },
--
-- You can use a sub-list to tell conform to run *until* a formatter
-- is found.
-- javascript = { { "prettierd", "prettier" } },
-- You can use 'stop_after_first' to run the first available formatter from the list
-- javascript = { "prettierd", "prettier", stop_after_first = true },
},
},
},