feat(terminal): use shell as title

This commit is contained in:
Matt Leong 2021-10-22 18:58:12 -07:00
parent ecb38b33c0
commit 0d758652e5

View file

@ -1,9 +1,10 @@
local colors = require('cosmic.core.theme.colors') local colors = require('cosmic.core.theme.colors')
local highlight = require('cosmic.utils').highlight local highlight = require('cosmic.utils').highlight
local g = vim.g local g = vim.g
local title = vim.env.SHELL
g.floaterm_width = 0.8 g.floaterm_width = 0.7
g.floaterm_height = 0.8 g.floaterm_height = 0.8
g.floaterm_title = '|👾 ($1/$2)|' g.floaterm_title = '[' .. title .. ']:($1/$2)'
g.floaterm_opener = 'vsplit' g.floaterm_opener = 'vsplit'
highlight('FloatermBorder', 'None', colors.floatBorder) highlight('FloatermBorder', 'None', colors.floatBorder)