summaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/options.lua10
-rw-r--r--lua/plugins/general.lua16
-rw-r--r--lua/plugins/interface.lua1
-rw-r--r--lua/plugins/lsp.lua19
4 files changed, 36 insertions, 10 deletions
diff --git a/lua/options.lua b/lua/options.lua
index 720bf2f..8c009e2 100644
--- a/lua/options.lua
+++ b/lua/options.lua
@@ -1,7 +1,7 @@
vim.opt.spelllang = {'de_de', 'en_us'}
vim.opt.timeoutlen = 500
-vim.opt.updatetime = 200
+vim.opt.updatetime = 250
vim.opt.mouse = a
vim.opt.signcolumn = 'yes'
vim.opt.cursorline = true
@@ -22,13 +22,5 @@ vim.opt.softtabstop = 4
vim.opt.number = true
vim.opt.scrolloff = 20
vim.opt.numberwidth = 5
-vim.diagnostic.config({
- virtual_text = {
- severity = vim.diagnostic.severity.ERROR,
- },
- underline = {
- severity = vim.diagnostic.severity.ERROR,
- },
-})
vim.opt.termguicolors = true
vim.opt.guifont = {'Hack NFM:h12'}
diff --git a/lua/plugins/general.lua b/lua/plugins/general.lua
index f86270d..ddcacea 100644
--- a/lua/plugins/general.lua
+++ b/lua/plugins/general.lua
@@ -1,5 +1,21 @@
return {
{
+ 'mfussenegger/nvim-lint',
+ event = {
+ 'BufWritePre'
+ },
+ config = function()
+ require('lint').linters_by_ft = {
+ tex = { 'lacheck', }
+ }
+ vim.api.nvim_create_autocmd({ "BufWritePost" }, {
+ callback = function()
+ require("lint").try_lint()
+ end,
+ })
+ end,
+ },
+ {
'tpope/vim-fugitive',
event = {
'BufReadPost',
diff --git a/lua/plugins/interface.lua b/lua/plugins/interface.lua
index 7e06d03..ede5cf8 100644
--- a/lua/plugins/interface.lua
+++ b/lua/plugins/interface.lua
@@ -41,7 +41,6 @@ return {
},
opts = {
show_current_context = true,
- show_current_context_start = true,
},
},
{
diff --git a/lua/plugins/lsp.lua b/lua/plugins/lsp.lua
index 68da19a..6ad37c3 100644
--- a/lua/plugins/lsp.lua
+++ b/lua/plugins/lsp.lua
@@ -33,6 +33,25 @@ return {
local hl = "DiagnosticSign" .. type
vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = hl })
end
+ vim.diagnostic.config({
+ update_in_insert = true,
+ virtual_text = false,
+ })
+ vim.api.nvim_create_autocmd("CursorHold", {
+ buffer = bufnr,
+ callback = function()
+ local opts = {
+ header = '',
+ source = 'always',
+ border = {{' '},{' '},{' '},{' '}},
+ focusable = false,
+ close_events = { "BufLeave", "CursorMoved", "InsertEnter", },
+ prefix = ' ',
+ scope = 'cursor',
+ }
+ vim.diagnostic.open_float(nil, opts)
+ end
+ })
end,
},
}