mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2024-12-22 17:17:36 +00:00
Don't error when trying to handle older diagnostic api
This commit is contained in:
parent
83590865a5
commit
c6e7e756d0
@ -75,7 +75,7 @@ local function default_attach(client, bufnr)
|
|||||||
buf_set_keymap('n', '<leader>q', '<cmd>lua vim.lsp.diagnostic.set_loclist()<CR>', opts)
|
buf_set_keymap('n', '<leader>q', '<cmd>lua vim.lsp.diagnostic.set_loclist()<CR>', opts)
|
||||||
|
|
||||||
-- Open diagnostic on hold
|
-- Open diagnostic on hold
|
||||||
if vim.diagnostic ~= nil then
|
if vim["diagnostic"] ~= nil then
|
||||||
vim.cmd [[autocmd CursorHold,CursorHoldI * lua vim.diagnostic.open_float(nil, {focus=false})]]
|
vim.cmd [[autocmd CursorHold,CursorHoldI * lua vim.diagnostic.open_float(nil, {focus=false})]]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user