diff options
author | Joe <rbo@gmx.us> | 2024-01-04 10:26:24 +0100 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2024-01-04 10:26:24 +0100 |
commit | 84eaa3fec23cfb89d775ae43795c234b05649edd (patch) | |
tree | 777bbadd47cca98a44887f7b5f932068a146c7d7 /.config/nvim | |
parent | up (diff) | |
download | dotfiles-bsd-84eaa3fec23cfb89d775ae43795c234b05649edd.tar.gz dotfiles-bsd-84eaa3fec23cfb89d775ae43795c234b05649edd.tar.bz2 dotfiles-bsd-84eaa3fec23cfb89d775ae43795c234b05649edd.tar.xz dotfiles-bsd-84eaa3fec23cfb89d775ae43795c234b05649edd.tar.zst dotfiles-bsd-84eaa3fec23cfb89d775ae43795c234b05649edd.zip |
up
Diffstat (limited to '.config/nvim')
-rw-r--r-- | .config/nvim/after/plugin/toggleterm.lua | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/.config/nvim/after/plugin/toggleterm.lua b/.config/nvim/after/plugin/toggleterm.lua index 961db87..766de24 100644 --- a/.config/nvim/after/plugin/toggleterm.lua +++ b/.config/nvim/after/plugin/toggleterm.lua @@ -8,7 +8,7 @@ require("toggleterm").setup({ start_in_insert = true, insert_mappings = true, persist_size = true, - direction = "float", + direction = "horizontal", close_on_exit = true, shell = vim.o.shell, float_opts = { @@ -20,3 +20,10 @@ require("toggleterm").setup({ }, }, }) + +function _G.set_terminal_keymaps() + local opts = {noremap = true} + vim.api.nvim_buf_set_keymap(0, 't', '<C-k>', [[<C-\><C-n><C-W>k]], opts) +end + +vim.cmd('autocmd! TermOpen term://* lua set_terminal_keymaps()') |