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

View File

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