Skip to content

Commit c79efcc

Browse files
authored
Merge pull request ThePrimeagen#8 from demarcot/master
feat(demarcot): move lsp diagnostic block to allow virtual text
2 parents e770921 + a2f1315 commit c79efcc

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

after/plugin/lsp.lua

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,6 @@ lsp.set_preferences({
3737
}
3838
})
3939

40-
vim.diagnostic.config({
41-
virtual_text = true,
42-
})
43-
4440
lsp.on_attach(function(client, bufnr)
4541
local opts = {buffer = bufnr, remap = false}
4642

@@ -63,4 +59,7 @@ end)
6359

6460
lsp.setup()
6561

62+
vim.diagnostic.config({
63+
virtual_text = true,
64+
})
6665

0 commit comments

Comments
 (0)