# Lsp
# Lsp Settings
-- enable/disable document highlight
nvoid.lsp.document_highlight = true
-- enable/disable virtual text
nvoid.lsp.diagnostics.virtual_text = false
-- enable/disable format on save
nvoid.lsp.format_on_save = true
# Adding language sever protocol
you can add a new language by
:Mason
then press i
on the language you want to install
or add this in the config.lua
nvoid.lsp.installer.setup.ensure_installed = { "clangd" }
by default nvoid ships with sumneko_lua
# Formaters
- for
lua
you can usestylua
- for
python
you can useblack
- for the web dev you can use
prettier
# Adding new formatting/diagnostics
nvoid.lsp.format_on_save = false
nvoid.lsp.diagnostics.virtual_text = false
nvoid.lsp.document_highlight = true