Skip to content

fix: fix error spam when used with firenvim#38

Open
itscrystalline wants to merge 2 commits into
IogaMaster:mainfrom
itscrystalline:fix-firenvim
Open

fix: fix error spam when used with firenvim#38
itscrystalline wants to merge 2 commits into
IogaMaster:mainfrom
itscrystalline:fix-firenvim

Conversation

@itscrystalline

Copy link
Copy Markdown

Description of changes

originally, trying to run an embedded instance of neovim with neocord (with the firenvim extension in particular) would result in an error spam stating that info in utils.get_gui_info() was nil. This PR simpily adds a nil check before accessing info.type.

function utils.get_gui_info()
local info = vim.api.nvim_get_chan_info(1).client
if info.type == "ui" then
return info.name
end
return nil
end

Relevant Issues

None

CC Maintainers

@IogaMaster

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant