Skip to content

Commit

Permalink
feat(nvim): disable virtual-text for lspconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
0xRichardH committed Feb 23, 2024
1 parent 7cd0149 commit 83e213b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 49 deletions.
7 changes: 7 additions & 0 deletions config/nvim/lua/config/autocmds.lua
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ vim.api.nvim_create_autocmd("BufEnter", {
end,
})

-- disable virtual-text for lspconfig
vim.api.nvim_create_autocmd("LspAttach", {
callback = function()
vim.diagnostic.config({ virtual_text = false })
end,
})

-- enable inlay hints globally
-- ref: https://vinnymeller.com/posts/neovim_nightly_inlay_hints/
if vim.lsp.inlay_hint then
Expand Down
49 changes: 0 additions & 49 deletions config/nvim/lua/plugins/lsp.lua

This file was deleted.

0 comments on commit 83e213b

Please sign in to comment.