From 892059421090a085dcf048239d2825729e8d01ce Mon Sep 17 00:00:00 2001 From: thek4n Date: Wed, 3 Apr 2024 15:40:01 +0300 Subject: [PATCH] nvim remove plugin --- .../nvim/lua/base/plugins/toggleterm.lua | 41 ------------------- home/user/.config/tmux/mappings.conf | 1 + home/user/.config/tmux/tmux.conf | 2 +- 3 files changed, 2 insertions(+), 42 deletions(-) delete mode 100644 home/user/.config/nvim/lua/base/plugins/toggleterm.lua diff --git a/home/user/.config/nvim/lua/base/plugins/toggleterm.lua b/home/user/.config/nvim/lua/base/plugins/toggleterm.lua deleted file mode 100644 index 0b2220c..0000000 --- a/home/user/.config/nvim/lua/base/plugins/toggleterm.lua +++ /dev/null @@ -1,41 +0,0 @@ - -local function set_term_keymap(key, cmd) - local opts = { noremap = true, silent = true } - local key_string = string.format([[%s]], key) - local cmd_string = string.format([[%s]], cmd) - vim.api.nvim_set_keymap('t', key_string, cmd_string, opts) -end - -local function set_term_keymaps() - set_term_keymap('t', 'ToggleTerm') - set_term_keymap('qa', 'qa!') - set_term_keymap('qq', 'bd!') -end - - -return { - "akinsho/toggleterm.nvim", - config = function() - vim.api.nvim_create_autocmd('TermEnter', { - pattern = 'term://*toggleterm#*', - callback = set_term_keymaps - }) - - local terminal_default = require('toggleterm.terminal').Terminal:new({ - direction = 'horizontal', - }) - - function _TERMINAL_TOGGLE() - terminal_default:toggle() - end - - require("toggleterm").setup({ - direction = "horizontal", - shell = vim.o.shell, - hide_numbers = true, - }) - end, - keys = { - {"t", "lua _TERMINAL_TOGGLE()"}, - } -} diff --git a/home/user/.config/tmux/mappings.conf b/home/user/.config/tmux/mappings.conf index a3e61a5..ffe37ae 100644 --- a/home/user/.config/tmux/mappings.conf +++ b/home/user/.config/tmux/mappings.conf @@ -53,6 +53,7 @@ bind -n M-0 new-window -n 10 -S -c "#{pane_current_path}" # Windows splitting bind -n M-Enter split-window -h -c "#{pane_current_path}" +bind -n M-t split-window -v -l 20% -c "#{pane_current_path}" bind | split-window -h -c "#{pane_current_path}" bind \\ split-window -v -c "#{pane_current_path}" diff --git a/home/user/.config/tmux/tmux.conf b/home/user/.config/tmux/tmux.conf index 5f4c350..800bb33 100644 --- a/home/user/.config/tmux/tmux.conf +++ b/home/user/.config/tmux/tmux.conf @@ -3,8 +3,8 @@ source-file "$HOME/.config/tmux/mappings.conf" source-file "$HOME/.config/tmux/options.conf" source-file "$HOME/.config/tmux/style.conf" -source-file "$HOME/.config/tmux/plugins.conf" source-file "$HOME/.config/tmux/aliases.conf" +source-file "$HOME/.config/tmux/plugins.conf" if-shell 'test -n "$SSH_CLIENT"' 'source-file "$HOME/.config/tmux/remote.conf"'