Skip to content

Commit

Permalink
feat(pack): Add verilog pack (#1017)
Browse files Browse the repository at this point in the history
  • Loading branch information
Uzaaft authored May 31, 2024
1 parent f8f6c34 commit 4510889
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lua/astrocommunity/pack/verilog/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Verilog Language Pack

This plugin pack does the following:

- Adds `verilog` Treesitter parsers
- Adds `verible` language server
- Adds the following `null-ls` sources:
- [verilator](https://github.com/verilator/verilator)
33 changes: 33 additions & 0 deletions lua/astrocommunity/pack/verilog/init.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
return {
{
"nvim-treesitter/nvim-treesitter",
optional = true,
opts = function(_, opts)
if opts.ensure_installed ~= "all" then
opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "verilog" })
end
end,
},

{
"jay-babu/mason-null-ls.nvim",
optional = true,
opts = function(_, opts)
opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "verilator" })
end,
},
{
"williamboman/mason-lspconfig.nvim",
optional = true,
opts = function(_, opts)
opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "verible" })
end,
},
{
"WhoIsSethDaniel/mason-tool-installer.nvim",
optional = true,
opts = function(_, opts)
opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "verilator", "verible" })
end,
},
}

0 comments on commit 4510889

Please sign in to comment.