summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJackson Taylor <jtaylor@classicalconversations.com>2023-06-13 15:02:24 -0400
committerJackson Taylor <jtaylor@classicalconversations.com>2023-06-13 15:02:24 -0400
commit81cafe928536d68b9bf94c0adb2dd8c381eacb1d (patch)
treeab5950eb8b6d299428ab38836946fe39d04db428
parent07fc6b6714d462ebed89708b940fe3714e36fe86 (diff)
Fix call to format files
LSP has some formatters that you can use and run, this command was just written wrong.
-rw-r--r--after/plugin/which-key.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/after/plugin/which-key.lua b/after/plugin/which-key.lua
index 27ef84c..a2bfb4f 100644
--- a/after/plugin/which-key.lua
+++ b/after/plugin/which-key.lua
@@ -86,7 +86,7 @@ function whichkey_setup()
name = "Code",
a = { "<cmd>lua vim.lsp.buf.code_action()<CR>", "Code Action" },
d = { "<cmd>lua vim.diagnostic.open_float()<CR>", "Line Diagnostics" },
- f = { "<cmd>lua vim.lsp.buf.formatting()<CR>", "Format Document" },
+ f = { "<cmd>lua vim.lsp.buf.format()<CR>", "Format Document" },
i = { "<cmd>LspInfo<CR>", "Lsp Info" },
r = { "<cmd>lua vim.lsp.buf.rename()<CR>", "Rename" },
},