From 772e619690b0456672e45b8d52326505b0db1e15 Mon Sep 17 00:00:00 2001 From: Uzair Aftab Date: Fri, 31 May 2024 09:41:06 +0200 Subject: [PATCH] feat(pack): Add `verilog` pack --- lua/astrocommunity/pack/verilog/README.md | 8 ++++++ lua/astrocommunity/pack/verilog/init.lua | 33 +++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 lua/astrocommunity/pack/verilog/README.md create mode 100644 lua/astrocommunity/pack/verilog/init.lua diff --git a/lua/astrocommunity/pack/verilog/README.md b/lua/astrocommunity/pack/verilog/README.md new file mode 100644 index 000000000..ab19c393b --- /dev/null +++ b/lua/astrocommunity/pack/verilog/README.md @@ -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) diff --git a/lua/astrocommunity/pack/verilog/init.lua b/lua/astrocommunity/pack/verilog/init.lua new file mode 100644 index 000000000..de6beee6e --- /dev/null +++ b/lua/astrocommunity/pack/verilog/init.lua @@ -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, + }, +}