.dotfiles/nvim/plugin/nvim-lightbulb.lua

15 lines
586 B
Lua

vim.api.nvim_create_autocmd("LspAttach", {
once = true,
callback = function()
vim.pack.add({ "https://github.com/kosayoda/nvim-lightbulb" })
require("nvim-lightbulb").setup({
hide_in_unfocused_buffer = true,
code_lenses = false, -- 0.12 shows code lenses as virtual lines natively
sign = { enabled = true },
virtual_text = { enabled = false },
float = { enabled = false },
status_text = { enabled = false },
autocmd = { enabled = true, updatetime = 25 },
})
end,
})