[Verilog] Improve diagnostics
This commit is contained in:
		| @@ -185,15 +185,24 @@ return { | ||||
|             end, | ||||
|         } | ||||
|  | ||||
|         local lspconfutil = require 'lspconfig/util' | ||||
|         local root_pattern = lspconfutil.root_pattern("veridian.yml", ".git", ".xpr") | ||||
|         local verilog_root_dir = function () | ||||
|             local filename =  lspconfutil.path.join(vim.loop.cwd(), fname) | ||||
|             return root_pattern(filename) or lspconfutil.path.dirname(filename) | ||||
|         end | ||||
|         lspconfig.veridian.setup { | ||||
|             cmd = { 'veridian' }, | ||||
|             capabilities = capabilities, | ||||
|             on_attach = on_attach, | ||||
|             root_dir = verilog_root_dir | ||||
|         } | ||||
|  | ||||
|         lspconfig.verible.setup( { | ||||
|             -- cmd = { 'verible-verilog-ls', '--rules_config=/home/janis/.config/nvim/util/verible-conf.json' }, | ||||
|             cmd = { 'verible-verilog-ls', '--rules=-no-trailing-spaces', '' }, | ||||
|             capabilities = capabilities, | ||||
|             on_attach = on_attach | ||||
|             on_attach = on_attach, | ||||
|             root_dir = verilog_root_dir | ||||
|         } ) | ||||
|  | ||||
|     end, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user