diff options
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/pml68/configs/toggleterm.lua | 11 | ||||
| -rw-r--r-- | lua/pml68/plugins.lua | 52 |
2 files changed, 15 insertions, 48 deletions
diff --git a/lua/pml68/configs/toggleterm.lua b/lua/pml68/configs/toggleterm.lua deleted file mode 100644 index 4f5ca6e..0000000 --- a/lua/pml68/configs/toggleterm.lua +++ /dev/null @@ -1,11 +0,0 @@ -function _G.set_terminal_keymaps() - local opts = { buffer = 0 } - vim.keymap.set('t', '<C-x>', [[<C-\><C-n>]], opts) - vim.keymap.set('t', '<C-h>', [[<Cmd>wincmd h<CR>]], opts) - vim.keymap.set('t', '<C-j>', [[<Cmd>wincmd j<CR>]], opts) - vim.keymap.set('t', '<C-k>', [[<Cmd>wincmd k<CR>]], opts) - vim.keymap.set('t', '<C-l>', [[<Cmd>wincmd l<CR>]], opts) - vim.keymap.set('t', '<C-w>', [[<C-\><C-n><C-w>]], opts) -end - -vim.cmd('autocmd! TermOpen term://* lua set_terminal_keymaps()') diff --git a/lua/pml68/plugins.lua b/lua/pml68/plugins.lua index 2e2a615..403f2eb 100644 --- a/lua/pml68/plugins.lua +++ b/lua/pml68/plugins.lua @@ -94,48 +94,26 @@ local plugins = { require("pml68.configs.cmp") end, }, - --Terminal - { - "akinsho/toggleterm.nvim", - version = "*", - cmd = "ToggleTerm", - opts = { - shade_terminals = false, - persist_size = false, - size = function(term) - if term.direction == "horizontal" then - return 15 - elseif term.direction == "vertical" then - return vim.o.columns * 0.4 - end - end, - }, - config = function(_, opts) - require("pml68.configs.toggleterm") - require("toggleterm").setup(opts) - end - }, --Git { "lewis6991/gitsigns.nvim", event = "BufReadPost", - opts = { - signs = { - add = { text = "│" }, - change = { text = "│" }, - delete = { text = "" }, - topdelete = { text = "‾" }, - changedelete = { text = "~" }, - untracked = { text = "│" }, - }, - on_attach = function(bufnr) - local gs = package.loaded.gitsigns + config = function() + require("gitsigns").setup({ + signs = { + add = { text = "│" }, + change = { text = "│" }, + delete = { text = "" }, + topdelete = { text = "‾" }, + changedelete = { text = "~" }, + untracked = { text = "│" }, + }, + on_attach = function(bufnr) + local gs = package.loaded.gitsigns - vim.keymap.set("n", "<leader>gb", gs.blame_line, { buffer = bufnr }) - end, - }, - config = function(_, opts) - require("gitsigns").setup(opts) + vim.keymap.set("n", "<leader>gb", gs.blame_line, { buffer = bufnr }) + end, + }) end }, --LSP |
