vim plugins
This commit is contained in:
parent
6b28c377c7
commit
8e1079a713
@ -42,7 +42,6 @@ map('n', '<Space>', 'O<ESC>')
|
||||
|
||||
-- x to blackhole
|
||||
map({'n', 'v'}, 'x', '"_x')
|
||||
map('n', '<bs>', '"_X')
|
||||
|
||||
|
||||
-- Put without overwrite yanked text
|
||||
@ -78,6 +77,10 @@ map("n", '<Leader>he', '<cmd>set list!<CR>',
|
||||
vim.opt.listchars=[[tab:→\ ,eol:↵,trail:·,extends:↷,precedes:↶]]
|
||||
|
||||
|
||||
-- Tab to go prev buffer
|
||||
map("n", "<TAB>", ":b#<CR>", {silent = true})
|
||||
|
||||
|
||||
-- Expand %% to dirname of current file in command line
|
||||
map("c", '%%', [[getcmdtype() == ':' ? expand('%:h').'/' : '%%']], {expr = true})
|
||||
|
||||
@ -109,8 +112,6 @@ function toggle_number_style()
|
||||
end
|
||||
|
||||
|
||||
|
||||
|
||||
local function set_trouble_keymap(key, cmd)
|
||||
map("n", string.format("<space>x%s", key), string.format("<cmd>TroubleToggle %s<CR>", cmd))
|
||||
end
|
||||
|
||||
@ -10,7 +10,7 @@ return {
|
||||
}
|
||||
},
|
||||
keys = {
|
||||
{ '<Leader>fb', '<cmd>Telescope buffers<CR>' },
|
||||
{ '<Leader><Leader>', '<cmd>Telescope buffers<CR>' },
|
||||
{ '<Leader>ff', '<cmd>Telescope find_files<CR>' },
|
||||
{ '<Leader>fg', '<cmd>Telescope live_grep<CR>' },
|
||||
{ '<Leader>fc', '<cmd>Telescope git_commits<CR>' },
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user