disable auto which key
This commit is contained in:
@ -15,6 +15,7 @@ vim.opt.termguicolors = true
|
|||||||
vim.opt.tabstop = 2
|
vim.opt.tabstop = 2
|
||||||
vim.opt.shiftwidth = 2
|
vim.opt.shiftwidth = 2
|
||||||
vim.opt.updatetime = 300
|
vim.opt.updatetime = 300
|
||||||
|
vim.opt.timeoutlen = 5000
|
||||||
vim.opt.ttimeoutlen = 5
|
vim.opt.ttimeoutlen = 5
|
||||||
vim.opt.signcolumn = "yes:2"
|
vim.opt.signcolumn = "yes:2"
|
||||||
|
|
||||||
|
|||||||
@ -46,9 +46,7 @@ which_key.setup({
|
|||||||
end,
|
end,
|
||||||
show_help = true, -- show help message on the command line when the popup is visible
|
show_help = true, -- show help message on the command line when the popup is visible
|
||||||
show_keys = true, -- show the currently pressed key and its label as a message in the command line
|
show_keys = true, -- show the currently pressed key and its label as a message in the command line
|
||||||
triggers = {
|
triggers = { },
|
||||||
{ "<auto>", mode = "nxso" },
|
|
||||||
},
|
|
||||||
-- disable the WhichKey popup for certain buf types and file types.
|
-- disable the WhichKey popup for certain buf types and file types.
|
||||||
-- Disabled by default for Telescope
|
-- Disabled by default for Telescope
|
||||||
disable = {
|
disable = {
|
||||||
@ -59,6 +57,7 @@ which_key.setup({
|
|||||||
|
|
||||||
which_key.add({
|
which_key.add({
|
||||||
{ "<leader>", group = "Hotkeys" },
|
{ "<leader>", group = "Hotkeys" },
|
||||||
|
{ "<leader>?", ":WhichKey <CR>", desc = "Show keybindings" },
|
||||||
{ "<leader>o", ":Oil --float <CR>", desc = "Oil nvim toggle" },
|
{ "<leader>o", ":Oil --float <CR>", desc = "Oil nvim toggle" },
|
||||||
{ "<leader>e", ":Neotree toggle <CR>", desc = "File tree toggle" },
|
{ "<leader>e", ":Neotree toggle <CR>", desc = "File tree toggle" },
|
||||||
{ "<leader>F", ":lua vim.lsp.buf.format() <CR>", desc = "Format file" },
|
{ "<leader>F", ":lua vim.lsp.buf.format() <CR>", desc = "Format file" },
|
||||||
|
|||||||
Reference in New Issue
Block a user