feat: verilog lsp

This commit is contained in:
DACHXY 2025-04-25 16:58:58 +08:00
parent 1e9417785d
commit b655f6ad4e
2 changed files with 14 additions and 0 deletions

View file

@ -96,6 +96,13 @@ return {
client.server_capabilities.document_formatting = false
end,
},
svls = {
root_dir = function(fname)
return vim.fs.dirname(vim.fs.find(".git", { path = fname, upward = true })[1])
end,
cmd = { "svls" },
filetypes = { "verilog", "systemverilog" },
},
},
},
},

View file

@ -43,6 +43,7 @@ in
# formatter
prettierd
black
];
programs.neovim = {
@ -86,6 +87,10 @@ in
taplo
zls
vscode-js-debug
# SystemVerilog
svls
svlint
];
plugins = with pkgs.vimPlugins; [
@ -400,6 +405,8 @@ in
vue
yaml
zig
verilog
]
)).dependencies;
};