diff --git a/config/nvim/lua/autocommands.lua b/config/nvim/lua/autocommands.lua new file mode 100644 index 0000000..d92e1c1 --- /dev/null +++ b/config/nvim/lua/autocommands.lua @@ -0,0 +1,15 @@ +-- Eryn Wells + +vim.opt.updatetime = 300 + +-- Show diagnostic popup on cursor hover +local diagnostic_float_group = vim.api.nvim_create_augroup("DiagnosticFloat", { clear = true }) +vim.api.nvim_create_autocmd("CursorHold", { + callback = function() + vim.diagnostic.open_float { + border = "double", + focusable = false, + } + end, + group = diagnostic_float_group, +})