feat(nvim): (system) verilog lsp and formatting

This commit is contained in:
stitchy 2025-04-14 03:54:11 +00:00
parent 77c28ceb4e
commit cf10e016ef
Signed by: stitchy
SSH key fingerprint: SHA256:yz2SoxdnY67tfY5Jzb0f2v8f5W3o/IF359kbcquWip8
2 changed files with 5 additions and 5 deletions

View file

@ -1,9 +1,6 @@
-- This will need some refactoring as it is mostly a
-- copy and paste from the previous single-file .vim config
require'lspconfig'.rust_analyzer.setup{}
require'lspconfig'.texlab.setup{}
require'lspconfig'.svls.setup{}
require'lspconfig'.pylsp.setup{
settings = {
formatCommand = {"black"},
@ -37,7 +34,7 @@ local capabilities = require("cmp_nvim_lsp").default_capabilities()
local lspconfig = require('lspconfig')
-- Enable some language servers with the additional completion capabilities offered by nvim-cmp
local servers = { 'clangd', 'glsl_analyzer', 'nixd', 'tinymist', 'rust_analyzer', 'vhdl_ls', 'vtsls' }
local servers = { 'clangd', 'glsl_analyzer', 'nixd', 'rust_analyzer', 'texlab', 'tinymist', 'verible', 'vhdl_ls', 'vtsls' }
for _, lsp in ipairs(servers) do
lspconfig[lsp].setup {
-- on_attach = my_custom_on_attach,
@ -118,7 +115,9 @@ require("conform").setup({
html = { "prettier", },
javascript = { "prettier", },
python = { "black" },
typst = { "prettypst" }
typst = { "prettypst" },
verilog = { "verible", "trim_whitespace" },
systemverilog = { "verible", "trim_whitespace" }
},
formatters = {
prettypst = {

View file

@ -77,6 +77,7 @@ in
"rustup"
"tinymist"
"unzip"
"verible"
"vhdl-ls"
"vtsls"
"wget"