You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've struggled a little bit to get the plugin properly working with Lazy.nvim, but I do have a solution now !
Since the repo doesn't get much activity, I figured I'd take the initiative to post this issue as an example of working Lazy config for those who might need it and wanna avoid scratching their head for an hour fiddling around.
{
'kennykaye/vim-relativity',
-- Only load the plugin when leaving a bufferevent='BufLeave',
-- Initial configuration-- Since this plugin uses Vim globals and will be loaded most of the times, it is ideal that-- this is done on opening NeoVim, to ensure everything is ready when the plugin's actually loaded.init=function()
localignored_fts= { -- Assigning directly to vim.g.relativity_filetype_ignore doesn't work. See `:h lua-vim-variables`-- Add your ignores here.
}
vim.o.number=truevim.o.relativenumber=truevim.g.relativity_filetype_ignore=ignored_ftsend,
config=function()
-- Force the plugin to be activated when loadedvim.cmd.Relativity()
end,
}
Hope this can help some people!
The text was updated successfully, but these errors were encountered:
I've struggled a little bit to get the plugin properly working with Lazy.nvim, but I do have a solution now !
Since the repo doesn't get much activity, I figured I'd take the initiative to post this issue as an example of working Lazy config for those who might need it and wanna avoid scratching their head for an hour fiddling around.
Hope this can help some people!
The text was updated successfully, but these errors were encountered: