clean mappings conf
This commit is contained in:
parent
c02b1a063f
commit
9635b45404
|
@ -56,8 +56,7 @@ M.misc = function()
|
||||||
map(
|
map(
|
||||||
"n",
|
"n",
|
||||||
maps.theme_toggler,
|
maps.theme_toggler,
|
||||||
":lua require('nvchad').toggle_theme(require('core.utils').load_config().ui.theme_toggler.fav_themes) <CR>",
|
":lua require('nvchad').toggle_theme(require('core.utils').load_config().ui.theme_toggler.fav_themes) <CR>"
|
||||||
opt
|
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -80,12 +79,7 @@ M.misc = function()
|
||||||
map("n", term_maps.pick_term, ":Telescope terms <CR>")
|
map("n", term_maps.pick_term, ":Telescope terms <CR>")
|
||||||
-- Open terminals
|
-- Open terminals
|
||||||
-- TODO this opens on top of an existing vert/hori term, fixme
|
-- TODO this opens on top of an existing vert/hori term, fixme
|
||||||
map(
|
map("n", term_maps.new_horizontal, ":execute 15 .. 'new +terminal' | let b:term_type = 'hori' | startinsert <CR>")
|
||||||
"n",
|
|
||||||
term_maps.new_horizontal,
|
|
||||||
":execute 15 .. 'new +terminal' | let b:term_type = 'hori' | startinsert <CR>",
|
|
||||||
opt
|
|
||||||
)
|
|
||||||
map("n", term_maps.new_vertical, ":execute 'vnew +terminal' | let b:term_type = 'vert' | startinsert <CR>")
|
map("n", term_maps.new_vertical, ":execute 'vnew +terminal' | let b:term_type = 'vert' | startinsert <CR>")
|
||||||
map("n", term_maps.new_window, ":execute 'terminal' | let b:term_type = 'wind' | startinsert <CR>")
|
map("n", term_maps.new_window, ":execute 'terminal' | let b:term_type = 'wind' | startinsert <CR>")
|
||||||
-- terminal mappings end --
|
-- terminal mappings end --
|
||||||
|
@ -104,7 +98,6 @@ M.misc = function()
|
||||||
|
|
||||||
-- add ChadReload command and maping
|
-- add ChadReload command and maping
|
||||||
cmd "silent! command! NvChadReload lua require('chad_reload').Restart()"
|
cmd "silent! command! NvChadReload lua require('chad_reload').Restart()"
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
local function user_config_mappings()
|
local function user_config_mappings()
|
||||||
|
@ -144,8 +137,7 @@ M.chadsheet = function()
|
||||||
map(
|
map(
|
||||||
"n",
|
"n",
|
||||||
m.user_keys,
|
m.user_keys,
|
||||||
":lua require('cheatsheet').show_cheatsheet_telescope{bundled_cheatsheets = false, bundled_plugin_cheatsheets = false } <CR>",
|
":lua require('cheatsheet').show_cheatsheet_telescope{bundled_cheatsheets = false, bundled_plugin_cheatsheets = false } <CR>"
|
||||||
opt
|
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -167,7 +159,7 @@ end
|
||||||
|
|
||||||
M.nvimtree = function()
|
M.nvimtree = function()
|
||||||
map("n", plugin_maps.nvimtree.toggle, ":NvimTreeToggle <CR>")
|
map("n", plugin_maps.nvimtree.toggle, ":NvimTreeToggle <CR>")
|
||||||
map("n", plugin_maps.nvimtree.focus, ":NvimTreeFocus <CR>")
|
map("n", plugin_maps.nvimtree.focus, ":NvimTreeFocus <CR>")
|
||||||
end
|
end
|
||||||
|
|
||||||
M.neoformat = function()
|
M.neoformat = function()
|
||||||
|
@ -179,7 +171,7 @@ M.telescope = function()
|
||||||
|
|
||||||
map("n", m.buffers, ":Telescope buffers <CR>")
|
map("n", m.buffers, ":Telescope buffers <CR>")
|
||||||
map("n", m.find_files, ":Telescope find_files <CR>")
|
map("n", m.find_files, ":Telescope find_files <CR>")
|
||||||
map("n", m.find_hiddenfiles, ":Telescope find_files hidden=true <CR>", opt)
|
map("n", m.find_hiddenfiles, ":Telescope find_files hidden=true <CR>")
|
||||||
map("n", m.git_commits, ":Telescope git_commits <CR>")
|
map("n", m.git_commits, ":Telescope git_commits <CR>")
|
||||||
map("n", m.git_status, ":Telescope git_status <CR>")
|
map("n", m.git_status, ":Telescope git_status <CR>")
|
||||||
map("n", m.help_tags, ":Telescope help_tags <CR>")
|
map("n", m.help_tags, ":Telescope help_tags <CR>")
|
||||||
|
|
Loading…
Reference in New Issue