We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently, the configuration only has an option to enable or disable the linter:
# linter can be enabled (true) or disabled (false) [option] linter = true
Is there support for passing a different linter command to svls? For example, maximum line length checks are enabled using a shell wrapper to svlint: https://github.com/dalance/svlint/blob/master/MANUAL.md#test-each-file-for-excessively-long-lines. How can this feature be used from svls?
The text was updated successfully, but these errors were encountered:
This isn't exactly part of svls, but you can do something like this.
I am using Vim with the vim-lsp plugin, so this is normally in my ~/.vimrc:
~/.vimrc
if executable('svls') au User lsp_setup call lsp#register_server({ \ 'name': 'svls', \ 'cmd': {server_info->['svls']}, \ 'whitelist': ['systemverilog'], \ }) endif
When I want to use a different command, like svls --debug or with the SVLINT_CONFIG environment variable, I create a small wrapper script.
svls --debug
SVLINT_CONFIG
First, let's call it /path/to/script/svls-alt:
/path/to/script/svls-alt
#!/usr/bin/env bash SVLINT_CONFIG="/path/to/config/alt.toml" svls --debug $*
Second, I set the executable flag and add it to the PATH in my terminal:
PATH
$ chmod +x /path/to/script/svls-alt $ export PATH="/path/to/script:$PATH"
Third, I update my ~/.vimrc to call the script instead of the svls binary:
svls
if executable('svls-alt') au User lsp_setup call lsp#register_server({ \ 'name': 'svls-alt', \ 'cmd': {server_info->['svls-alt']}, \ 'whitelist': ['systemverilog'], \ }) endif
Now, if I want to change the command (or run additional commands), then I can edit /path/to/script/svls-alt.
Sorry, something went wrong.
No branches or pull requests
Currently, the configuration only has an option to enable or disable the linter:
Is there support for passing a different linter command to svls? For example, maximum line length checks are enabled using a shell wrapper to svlint: https://github.com/dalance/svlint/blob/master/MANUAL.md#test-each-file-for-excessively-long-lines. How can this feature be used from svls?
The text was updated successfully, but these errors were encountered: