added firevim

This commit is contained in:
2023-07-05 21:24:35 +02:00
parent d5b129b373
commit ed4ad9305e
2 changed files with 20 additions and 0 deletions

View File

@ -77,3 +77,12 @@ api.nvim_create_autocmd('BufEnter', { command = [[set formatoptions-=cro]] })
-- Keep window ratio when resize
api.nvim_create_autocmd('VimResized', { command = [[wincmd =]] })
vim.api.nvim_create_autocmd({'UIEnter'}, {
callback = function(event)
local client = vim.api.nvim_get_chan_info(vim.v.event.chan).client
if client ~= nil and client.name == "Firenvim" then
vim.o.laststatus = 0
end
end
})

11
lua/plugins/firenvim.lua Normal file
View File

@ -0,0 +1,11 @@
return {
'glacambre/firenvim',
-- Lazy load firenvim
-- Explanation: https://github.com/folke/lazy.nvim/discussions/463#discussioncomment-4819297
cond = not not vim.g.started_by_firenvim,
build = function()
require('lazy').load({ plugins = 'firenvim', wait = true })
vim.fn['firenvim#install'](0)
end
}