Nvim : Rekey toggle tab size to <Leader><Tab>.
This commit is contained in:
parent
ba85621ab4
commit
382b6bdb5e
|
@ -20,7 +20,7 @@ function toggle_tab_width()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
rekey_normal("<Leader>'", "<cmd>lua toggle_tab_width()<cr>")
|
rekey_normal("<Leader><Tab>", "<cmd>lua toggle_tab_width()<cr>")
|
||||||
|
|
||||||
-- Repeat previous command.
|
-- Repeat previous command.
|
||||||
rekey_normal("<Leader>.", "@:")
|
rekey_normal("<Leader>.", "@:")
|
||||||
|
|
|
@ -13,7 +13,7 @@ local function my_on_attach(bufnr)
|
||||||
api.config.mappings.default_on_attach(bufnr)
|
api.config.mappings.default_on_attach(bufnr)
|
||||||
|
|
||||||
-- Custom mappings.
|
-- Custom mappings.
|
||||||
vim.keymap.set('n', '<Leader><Tab>', api.tree.change_root_to_node, opts('Cd into'))
|
-- vim.keymap.set('n', '<Leader><Tab>', api.tree.change_root_to_node, opts('Cd into'))
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Set termguicolors to enable highlight groups.
|
-- Set termguicolors to enable highlight groups.
|
||||||
|
|
Loading…
Reference in a new issue