mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-07-10 22:52:41 +02:00
feat: neovim - support verilog / systemverilog
This commit is contained in:
@@ -264,9 +264,6 @@ return {
|
|||||||
code_actions.proselint, -- English prose linter
|
code_actions.proselint, -- English prose linter
|
||||||
code_actions.statix, -- Lints and suggestions for Nix.
|
code_actions.statix, -- Lints and suggestions for Nix.
|
||||||
|
|
||||||
-- Completion
|
|
||||||
completion.luasnip,
|
|
||||||
|
|
||||||
-- Diagnostic
|
-- Diagnostic
|
||||||
diagnostics.actionlint, -- GitHub Actions workflow syntax checking
|
diagnostics.actionlint, -- GitHub Actions workflow syntax checking
|
||||||
diagnostics.buf, -- check text in current buffer
|
diagnostics.buf, -- check text in current buffer
|
||||||
@@ -289,6 +286,7 @@ return {
|
|||||||
extra_args = { "--dialect", "postgres" }, -- change to your dialect
|
extra_args = { "--dialect", "postgres" }, -- change to your dialect
|
||||||
}),
|
}),
|
||||||
formatting.nginx_beautifier, -- Nginx formatter
|
formatting.nginx_beautifier, -- Nginx formatter
|
||||||
|
null_ls.builtins.formatting.verible_verilog_format, -- Verilog formatter
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
@@ -361,6 +359,7 @@ return {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
-- https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md
|
||||||
lsp = {
|
lsp = {
|
||||||
config = {
|
config = {
|
||||||
-- the offset_enconding of clangd will confilicts whit null-ls
|
-- the offset_enconding of clangd will confilicts whit null-ls
|
||||||
@@ -395,6 +394,8 @@ return {
|
|||||||
"nil_ls", -- nix language server
|
"nil_ls", -- nix language server
|
||||||
"bufls", -- protocol buffer language server
|
"bufls", -- protocol buffer language server
|
||||||
"zls", -- zig language server
|
"zls", -- zig language server
|
||||||
|
---- HDL
|
||||||
|
"verible", -- verilog language server
|
||||||
---- Operation & Cloud Nativautoindente
|
---- Operation & Cloud Nativautoindente
|
||||||
"bashls", -- bash
|
"bashls", -- bash
|
||||||
"cmake", -- cmake language server
|
"cmake", -- cmake language server
|
||||||
|
|||||||
@@ -37,10 +37,9 @@
|
|||||||
extraPackages = with pkgs; [];
|
extraPackages = with pkgs; [];
|
||||||
|
|
||||||
# currently we use lazy.nvim as neovim's package manager, so comment this one.
|
# currently we use lazy.nvim as neovim's package manager, so comment this one.
|
||||||
plugins = with pkgs.vimPlugins; [
|
# plugins = with pkgs.vimPlugins; [
|
||||||
# search all the plugins using https://search.nixos.org/packages
|
# # search all the plugins using https://search.nixos.org/packages
|
||||||
luasnip
|
# ];
|
||||||
];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
home = {
|
home = {
|
||||||
@@ -101,6 +100,9 @@
|
|||||||
nodePackages.vscode-langservers-extracted
|
nodePackages.vscode-langservers-extracted
|
||||||
nodePackages."@tailwindcss/language-server"
|
nodePackages."@tailwindcss/language-server"
|
||||||
|
|
||||||
|
#-- verilog / systemverilog
|
||||||
|
verible
|
||||||
|
|
||||||
#-- CloudNative
|
#-- CloudNative
|
||||||
nodePackages.dockerfile-language-server-nodejs
|
nodePackages.dockerfile-language-server-nodejs
|
||||||
terraform
|
terraform
|
||||||
|
|||||||
@@ -11,6 +11,12 @@
|
|||||||
|
|
||||||
# this app consumes a lot of storage, so do not install it currently
|
# this app consumes a lot of storage, so do not install it currently
|
||||||
# kicad # 3d printing, eletrical engineering
|
# kicad # 3d printing, eletrical engineering
|
||||||
|
|
||||||
|
# fpga
|
||||||
|
pkgs-unstable.python311Packages.apycula # gowin fpga
|
||||||
|
pkgs-unstable.yosys # fpga synthesis
|
||||||
|
pkgs-unstable.nextpnr # fpga place and route
|
||||||
|
pkgs-unstable.openfpgaloader # fpga programming
|
||||||
];
|
];
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
|
|||||||
Reference in New Issue
Block a user