Add VHDL formatter

This commit is contained in:
2024-10-09 10:00:30 +02:00
parent cfa581bf05
commit deda105b50
4 changed files with 34 additions and 4 deletions

13
lua/vhdl_mode.lua Normal file
View File

@@ -0,0 +1,13 @@
-- vim dummy assignment for the lsp
if vim == nil then
local vim = {}
end
-- Setup the formatter for VHDL
-- Download for current platform type if not already present
local check_formatter = { os.execute("which ~/.local/bin/vhdlfmt") }
if check_formatter == 1 then
-- setup the formatter here
os.execute("wget -O ~/.local/bin/vhdlfmt https://www.nickr.eu/data/vhdlfmt")
os.execute("chmod +x ~/.local/bin/vhdlfmt")
end