From 2fefa8e85c9e7a24e53af8a8bd130b5449c7398f Mon Sep 17 00:00:00 2001 From: Eduardo Cueto-Mendoza Date: Fri, 21 Jul 2023 10:42:35 +0100 Subject: [PATCH] Modified options to get Warnings, or Errors on a floating window --- lua/eddie/options.lua | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/lua/eddie/options.lua b/lua/eddie/options.lua index 91baf79..cdf437a 100644 --- a/lua/eddie/options.lua +++ b/lua/eddie/options.lua @@ -37,6 +37,16 @@ vim.opt.hlsearch = false -- do not highlight matches vim.opt.ignorecase = true -- ignore case in searches by default vim.opt.smartcase = true -- but make it case sensitive if an uppercase is entered +-- LSP options +vim.diagnostic.config({ + virtual_text = false +}) +-- Show line diagnostics automatically in hover window +vim.o.updatetime = 250 +vim.cmd [[autocmd CursorHold,CursorHoldI * lua vim.diagnostic.open_float(nil, {focus=false})]] + + + -- Leader key vim.g.mapleader = " " --vim.g.maplocalleader = " " @@ -66,10 +76,10 @@ vim.g.python3_host_prog = "/usr/local/bin/python" -- Vimtex options: vim.g.vimtex_view_method = "zathura" vim.g.vimtex_general_viewer = "zathura" ---vim.g.vimtex_quickfix_mode = 0 +vim.g.vimtex_quickfix_mode = 0 ----- Ignore mappings ---vim.g["vimtex_mappings_enabled"] = 1 +-- Ignore mappings +vim.g.vimtex_mappings_enabled = 1 ---- Auto Indent --vim.g["vimtex_indent_enabled"] = 1