[Nvim] update

This commit is contained in:
2025-08-04 02:27:47 +02:00
parent 8d1ad42d68
commit ca4806267c
7 changed files with 1043 additions and 72 deletions

View File

@@ -5,7 +5,15 @@ require "nvchad.mappings"
local map = vim.keymap.set
map("n", ";", ":", { desc = "CMD enter command mode" })
map({ "n", "i", "v" }, "<leader>dg", "<cmd> lua vim.diagnostic.open_float()<cr>", { desc = "Float diagnostic" })
map("n", "gd", vim.lsp.buf.definition, { desc = "Go to definition" })
local builtin = require "telescope.builtin"
map("n", "gD", builtin.lsp_definitions, { desc = "Go to definitions" })
map("n", "grr", builtin.lsp_references, { desc = "Go to references" })
map({ "n", "v" }, "<leader>ge", ":Gen<CR>")
map("n", "<leader>gl", "<cmd>lua vim.lsp.buf.code_action()<CR>", { noremap = true, silent = true })
-- map({ "n", "i", "v" }, "<C-s>", "<cmd> w <cr>")