nvim/lua/cosmic/plugins/terminal/init.lua
Matthew Leong daaafc1f8d
Lazy.nvim (#88)
* feat: init lazy.nvim

* refactor: easy plugin init

* feat: user defined plugins

* refactor: clean up user config

* refactor: clean up lsp plugins

* fix: lsp signature

* fix: null ls user config

* feat: replace commands

* feat: optimize lazy loading

* fix: lsp_signature working

* fix: documentation hover/sig help

* fix: autopairs

* feat: clean up luasnips

* fix auto complete

* moar laziness

* feat: add markdown_inline to ensured_installed for TS

* clean up

* clean up auto-session
2022-12-29 08:34:17 -08:00

21 lines
625 B
Lua

local user_config = require('cosmic.core.user')
local g = vim.g
local title = vim.env.SHELL
return {
'voldikss/vim-floaterm',
keys = {
{ '<C-l>', '<cmd>FloatermToggle<cr>', desc = 'Floating Terminal' },
},
config = function()
g.floaterm_width = 0.7
g.floaterm_height = 0.8
g.floaterm_title = '[' .. title .. ']:($1/$2)'
g.floaterm_borderchars = '─│─│╭╮╯╰'
g.floaterm_opener = 'vsplit'
require('cosmic.plugins.terminal.mappings')
require('cosmic.plugins.terminal.highlights')
end,
enabled = not vim.tbl_contains(user_config.disable_builtin_plugins, 'terminal'),
}