mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2024-12-22 22:17:34 +00:00
Prevent cursor hold errors with changed api
This commit is contained in:
parent
052f75718d
commit
83590865a5
@ -75,7 +75,9 @@ 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
|
||||||
vim.cmd [[autocmd CursorHold,CursorHoldI * lua vim.diagnostic.open_float(nil, {focus=false})]]
|
if vim.diagnostic ~= nil then
|
||||||
|
vim.cmd [[autocmd CursorHold,CursorHoldI * lua vim.diagnostic.open_float(nil, {focus=false})]]
|
||||||
|
end
|
||||||
|
|
||||||
-- Set some keybinds conditional on server capabilities
|
-- Set some keybinds conditional on server capabilities
|
||||||
if client.resolved_capabilities.document_formatting then
|
if client.resolved_capabilities.document_formatting then
|
||||||
|
Loading…
Reference in New Issue
Block a user