I have a full lua config on my Neovim setup.
It seems we can't have both init.vim
and init.lua
on the same setup.
I am trying to setup fugitive-gitlab.vim, but it provides vimscript instructions.
Both fugitive-gitlab and fugitive are successfully installed via Lazy.nvim.
When configuring as per the installation instructions here:
let g:fugitive_gitlab_domains = {'ssh://my-ssh.gitlab.com': 'https://my.gitlab.com'}
I tried to translate that to the following lua function:
function ConfigGitlab()
vim.g.fugitive_gitlab_domains['ssh://[email protected]:121112'] = 'https://gitlab.company.com:3344'
end
But when I call this, I get:
Error detected while processing /Users/v4g4x/.config/nvim/init.lua:
E5113: Error while calling lua chunk: /Users/v4g4x/.config/nvim/lua/core/gitlab.lua:3: attempt to index field 'fugitive_gitlab_domains' (a nil value)
Clearly, I'm not converting from Vimscript to Lua correctly. Any help on how this may be done?