add mapping, highlights for keybind cheatsheet | disable indentline in it
This commit is contained in:
parent
653a2f5337
commit
6347a00023
4 changed files with 25 additions and 3 deletions
|
|
@ -116,6 +116,7 @@ M.mappings = {
|
|||
-- custom = {}, -- custom user mappings
|
||||
|
||||
misc = {
|
||||
cheatsheet = "<leader>ch",
|
||||
close_buffer = "<leader>x",
|
||||
copy_whole_file = "<C-a>", -- copy all contents of current buffer
|
||||
line_number_toggle = "<leader>n", -- toggle line number
|
||||
|
|
|
|||
|
|
@ -31,7 +31,6 @@ M.misc = function()
|
|||
map("n", "<Esc>", ":noh <CR>")
|
||||
|
||||
-- center cursor when moving (goto_definition)
|
||||
|
||||
|
||||
-- yank from current cursor to end of line
|
||||
map("n", "Y", "yg$")
|
||||
|
|
@ -81,6 +80,7 @@ M.misc = function()
|
|||
end
|
||||
|
||||
local function required_mappings()
|
||||
map("n", maps.misc.cheatsheet, ":lua require('nvchad.cheatsheet').show() <CR>") -- show keybinds
|
||||
map("n", maps.misc.close_buffer, ":lua require('core.utils').close_buffer() <CR>") -- close buffer
|
||||
map("n", maps.misc.copy_whole_file, ":%y+ <CR>") -- copy whole file content
|
||||
map("n", maps.misc.new_buffer, ":enew <CR>") -- new buffer
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue