Add initial nvchad config
This commit is contained in:
21
nvim/lua/mappings.lua
Normal file
21
nvim/lua/mappings.lua
Normal file
@@ -0,0 +1,21 @@
|
||||
require "nvchad.mappings"
|
||||
|
||||
-- add yours here
|
||||
|
||||
local map = vim.keymap.set
|
||||
|
||||
map("n", ";", ":", { desc = "CMD enter command mode" })
|
||||
map("i", "jk", "<ESC>")
|
||||
-- Group names
|
||||
map("n", "<leader>d", "", { desc = "test" })
|
||||
|
||||
-- General
|
||||
map("n", "<leader>q", "<Cmd>confirm q<CR>", { desc = "test" })
|
||||
|
||||
-- Lsp
|
||||
map(
|
||||
"n",
|
||||
"<leader>lf",
|
||||
"<CMD> lua require('conform').format { lsp_fallback = true }<CR>",
|
||||
{ desc = "General Format file" }
|
||||
)
|
||||
Reference in New Issue
Block a user