Summary Files Commits Branches @commit @diff @stats
path: root / lua / lsp.lua
blob: e57022cce8dd2e94b60da0913daa46ffdc640bf0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
local lspconfig = require('lspconfig')

-- Thanks https://stackoverflow.com/a/70760302/12036073
vim.o.updatetime = 300
vim.diagnostic.config({
	virtual_text = false,
	float = { focus = false },
})
vim.api.nvim_create_autocmd({ "CursorHold", "CursorHoldI" }, { callback = function(ev)
	vim.diagnostic.open_float(nil)
end})