Add extra plugins
This commit is contained in:
parent
ca75729c7a
commit
2d4fe69a06
10 changed files with 201 additions and 0 deletions
24
lua/custom/plugins/toggleterm.lua
Normal file
24
lua/custom/plugins/toggleterm.lua
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
return {
|
||||
'akinsho/toggleterm.nvim',
|
||||
version = "*",
|
||||
config = function()
|
||||
local term = require('toggleterm')
|
||||
|
||||
term.setup {
|
||||
size = 20,
|
||||
open_mapping = [[<leader>tf]],
|
||||
shading_factor = 2,
|
||||
direction = 'float',
|
||||
float_opts = {
|
||||
border = 'curved',
|
||||
highlights = {
|
||||
border = "Normal",
|
||||
background = "Normal",
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
vim.keymap.set("n", "<leader>th", "<CMD>ToggleTerm size=10 direction=horizontal<CR>")
|
||||
vim.keymap.set("n", "<leader>tv", "<CMD>ToggleTerm size=80 direction=vertical<CR>")
|
||||
end
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue