a ton of the old keys

This commit is contained in:
Christoph J. Scherr 2024-01-20 01:03:01 +01:00
parent d9cdc25e2f
commit c3b3363298
Signed by: PlexSheep
GPG Key ID: 7CDD0B14851A08EF
2 changed files with 42 additions and 6 deletions

View File

@ -6,6 +6,10 @@ opt.foldnestmax = 10
opt.foldlevel = 4
opt.signcolumn = "yes"
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.breakindent = false
opt.spell = true
opt.list = true
opt.timeout = true
opt.timeoutlen = 300 -- ms

View File

@ -19,6 +19,7 @@ M.disabled = {
["]c"] = "",
["<leader>h"] = "",
["<leader>ff"] = "",
["<leader>fm"] = "",
["<leader>fa"] = "",
["<leader>fw"] = "",
["<leader>fb"] = "",
@ -35,12 +36,15 @@ M.disabled = {
["<leader>ph"] = "",
["<leader>gb"] = "",
["<leader>td"] = "",
["#"] = "",
["?"] = "",
},
t = {
["<C-t>"] = "",
},
v = {
["#"] = "",
["?"] = "",
["<leader>/"] = "",
},
}
@ -65,7 +69,7 @@ M.tabufline = {
},
-- close buffer + hide terminal buffer
["<A-x>"] = {
["<A-c>"] = {
function()
require("nvchad.tabufline").close_buffer()
end,
@ -212,10 +216,22 @@ M.nvterm = {
t = {
-- preserve defaults
["<F12>"] = {
function()
require("nvterm.terminal").toggle "float"
end,
"Toggle floating term",
},
},
n = {
-- preserve defaults
["<F12>"] = {
function()
require("nvterm.terminal").toggle "float"
end,
"Toggle floating term",
},
},
}
@ -256,6 +272,9 @@ M.movements = {
-- go to beginning and end
["H"] = { "<HOME>", "Beginning of line" },
["L"] = { "<End>", "End of line" },
-- go to mark with "#"
["#"] = { "'", "go to mark" },
},
v = {
--big move
@ -305,7 +324,7 @@ M.edit = {
-- remove trailing whitespace
["<leader>fw"] = {
function()
require('mini.trailspace').trim()
require("mini.trailspace").trim()
end,
"remove whitespace",
},
@ -342,9 +361,22 @@ M.ui = {
end,
"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