aboutsummaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/keymaps.lua4
-rw-r--r--lua/kickstart/plugins/conform.lua5
2 files changed, 4 insertions, 5 deletions
diff --git a/lua/keymaps.lua b/lua/keymaps.lua
index 46e815c..c07a08a 100644
--- a/lua/keymaps.lua
+++ b/lua/keymaps.lua
@@ -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
diff --git a/lua/kickstart/plugins/conform.lua b/lua/kickstart/plugins/conform.lua
index 4f280f7..e7fc728 100644
--- a/lua/kickstart/plugins/conform.lua
+++ b/lua/kickstart/plugins/conform.lua
@@ -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 },
},
},
},