feat: verilog lsp

This commit is contained in:
DACHXY 2025-04-26 21:15:41 +08:00
parent d6e8e23d3b
commit 8772b124fa
4 changed files with 39 additions and 5 deletions

View file

@ -5,6 +5,18 @@ return {
formatters_by_ft = {
json = { "prettierd", "prettier", stop_after_first = true },
jsonc = { "prettierd", "prettier", stop_after_first = true },
verilog = { "verible" },
},
formatters = {
verible = {
command = "verible-verilog-format",
args = { "-" },
range_args = function(self, ctx)
return { "--lines", ctx.range.start[1] .. "-" .. ctx.range["end"][1] }
end,
stdin = true,
cwd = require("conform.util").root_file({ ".git" }),
},
},
},
},