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

View file

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