diff options
author | Jackson Taylor <jtaylor@classicalconversations.com> | 2023-06-13 15:02:24 -0400 |
---|---|---|
committer | Jackson Taylor <jtaylor@classicalconversations.com> | 2023-06-13 15:02:24 -0400 |
commit | 81cafe928536d68b9bf94c0adb2dd8c381eacb1d (patch) | |
tree | ab5950eb8b6d299428ab38836946fe39d04db428 | |
parent | 07fc6b6714d462ebed89708b940fe3714e36fe86 (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.lua | 2 |
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" }, }, |