Skip to content

Instantly share code, notes, and snippets.

@adamcathersides
Last active September 4, 2023 10:05
Show Gist options
  • Save adamcathersides/414cb2a7623780f8ea34ce7084033ac6 to your computer and use it in GitHub Desktop.
Save adamcathersides/414cb2a7623780f8ea34ce7084033ac6 to your computer and use it in GitHub Desktop.
luafile ~/.config/nvim/lua/plugins/toggleterm.lua
nmap <localleader>k :lua _k9s_toggle()<CR>i
tmap <localleader>k <esc>:lua _k9s_toggle()<CR>
require("toggleterm").setup{
direction = 'float'
}
local Terminal = require('toggleterm.terminal').Terminal
local k9s = Terminal:new({
cmd = 'k9s',
direction = 'float',
})
k9s:spawn()
function _k9s_toggle()
k9s:toggle()
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment