added firevim
This commit is contained in:
@ -77,3 +77,12 @@ api.nvim_create_autocmd('BufEnter', { command = [[set formatoptions-=cro]] })
|
|||||||
|
|
||||||
-- Keep window ratio when resize
|
-- Keep window ratio when resize
|
||||||
api.nvim_create_autocmd('VimResized', { command = [[wincmd =]] })
|
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
11
lua/plugins/firenvim.lua
Normal 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
|
||||||
|
}
|
Reference in New Issue
Block a user