diff --git a/vhdl_defaults.toml b/vhdl_defaults.toml new file mode 100644 index 0000000..01d64bd --- /dev/null +++ b/vhdl_defaults.toml @@ -0,0 +1,31 @@ +# What standard to use. This is optional and defaults to VHDL2008. +standard = "2008" +# File names are either absolute or relative to the parent folder of the vhdl_ls.toml file +[libraries] +lib2.files = [ + 'pkg2.vhd', +] +lib1.files = [ + 'pkg1.vhd', + 'tb_ent.vhd' +] + +# Wildcards and exclude patterns are supported +lib3.files = [ + 'test/*.vhd', + 'src/*.vhd', + 'src/*/*.vhd', +] +lib3.exclude = [ + 'test/*_old.vhd', +] + +# Libraries can be marked as third-party to disable some analysis warnings, such as unused declarations +UNISIM.files = [ + 'C:\Xilinx\Vivado\2023.1\data\vhdl\src\unisims\unisim_VCOMP.vhd', +] +UNISIM.is_third_party = true + +[lint] +unused = 'error' # Upgrade the 'unused' diagnostic to the 'error' severity +unnecessary_work_library = false # Disable linting for the 'library work;' statement