Added shortcut for lsp format and added undotree
Signed-off-by: Vasileios Manikas <manikasv97@gmail.com>
This commit is contained in:
parent
ba93965c08
commit
8547663a2b
3 changed files with 14 additions and 0 deletions
|
|
@ -8,3 +8,9 @@ vim.keymap.set("n", "<up>", '<cmd>echo "Use k to move!!"<CR>')
|
|||
vim.keymap.set("n", "<down>", '<cmd>echo "Use j to move!!"<CR>')
|
||||
vim.keymap.set({ "n", "x" }, "<leader>y", '"+y"')
|
||||
vim.keymap.set({ "n", "x" }, "<leader>p", '"+p"')
|
||||
vim.keymap.set("n", "<leader>a", function()
|
||||
vim.lsp.buf.format({ async = true })
|
||||
end, { desc = "Format File" })
|
||||
vim.keymap.set("v", "<leader>a", function()
|
||||
vim.lsp.buf.format({ async = true })
|
||||
end, { desc = "Format Selection" })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue