a ton of the old keys
This commit is contained in:
parent
d9cdc25e2f
commit
c3b3363298
|
@ -6,6 +6,10 @@ opt.foldnestmax = 10
|
||||||
opt.foldlevel = 4
|
opt.foldlevel = 4
|
||||||
opt.signcolumn = "yes"
|
opt.signcolumn = "yes"
|
||||||
opt.spelllang = "en,de"
|
opt.spelllang = "en,de"
|
||||||
opt.clipboard = "" -- dont just use the system clipboard
|
opt.clipboard = "" -- don't just use the system clipboard
|
||||||
opt.wrap = false
|
opt.wrap = false
|
||||||
opt.breakindent = false
|
opt.breakindent = false
|
||||||
|
opt.spell = true
|
||||||
|
opt.list = true
|
||||||
|
opt.timeout = true
|
||||||
|
opt.timeoutlen = 300 -- ms
|
||||||
|
|
|
@ -19,6 +19,7 @@ M.disabled = {
|
||||||
["]c"] = "",
|
["]c"] = "",
|
||||||
["<leader>h"] = "",
|
["<leader>h"] = "",
|
||||||
["<leader>ff"] = "",
|
["<leader>ff"] = "",
|
||||||
|
["<leader>fm"] = "",
|
||||||
["<leader>fa"] = "",
|
["<leader>fa"] = "",
|
||||||
["<leader>fw"] = "",
|
["<leader>fw"] = "",
|
||||||
["<leader>fb"] = "",
|
["<leader>fb"] = "",
|
||||||
|
@ -35,12 +36,15 @@ M.disabled = {
|
||||||
["<leader>ph"] = "",
|
["<leader>ph"] = "",
|
||||||
["<leader>gb"] = "",
|
["<leader>gb"] = "",
|
||||||
["<leader>td"] = "",
|
["<leader>td"] = "",
|
||||||
|
["#"] = "",
|
||||||
|
["?"] = "",
|
||||||
},
|
},
|
||||||
t = {
|
t = {
|
||||||
["<C-t>"] = "",
|
["<C-t>"] = "",
|
||||||
},
|
},
|
||||||
v = {
|
v = {
|
||||||
|
["#"] = "",
|
||||||
|
["?"] = "",
|
||||||
["<leader>/"] = "",
|
["<leader>/"] = "",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@ -65,7 +69,7 @@ M.tabufline = {
|
||||||
},
|
},
|
||||||
|
|
||||||
-- close buffer + hide terminal buffer
|
-- close buffer + hide terminal buffer
|
||||||
["<A-x>"] = {
|
["<A-c>"] = {
|
||||||
function()
|
function()
|
||||||
require("nvchad.tabufline").close_buffer()
|
require("nvchad.tabufline").close_buffer()
|
||||||
end,
|
end,
|
||||||
|
@ -212,10 +216,22 @@ M.nvterm = {
|
||||||
|
|
||||||
t = {
|
t = {
|
||||||
-- preserve defaults
|
-- preserve defaults
|
||||||
|
["<F12>"] = {
|
||||||
|
function()
|
||||||
|
require("nvterm.terminal").toggle "float"
|
||||||
|
end,
|
||||||
|
"Toggle floating term",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
n = {
|
n = {
|
||||||
-- preserve defaults
|
-- preserve defaults
|
||||||
|
["<F12>"] = {
|
||||||
|
function()
|
||||||
|
require("nvterm.terminal").toggle "float"
|
||||||
|
end,
|
||||||
|
"Toggle floating term",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -256,6 +272,9 @@ M.movements = {
|
||||||
-- go to beginning and end
|
-- go to beginning and end
|
||||||
["H"] = { "<HOME>", "Beginning of line" },
|
["H"] = { "<HOME>", "Beginning of line" },
|
||||||
["L"] = { "<End>", "End of line" },
|
["L"] = { "<End>", "End of line" },
|
||||||
|
|
||||||
|
-- go to mark with "#"
|
||||||
|
["#"] = { "'", "go to mark" },
|
||||||
},
|
},
|
||||||
v = {
|
v = {
|
||||||
--big move
|
--big move
|
||||||
|
@ -305,7 +324,7 @@ M.edit = {
|
||||||
-- remove trailing whitespace
|
-- remove trailing whitespace
|
||||||
["<leader>fw"] = {
|
["<leader>fw"] = {
|
||||||
function()
|
function()
|
||||||
require('mini.trailspace').trim()
|
require("mini.trailspace").trim()
|
||||||
end,
|
end,
|
||||||
"remove whitespace",
|
"remove whitespace",
|
||||||
},
|
},
|
||||||
|
@ -342,9 +361,22 @@ M.ui = {
|
||||||
end,
|
end,
|
||||||
"toggle wrap",
|
"toggle wrap",
|
||||||
},
|
},
|
||||||
|
|
||||||
|
-- toggle some features
|
||||||
|
["<leader>tn"] = { "<cmd>setlocal nonumber!<CR>", "toggle line numbers" },
|
||||||
|
["<leader>trn"] = { "<cmd>setlocal nornu!<CR>", "toggle relative line numbers" },
|
||||||
|
["<leader>ts"] = { "<cmd>setlocal spell!<CR>", "toggle spell check" },
|
||||||
|
|
||||||
|
-- open windows
|
||||||
|
['<leader>"'] = { "<cmd>vsplit<CR>", "open a new window to the side" },
|
||||||
|
["<leader>%"] = { "<cmd>split<CR>", "open a new window on the totop" },
|
||||||
|
|
||||||
|
-- tabs
|
||||||
|
["<leader>wtn"] = { "<cmd>tabnew<CR>", "open a new tab" },
|
||||||
|
["<leader>wtc"] = { "<cmd>tabclose<CR>", "close current tab" },
|
||||||
|
["<leader>wtj"] = { "<cmd>tabnext<CR>", "open a new tab" },
|
||||||
|
["<leader>wtk"] = { "<cmd>tabprevious<CR>", "open a new tab" },
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
-- more keybinds!
|
|
||||||
|
|
||||||
return M
|
return M
|
||||||
|
|
Loading…
Reference in New Issue