-
As in the title. I've tried couple of things based on docs for overwriting keybinds, however it doesn't seem to do the trick. So I've tried simply overwriting keybind - didn't work, then disable keybind and overwrite - also didn't work, even just disabling keybind doesn't work, unless I'm doing something incorrectly. To give it some more context, I want to have the same keybind for toggling the terminal, however I want it to spawn with specified shell and not default one. {
"folke/snacks.nvim",
priority = 1000,
lazy = false,
---@type snacks.Config
opts = {
terminal = {
win = {
border = "rounded",
position = "float",
},
},
},
keys = {
{ "<c-/>", false },
{
"<c-/>",
function()
Snacks.terminal.toggle("nu")
end,
desc = "Toggle Terminal",
},
},
}, |
Beta Was this translation helpful? Give feedback.
Answered by
f1uff3h
Nov 12, 2024
Replies: 1 comment 2 replies
-
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
Raekker
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
setting
{ "<c-/>", false }
disables your keymap so second one is not registered. simply delete this line and it should work for you. see screenshots belowbut if you just want to start your terminal with Nushell you're better off setting
LazyVim.terminal.setup("nu")
in your options.lua (as per LazyVim docs)