Modified options to get Warnings, or Errors on a floating window

This commit is contained in:
Eduardo Cueto-Mendoza 2023-07-21 10:42:35 +01:00
parent 7f57a289e8
commit 2fefa8e85c
1 changed files with 13 additions and 3 deletions

View File

@ -37,6 +37,16 @@ vim.opt.hlsearch = false -- do not highlight matches
vim.opt.ignorecase = true -- ignore case in searches by default vim.opt.ignorecase = true -- ignore case in searches by default
vim.opt.smartcase = true -- but make it case sensitive if an uppercase is entered 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 -- Leader key
vim.g.mapleader = " " vim.g.mapleader = " "
--vim.g.maplocalleader = " " --vim.g.maplocalleader = " "
@ -66,10 +76,10 @@ vim.g.python3_host_prog = "/usr/local/bin/python"
-- Vimtex options: -- Vimtex options:
vim.g.vimtex_view_method = "zathura" vim.g.vimtex_view_method = "zathura"
vim.g.vimtex_general_viewer = "zathura" vim.g.vimtex_general_viewer = "zathura"
--vim.g.vimtex_quickfix_mode = 0 vim.g.vimtex_quickfix_mode = 0
---- Ignore mappings -- Ignore mappings
--vim.g["vimtex_mappings_enabled"] = 1 vim.g.vimtex_mappings_enabled = 1
---- Auto Indent ---- Auto Indent
--vim.g["vimtex_indent_enabled"] = 1 --vim.g["vimtex_indent_enabled"] = 1