fix keymaps, lazy load pass trying to reduce startup time, shaved ~35ms
This commit is contained in:
parent
8b38a13192
commit
f5efed19c7
11 changed files with 295 additions and 218 deletions
|
|
@ -1,9 +1,15 @@
|
|||
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 },
|
||||
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,
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue