refactor(editors): use nvim-lighbulb setup function

This commit is contained in:
Felix Schröter 2022-08-25 22:25:58 +02:00
parent 48f542c5a5
commit 6cb50e914b
Signed by: felschr
GPG key ID: 671E39E6744C807D

View file

@ -1,9 +1,9 @@
local pid = vim.fn.getpid() local pid = vim.fn.getpid()
-- lightbulb require("nvim-lightbulb").setup({
vim.api.nvim_create_autocmd({"CursorHold", "CursorHoldI"}, { autocmd = {
pattern = "*", enabled = true,
callback = require"nvim-lightbulb".update_lightbulb, }
}) })
local on_attach = function(client, bufnr) local on_attach = function(client, bufnr)