2023-09-06 00:26:45 +02:00
|
|
|
return {
|
|
|
|
{
|
|
|
|
'kosayoda/nvim-lightbulb',
|
|
|
|
event = { 'BufReadPre', 'BufNewFile' },
|
|
|
|
opts = {
|
|
|
|
ignore = {
|
|
|
|
clients = { 'null-ls' },
|
|
|
|
},
|
|
|
|
},
|
|
|
|
config = function(_, opts)
|
|
|
|
require('nvim-lightbulb').setup(opts)
|
|
|
|
vim.api.nvim_create_autocmd('CursorHold', {
|
2023-09-06 01:26:46 +02:00
|
|
|
group = vim.api.nvim_create_augroup('rafi_lightbulb', {}),
|
2023-09-06 00:26:45 +02:00
|
|
|
callback = function()
|
|
|
|
require('nvim-lightbulb').update_lightbulb()
|
|
|
|
end,
|
|
|
|
})
|
|
|
|
end,
|
|
|
|
},
|
|
|
|
}
|