[Nvim] update
This commit is contained in:
@@ -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>")
|
||||
|
||||
|
Reference in New Issue
Block a user