summaryrefslogtreecommitdiff
path: root/lua/ache/plugins
diff options
context:
space:
mode:
authorache <ache@ache.one>2026-02-19 18:21:00 +0100
committerache <ache@ache.one>2026-02-19 18:21:00 +0100
commitb340556fc60cd4c6d7bbaa69eaac289c1c3bac22 (patch)
tree97c08cbb9224042dda98b8fb34a86af93a795910 /lua/ache/plugins
parentFix goto next diagnostic lsp (diff)
feat: Lint based on LSP
Diffstat (limited to 'lua/ache/plugins')
-rw-r--r--lua/ache/plugins/lsp/lspconfig.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/lua/ache/plugins/lsp/lspconfig.lua b/lua/ache/plugins/lsp/lspconfig.lua
index 1d34127..2202d47 100644
--- a/lua/ache/plugins/lsp/lspconfig.lua
+++ b/lua/ache/plugins/lsp/lspconfig.lua
@@ -115,6 +115,9 @@ return {
"<cmd>LspRestart harper_ls<CR>",
{ buffer = ev.buf, silent = true, desc = "(Re)-start harper-ls, The spell checking plugin" }
)
+ vim.keymap.set("n", "<space>f", function()
+ vim.lsp.buf.format({ async = true })
+ end, { buffer = ev.buf, silent = true, desc = "LSP based format" })
end,
})