add nvchad_types back & conform plugin

This commit is contained in:
siduck
2024-03-18 06:29:28 +05:30
parent 178bf21fde
commit 2e54fce028
3 changed files with 18 additions and 3 deletions
+3 -3
View File
@@ -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>ch", "<cmd>NvCheatsheet<CR>", { desc = "Toggle NvCheatsheet" })
-- global lsp mappings
map("n", "<leader>fm", function()
vim.lsp.buf.format { async = true }
end, { desc = "Lsp formatting" })
require("conform").format { lsp_fallback = true }
end, { desc = "Format Files" })
-- global lsp mappings
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_next, { desc = "Lsp next diagnostic" })