2024-03-09 21:33:44 +05:30
|
|
|
require "nvchad.mappings"
|
|
|
|
|
|
|
|
|
|
-- add yours here
|
|
|
|
|
|
|
|
|
|
local map = vim.keymap.set
|
|
|
|
|
|
|
|
|
|
map("n", ";", ":", { desc = "CMD enter command mode" })
|
2024-03-18 06:41:03 +05:30
|
|
|
map("i", "jk", "<ESC>")
|
2024-03-09 21:33:44 +05:30
|
|
|
|
2025-01-20 10:25:05 +01:00
|
|
|
map("n","<C-PageDown>", "<cmd>bnext<cr>", { desc = "Next buffer" })
|
|
|
|
|
map("n","<C-PageUp>", "<cmd>bprevious<cr>",{ desc = "Previous buffer" })
|
|
|
|
|
map('n',"gra", function() vim.lsp.buf.code_action() end, {desc = "vim.lsp.buf.code_action()" })
|
|
|
|
|
map("x","gra", function() vim.lsp.buf.code_action() end, { desc = "vim.lsp.buf.code_action()" })
|
|
|
|
|
map("n","grn", function() vim.lsp.buf.rename() end ,{desc = "vim.lsp.buf.rename()" })
|
|
|
|
|
map("n","grr", function() vim.lsp.buf.references() end ,{ desc = "vim.lsp.buf.references()" })
|
2024-03-18 06:41:03 +05:30
|
|
|
-- map({ "n", "i", "v" }, "<C-s>", "<cmd> w <cr>")
|