]> git.sthu.org Git - vimconf.git/commitdiff
init: Enable virtual lines diagnostic master
authorStefan Huber <shuber@sthu.org>
Fri, 28 Mar 2025 21:36:11 +0000 (22:36 +0100)
committerStefan Huber <shuber@sthu.org>
Fri, 28 Mar 2025 21:36:11 +0000 (22:36 +0100)
init.vim

index 7d72731b8f7f2876d2a93e91fe2f332b6996216b..a80a4e8c128df20d534e816d7678546ae039db2d 100644 (file)
--- a/init.vim
+++ b/init.vim
@@ -53,6 +53,16 @@ if has('nvim-0.7')
   set laststatus=3
 endif
 
+if has('nvim-0.11')
+  lua<<EOF
+    vim.diagnostic.config({
+        -- virtual_text = true,
+        -- virtual_lines = true,
+        virtual_lines = { current_line = true},
+      })
+EOF
+endif
+
 syntax on
 
 runtime macros.vim