diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-10-17 12:37:41 +0200 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-10-17 12:37:41 +0200 |
commit | c63da08e0cad6c38905b06b83d178a443393ac7e (patch) | |
tree | 6430c5a46dcb2eca1aa34644076e0d76a93c22ee | |
parent | e02461e89da0459dee3a51a58b6ec8067840fe1f (diff) |
checkpoint
-rw-r--r-- | after/plugin/autoclose.lua | 9 | ||||
-rw-r--r-- | lua/config/lazy.lua | 3 | ||||
-rw-r--r-- | lua/config/map.lua | 4 |
3 files changed, 10 insertions, 6 deletions
diff --git a/after/plugin/autoclose.lua b/after/plugin/autoclose.lua index a106b7e..b08d41c 100644 --- a/after/plugin/autoclose.lua +++ b/after/plugin/autoclose.lua @@ -9,7 +9,8 @@ local function in_comment() end end -local filetypes = require("autoclose").setup({ +local autoclose = require("autoclose") +autoclose.setup({ keys = { ["("] = { escape = false, close = true, pair = "()" }, [")"] = { escape = true, close = false, pair = "()" }, @@ -30,20 +31,20 @@ local filetypes = require("autoclose").setup({ escape = true, close = true, pair = "``", - enabled_fileptypes = { "markdown", "go", "javascript" }, + enabled_filetypes = { "markdown", "go", "javascript" }, }, ["_"] = { escape = false, close = true, pair = "__", - enabled_fileptypes = { "markdown" }, + enabled_filetypes = { "markdown" }, disabled_when = in_comment, }, ["*"] = { escape = false, close = true, pair = "**", - enabled_fileptypes = { "markdown" }, + enabled_filetypes = { "markdown" }, disabled_when = in_comment, }, }, diff --git a/lua/config/lazy.lua b/lua/config/lazy.lua index 15ac268..5d61d75 100644 --- a/lua/config/lazy.lua +++ b/lua/config/lazy.lua @@ -52,8 +52,7 @@ require("lazy").setup({ event = "VeryLazy", config = function() require("lsp_signature").setup({ - doc_lines = 0, - hint_enable = false, + -- hint_enable = false, }) end, }, diff --git a/lua/config/map.lua b/lua/config/map.lua index 61bb952..b223650 100644 --- a/lua/config/map.lua +++ b/lua/config/map.lua @@ -92,3 +92,7 @@ map("n", "<C-s>g", "z=1<cr><cr>", { noremap = true }) map("n", " td", function() vim.diagnostic.enable(verbose_toggle(vim.diagnostic.is_enabled(), "diagnostics")) end, { desc = "Toggle diagnostics" }) + +-- editing +map("n", " sf", ":%s/\\<<C-R><C-W>\\>//gc<Left><Left><Left>", { desc = "Replace word under cursor in file" }) +map("n", " sl", "", { desc = "Replace word under cursor on current line" }) |