Skip to content

Commit

Permalink
add format keybind like vscode
Browse files Browse the repository at this point in the history
  • Loading branch information
ShortArrow committed Apr 12, 2024
1 parent 6f79e08 commit 304d26a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nvim/lua/my/keymaps.lua
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,7 @@ M.maps = {
{ "<Leader>lk", vim.lsp.buf.hover, desc = "show references (Lsp References)" },
{ "<Leader>ld", vim.lsp.buf.definition, desc = "jump to definition (Lsp Definition)" },
{ "<Leader>lf", vim.lsp.buf.format, desc = "auto formatting (Lsp Formatting)" },
{ "<A-F>", vim.lsp.buf.format, desc = "auto formatting (Lsp Formatting)" },
{ "<Leader>lr", vim.lsp.buf.references, desc = "show references (Lsp References)" },
-- rename (Lsp Name)
-- { '<Leader>ln', ':lua vim.lsp.buf.rename()<CR>', },
Expand Down

0 comments on commit 304d26a

Please sign in to comment.