add option for cheatsheet theme
and add description for some mappings
This commit is contained in:
parent
8babf12991
commit
4c3eafbc20
2 changed files with 9 additions and 5 deletions
|
@ -70,6 +70,10 @@ M.ui = {
|
||||||
{ " Themes", "Spc t f", "Telescope themes" },
|
{ " Themes", "Spc t f", "Telescope themes" },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
cheatsheet = {
|
||||||
|
theme = "grid", -- simple/grid
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
M.plugins = {}
|
M.plugins = {}
|
||||||
|
|
|
@ -64,16 +64,16 @@ M.general = {
|
||||||
t = { ["<C-x>"] = { termcodes "<C-\\><C-N>", "escape terminal mode" } },
|
t = { ["<C-x>"] = { termcodes "<C-\\><C-N>", "escape terminal mode" } },
|
||||||
|
|
||||||
v = {
|
v = {
|
||||||
["<Up>"] = { 'v:count || mode(1)[0:1] == "no" ? "k" : "gk"', opts = { expr = true } },
|
["<Up>"] = { 'v:count || mode(1)[0:1] == "no" ? "k" : "gk"', "move up", opts = { expr = true } },
|
||||||
["<Down>"] = { 'v:count || mode(1)[0:1] == "no" ? "j" : "gj"', opts = { expr = true } },
|
["<Down>"] = { 'v:count || mode(1)[0:1] == "no" ? "j" : "gj"', "move down", opts = { expr = true } },
|
||||||
},
|
},
|
||||||
|
|
||||||
x = {
|
x = {
|
||||||
["j"] = { 'v:count || mode(1)[0:1] == "no" ? "j" : "gj"', opts = { expr = true } },
|
["j"] = { 'v:count || mode(1)[0:1] == "no" ? "j" : "gj"', "move left", opts = { expr = true } },
|
||||||
["k"] = { 'v:count || mode(1)[0:1] == "no" ? "k" : "gk"', opts = { expr = true } },
|
["k"] = { 'v:count || mode(1)[0:1] == "no" ? "k" : "gk"', "move down", opts = { expr = true } },
|
||||||
-- Don't copy the replaced text after pasting in visual mode
|
-- Don't copy the replaced text after pasting in visual mode
|
||||||
-- https://vim.fandom.com/wiki/Replace_a_word_with_yanked_text#Alternative_mapping_for_paste
|
-- https://vim.fandom.com/wiki/Replace_a_word_with_yanked_text#Alternative_mapping_for_paste
|
||||||
["p"] = { 'p:let @+=@0<CR>:let @"=@0<CR>', opts = { silent = true } },
|
["p"] = { 'p:let @+=@0<CR>:let @"=@0<CR>', "dont copy replaced text", opts = { silent = true } },
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue