summary refs log tree commit diff
path: root/.vim/lua/internal/plugins/lsp.lua
diff options
context:
space:
mode:
Diffstat (limited to '.vim/lua/internal/plugins/lsp.lua')
-rw-r--r--.vim/lua/internal/plugins/lsp.lua30
1 files changed, 21 insertions, 9 deletions
diff --git a/.vim/lua/internal/plugins/lsp.lua b/.vim/lua/internal/plugins/lsp.lua
index e2a5866..7175a89 100644
--- a/.vim/lua/internal/plugins/lsp.lua
+++ b/.vim/lua/internal/plugins/lsp.lua
@@ -112,6 +112,9 @@ return {
         rust_analyzer = {
           settings = {
             ['rust-analyzer'] = {
+              diagnostics = {
+                enable = true,
+              },
               checkOnSave = {
                 command = { 'cargo', 'clippy' },
               },
@@ -129,8 +132,8 @@ return {
         zls = {
           cmd = {
             'zls',
-            '--enable-debug-log',
-            '--enable-message-tracing',
+            '--log-level',
+            'warn',
           },
         },
         bashls = {},
@@ -221,7 +224,7 @@ return {
   {
     'nvimtools/none-ls.nvim',
     dependencies = { 'nvim-lua/plenary.nvim' },
-    event = { 'VeryLazy' },
+    event = 'VeryLazy',
     config = function()
       local nls = require('null-ls')
       nls.setup({
@@ -237,7 +240,7 @@ return {
           -- nls.builtins.diagnostics.cppcheck,
           -- nls.builtins.diagnostics.gccdiag,
           nls.builtins.diagnostics.golangci_lint,
-          nls.builtins.diagnostics.hadolint,
+          -- nls.builtins.diagnostics.hadolint,
           -- nls.builtins.diagnostics.pylint,
           -- nls.builtins.diagnostics.selene,
           -- nls.builtins.diagnostics.semgrep,
@@ -252,11 +255,13 @@ return {
 
   -- diagnostics
   {
+    enabled = true,
     'rachartier/tiny-inline-diagnostic.nvim',
-    event = 'VeryLazy',
+    lazy = false,
     opts = {
+      preset = 'nonerdfont',
       signs = {
-        left = ' ',
+        left = '',
         right = '',
         diag = '',
         arrow = '◂   ',
@@ -264,13 +269,20 @@ return {
       },
       options = {
         throttle = 0,
-        show_source = true,
+        show_source = {
+          enabled = true,
+        },
+        multilines = {
+          enabled = false,
+          always_show = false,
+        },
+        -- break_line = { enabled = true },
+        show_all_diags_on_cursorline = true,
       },
     },
     config = function(_, opts)
-      vim.diagnostic.config({ virtual_text = false })
       require('tiny-inline-diagnostic').setup(opts)
-      if vim.opt.background:get() == 'light' then
+      if vim.o.background == 'light' then
         require('tiny-inline-diagnostic').change({}, { mixing_color = '#aaaaaa' })
       end
     end,