|
|
@ -21,11 +21,11 @@ map("n", "<leader>n", "<cmd>set nu!<CR>", { desc = "Toggle Line number" })
|
|
|
|
map("n", "<leader>rn", "<cmd>set rnu!<CR>", { desc = "Toggle Relative number" })
|
|
|
|
map("n", "<leader>rn", "<cmd>set rnu!<CR>", { desc = "Toggle Relative number" })
|
|
|
|
map("n", "<leader>ch", "<cmd>NvCheatsheet<CR>", { desc = "Toggle NvCheatsheet" })
|
|
|
|
map("n", "<leader>ch", "<cmd>NvCheatsheet<CR>", { desc = "Toggle NvCheatsheet" })
|
|
|
|
|
|
|
|
|
|
|
|
-- global lsp mappings
|
|
|
|
|
|
|
|
map("n", "<leader>fm", function()
|
|
|
|
map("n", "<leader>fm", function()
|
|
|
|
vim.lsp.buf.format { async = true }
|
|
|
|
require("conform").format { lsp_fallback = true }
|
|
|
|
end, { desc = "Lsp formatting" })
|
|
|
|
end, { desc = "Format Files" })
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- global lsp mappings
|
|
|
|
map("n", "<leader>lf", vim.diagnostic.open_float, { desc = "Lsp floating diagnostics" })
|
|
|
|
map("n", "<leader>lf", vim.diagnostic.open_float, { desc = "Lsp floating diagnostics" })
|
|
|
|
map("n", "[d", vim.diagnostic.goto_prev, { desc = "Lsp prev diagnostic" })
|
|
|
|
map("n", "[d", vim.diagnostic.goto_prev, { desc = "Lsp prev diagnostic" })
|
|
|
|
map("n", "]d", vim.diagnostic.goto_next, { desc = "Lsp next diagnostic" })
|
|
|
|
map("n", "]d", vim.diagnostic.goto_next, { desc = "Lsp next diagnostic" })
|
|
|
|