Nvim: update plugins with newer maintainers
This commit is contained in:
@@ -19,37 +19,37 @@ return {
|
||||
exclude_filetypes = {'log'},
|
||||
callbacks = {
|
||||
-- -- to trigger the close_events of vim.diagnostic.open_float.
|
||||
-- function ()
|
||||
-- -- Close floating diag. and make it triggerable again.
|
||||
-- vim.api.nvim_exec_autocmds("User", { pattern = "MurmurDiagnostics"})
|
||||
-- vim.w.diag_shown = false
|
||||
-- end,
|
||||
function ()
|
||||
-- Close floating diag. and make it triggerable again.
|
||||
vim.api.nvim_exec_autocmds("User", { pattern = "MurmurDiagnostics"})
|
||||
vim.w.diag_shown = false
|
||||
end,
|
||||
}
|
||||
}
|
||||
vim.api.nvim_create_autocmd('CursorHold', {
|
||||
group = HIGHLIGHT,
|
||||
pattern = '*',
|
||||
callback = function ()
|
||||
-- skip when a float-win already exists.
|
||||
if vim.w.diag_shown then return end
|
||||
|
||||
-- open float-win when hovering on a cursor-word.
|
||||
if vim.w.cursor_word ~= '' then
|
||||
vim.diagnostic.open_float({
|
||||
scope = 'cursor',
|
||||
close_events = { "InsertEnter", "User MurmurDiagnostics" },
|
||||
})
|
||||
vim.api.nvim_create_autocmd("WinClosed", {
|
||||
group = HIGHLIGHT,
|
||||
buffer = buf,
|
||||
once = true,
|
||||
callback = function() vim.w.diag_shown = false end,
|
||||
})
|
||||
vim.w.diag_shown = true
|
||||
else
|
||||
vim.w.diag_shown = false
|
||||
end
|
||||
end
|
||||
})
|
||||
-- vim.api.nvim_create_autocmd('CursorHold', {
|
||||
-- group = HIGHLIGHT,
|
||||
-- pattern = '*',
|
||||
-- callback = function ()
|
||||
-- -- skip when a float-win already exists.
|
||||
-- if vim.w.diag_shown then return end
|
||||
--
|
||||
-- -- open float-win when hovering on a cursor-word.
|
||||
-- if vim.w.cursor_word ~= '' then
|
||||
-- vim.diagnostic.open_float({
|
||||
-- scope = 'cursor',
|
||||
-- close_events = { "InsertEnter", "User MurmurDiagnostics" },
|
||||
-- })
|
||||
-- vim.api.nvim_create_autocmd("WinClosed", {
|
||||
-- group = HIGHLIGHT,
|
||||
-- buffer = buf,
|
||||
-- once = true,
|
||||
-- callback = function() vim.w.diag_shown = false end,
|
||||
-- })
|
||||
-- vim.w.diag_shown = true
|
||||
-- else
|
||||
-- vim.w.diag_shown = false
|
||||
-- end
|
||||
-- end
|
||||
-- })
|
||||
end
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user