tabularize base config

This commit is contained in:
spike 2022-08-27 05:44:09 +02:00
parent 7ceb7a4685
commit 4660c0f0d2
2 changed files with 22 additions and 4 deletions

View File

@ -85,7 +85,6 @@ M.general = { --{{{
-- luasnip edit snippets
["<leader>se"] = {
function()
@ -123,7 +122,7 @@ M.general = { --{{{
},
-- quick close window
["<leader><BS>"] = {"<C-w>c", "close window"},
["<leader><Down>"] = {"<C-w>c", "close window"},
@ -146,6 +145,14 @@ M.general = { --{{{
["<leader>ep"] = { "<cmd> cp <CR>", "previous error" },
-- Tabularize mappings
["<leader>a&"] = { "<cmd> Tabularize /&<CR>" },
["<leader>a="] = { "<cmd> Tabularize /^[^=]*\zs=<CR>" },
["<leader>a:"] = { "<cmd> Tabularize /:<CR>" },
["<leader>a,"] = { "<cmd> Tabularize /,<CR>" },
["<leader>a<Bar>"] = { "<cmd> Tabularize /<Bar><CR>" },
["g."] = { ":cwd<CR>", "change dir to current file", opts = { remap = true } },
["<leader>g."] = { ":Gcd<CR>", "change dir to git root" },
@ -202,6 +209,13 @@ M.general = { --{{{
-- http://stackoverflow.com/a/8064607/127816
["."] = { ":normal .<CR>", opts = { silent = true } },
-- Tabularize mappings
["<leader>a&"] = { "<cmd> Tabularize /&<CR>" },
["<leader>a="] = { "<cmd> Tabularize /^[^=]*\zs=<CR>" },
["<leader>a:"] = { "<cmd> Tabularize /:<CR>" },
["<leader>a,"] = { "<cmd> Tabularize /,<CR>" },
["<leader>a<Bar>"] = { "<cmd> Tabularize /<Bar><CR>" },
},
-- command line mappings
@ -214,6 +228,7 @@ M.general = { --{{{
["w!!"] = { "w !doas tee %", "write file with root perms" },
["%%"] = { "<C-R>=fnameescape(expand('%:h')).'/'<cr>",
"alias to current working dir"},
["Tab"] = { "Tabularize"},
}
} --}}}

View File

@ -74,6 +74,9 @@ return {
end
},
["tpope/vim-surround"] = {},
["godlygeek/tabular"] = {
cmd = "Tabularize"
},
--
-- misc general plugins
-- Read info files