3 files changed,
35 insertions(+),
1 deletions(-)
jump to
| M | lua/lsp/null.lua |
| M | lua/plugin.lua |
| A | lua/plugin/terminal.lua |
M
lua/lsp/null.lua
@@ -15,7 +15,6 @@ diagnostic.golangci_lint,
formatting.black, formatting.isort, diagnostic.flake8, - formatting.rustfmt, }, } end
M
lua/plugin.lua
@@ -32,6 +32,13 @@ config = get_config "plugin.nvimtree",
} use { + "akinsho/toggleterm.nvim", + config = get_config "plugin.terminal", + module = "toggleterm", + keys = "<C-t>", + } + + use { "lewis6991/gitsigns.nvim", event = "BufEnter", config = get_config "plugin.gitsigns",
A
lua/plugin/terminal.lua
@@ -0,0 +1,28 @@
+local M = {} + +function M.setup() + require("toggleterm").setup { + size = 20, + open_mapping = [[<c-t>]], + hide_numbers = true, + shade_filetypes = {}, + shade_terminals = true, + shading_factor = 2, + start_in_insert = true, + insert_mappings = true, + persist_size = false, + direction = "float", + close_on_exit = true, + shell = vim.o.shell, + float_opts = { + border = "curved", + winblend = 1, + highlights = { + border = "Normal", + background = "Normal", + }, + }, + } +end + +return M