Add coc basic config, not fully working yet
This commit is contained in:
17
nvim-coc/lua/plugins/utility/toggleterm.lua
Executable file
17
nvim-coc/lua/plugins/utility/toggleterm.lua
Executable file
@@ -0,0 +1,17 @@
|
||||
return {
|
||||
-- literally the name, quick term toggle
|
||||
"akinsho/toggleterm.nvim",
|
||||
version = "*",
|
||||
config = function()
|
||||
require("toggleterm").setup({
|
||||
insert_mappings = false,
|
||||
terminal_mappings = false,
|
||||
open_mapping = "<leader>t",
|
||||
direction = "float",
|
||||
float_opts = {
|
||||
border = "curved",
|
||||
},
|
||||
})
|
||||
vim.keymap.set("t", "<S-Esc>", [[<cmd>ToggleTerm<CR>]], {}) -- close terminal wih esc
|
||||
end,
|
||||
}
|
||||
Reference in New Issue
Block a user