VHDL LSP integration update
Some checks failed
Test Neovim config on push / build (ubuntu-20.04) (push) Failing after 42s
Some checks failed
Test Neovim config on push / build (ubuntu-20.04) (push) Failing after 42s
This commit is contained in:
@@ -35,3 +35,7 @@ endsnippet
|
|||||||
snippet A "All"
|
snippet A "All"
|
||||||
∀
|
∀
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
|
snippet . "Dot"
|
||||||
|
·
|
||||||
|
endsnippet
|
||||||
|
|||||||
13
UltiSnips/veryl.snippets
Normal file
13
UltiSnips/veryl.snippets
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
snippet module "Create a new module" b
|
||||||
|
${1:pub } module ${2:module_name} (
|
||||||
|
$3
|
||||||
|
) {
|
||||||
|
$0
|
||||||
|
}
|
||||||
|
endsnippet
|
||||||
|
|
||||||
|
snippet embed "Add embed"
|
||||||
|
embed (inline) sv{{{
|
||||||
|
$1
|
||||||
|
}}}$0
|
||||||
|
endsnippet
|
||||||
@@ -6,6 +6,7 @@ vim.opt.completeopt = { "menu", "menuone" }
|
|||||||
|
|
||||||
-- shortmess is used to reduce verbocity
|
-- shortmess is used to reduce verbocity
|
||||||
-- vim.opt.shortmess = vim.opt.shortmess + { c = true }
|
-- vim.opt.shortmess = vim.opt.shortmess + { c = true }
|
||||||
|
-- ERROR: Unable to load module
|
||||||
local cmp = require("cmp")
|
local cmp = require("cmp")
|
||||||
cmp.setup({
|
cmp.setup({
|
||||||
-- configuration
|
-- configuration
|
||||||
|
|||||||
@@ -71,6 +71,16 @@ require("formatter").setup({
|
|||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
veryl = {
|
||||||
|
function()
|
||||||
|
return {
|
||||||
|
exe = "veryl fmt",
|
||||||
|
args = {},
|
||||||
|
stdin = false,
|
||||||
|
}
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
|
||||||
-- Use the special "*" filetype for defining formatter configurations on
|
-- Use the special "*" filetype for defining formatter configurations on
|
||||||
-- any filetype
|
-- any filetype
|
||||||
["*"] = {
|
["*"] = {
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ local linters = {
|
|||||||
tex = { "proselint" },
|
tex = { "proselint" },
|
||||||
plaintex = { "proselint" },
|
plaintex = { "proselint" },
|
||||||
ada = { "gnat", "gcc", "adals", "cspell" },
|
ada = { "gnat", "gcc", "adals", "cspell" },
|
||||||
|
vhdl = {},
|
||||||
}
|
}
|
||||||
|
|
||||||
local fixers = {
|
local fixers = {
|
||||||
@@ -30,6 +31,8 @@ local fixers = {
|
|||||||
vim.g.ale_linters = linters
|
vim.g.ale_linters = linters
|
||||||
vim.g.ale_fix_on_save = 0
|
vim.g.ale_fix_on_save = 0
|
||||||
vim.g.ale_fixers = fixers
|
vim.g.ale_fixers = fixers
|
||||||
|
-- vim.g.ale_vhdl_ghdl_options = "--std=08 --workdir=src/"
|
||||||
|
|
||||||
vim.keymap.set("n", "<leader>lf", ":ALEFix<CR>")
|
vim.keymap.set("n", "<leader>lf", ":ALEFix<CR>")
|
||||||
vim.keymap.set("n", "<leader>lp", ":ALEFindReferences<CR>")
|
vim.keymap.set("n", "<leader>lr", ":ALEFindReferences<CR>")
|
||||||
|
vim.keymap.set("n", "<leader>ln", ":ALENext<CR>")
|
||||||
|
|||||||
@@ -56,3 +56,11 @@ end
|
|||||||
|
|
||||||
vim.lsp.enable("als")
|
vim.lsp.enable("als")
|
||||||
vim.lsp.config("als", { projectFile = get_config_file() })
|
vim.lsp.config("als", { projectFile = get_config_file() })
|
||||||
|
|
||||||
|
vim.lsp.enable("vhdl_ls")
|
||||||
|
vim.lsp.config("vhdl_ls", {
|
||||||
|
cmd = { "vhdl_ls" },
|
||||||
|
filetypes = { "vhdl" },
|
||||||
|
root_markers = { "vhdl_ls.toml", ".git" },
|
||||||
|
settings = {},
|
||||||
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user