fix(nvim): toggleterm registration key #10

Merged
joao.dubas merged 1 commits from jpd-fix-toggleterm-definitions into main 2023-10-29 21:06:31 +00:00

View File

@ -83,10 +83,10 @@ return {
shell = vim.o.shell, shell = vim.o.shell,
}, },
keys = function () keys = function ()
local status_ok, which_key = pcall(require, 'which_key') local status_ok, which_key = pcall(require, 'which-key')
if status_ok then if status_ok then
which_key.register({ which_key.register({
['<leader>o'] = { name = 'To[g]gle terminal', _ = 'which_key_ignore' } ['<leader>o'] = { name = 'T[o]ggle terminal', _ = 'which_key_ignore' }
}) })
end end
vim.api.nvim_create_autocmd('TermOpen', { vim.api.nvim_create_autocmd('TermOpen', {