feat: verilog lsp
This commit is contained in:
parent
d6e8e23d3b
commit
8772b124fa
4 changed files with 39 additions and 5 deletions
24
home/config/nvim/lua/plugins/nvim-lint.lua
Normal file
24
home/config/nvim/lua/plugins/nvim-lint.lua
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
local pattern = "[^:]+:(%d+):(%d+):(%w+):(.+)"
|
||||
local groups = { "lnum", "col", "code", "message" }
|
||||
|
||||
return {
|
||||
{
|
||||
"mfussenegger/nvim-lint",
|
||||
opts = {
|
||||
linters_by_ft = {
|
||||
-- verilog = { "verible" },
|
||||
},
|
||||
linters = {
|
||||
verible = {
|
||||
cmd = "verible-verilog-lint",
|
||||
stdin = false,
|
||||
args = { "--rules_config_search" },
|
||||
stream = nil,
|
||||
ignore_exitcode = false,
|
||||
env = nil,
|
||||
parser = require("lint.parser").from_pattern(pattern, groups),
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue