Skip to content

Commit

Permalink
added toggleterm.lua to ~/.config/nvim/plugin to compile it on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinfengcs88 committed Mar 16, 2023
1 parent 964e747 commit cfaf1c4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lua/v9/plugins.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,17 @@ return require('packer').startup(function(use)
use {
'williamboman/mason.nvim',
'williamboman/mason-lspconfig.nvim',
'neovim/nvim-lspconfig',
'neovim/nvim-lspconfig'
}
use 'hrsh7th/nvim-cmp'
use 'hrsh7th/cmp-nvim-lsp'
use 'L3MON4D3/LuaSnip'
use 'saadparwaiz1/cmp_luasnip'
use 'rafamadriz/friendly-snippets'
use { "akinsho/toggleterm.nvim", commit = "2a787c426ef00cb3488c11b14f5dcf892bbd0bda" }
use { "akinsho/toggleterm.nvim",
commit = "2a787c426ef00cb3488c11b14f5dcf892bbd0bda",
config = "require('toggleterm')"
}
-- My plugins here
-- use 'foo1/bar1.nvim'
-- use 'foo2/bar2.nvim'
Expand Down
10 changes: 10 additions & 0 deletions plugin/toggleterm.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
require"toggleterm".setup {
size = 13,
open_mapping = [[<c-\>]],
shade_filetypes = {},
shade_terminals = true,
shading_factor = '1',
start_in_insert = true,
persist_size = true,
direction = 'horizontal'
}

0 comments on commit cfaf1c4

Please sign in to comment.