Last active
September 4, 2023 10:05
-
-
Save adamcathersides/414cb2a7623780f8ea34ce7084033ac6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
luafile ~/.config/nvim/lua/plugins/toggleterm.lua | |
nmap <localleader>k :lua _k9s_toggle()<CR>i | |
tmap <localleader>k <esc>:lua _k9s_toggle()<CR> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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