nvim remove plugin
This commit is contained in:
parent
70e50a7a50
commit
8920594210
@ -1,41 +0,0 @@
|
|||||||
|
|
||||||
local function set_term_keymap(key, cmd)
|
|
||||||
local opts = { noremap = true, silent = true }
|
|
||||||
local key_string = string.format([[<Leader>%s]], key)
|
|
||||||
local cmd_string = string.format([[<cmd>%s<CR>]], 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 = {
|
|
||||||
{"<Leader>t", "<cmd>lua _TERMINAL_TOGGLE()<CR>"},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -53,6 +53,7 @@ bind -n M-0 new-window -n 10 -S -c "#{pane_current_path}"
|
|||||||
|
|
||||||
# Windows splitting
|
# Windows splitting
|
||||||
bind -n M-Enter split-window -h -c "#{pane_current_path}"
|
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 -h -c "#{pane_current_path}"
|
||||||
bind \\ split-window -v -c "#{pane_current_path}"
|
bind \\ split-window -v -c "#{pane_current_path}"
|
||||||
|
|
||||||
|
|||||||
@ -3,8 +3,8 @@
|
|||||||
source-file "$HOME/.config/tmux/mappings.conf"
|
source-file "$HOME/.config/tmux/mappings.conf"
|
||||||
source-file "$HOME/.config/tmux/options.conf"
|
source-file "$HOME/.config/tmux/options.conf"
|
||||||
source-file "$HOME/.config/tmux/style.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/aliases.conf"
|
||||||
|
source-file "$HOME/.config/tmux/plugins.conf"
|
||||||
|
|
||||||
if-shell 'test -n "$SSH_CLIENT"' 'source-file "$HOME/.config/tmux/remote.conf"'
|
if-shell 'test -n "$SSH_CLIENT"' 'source-file "$HOME/.config/tmux/remote.conf"'
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user