Skip to content
New issue

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

svls basic config #2735

Closed
pevhall opened this issue Jul 26, 2023 · 1 comment
Closed

svls basic config #2735

pevhall opened this issue Jul 26, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@pevhall
Copy link

pevhall commented Jul 26, 2023

Description

The default svls config seems unable to find the root directory.

To change I suggest updating the root_dir default setting as follows

local util = require 'lspconfig.util'

lspconfig.svls.setup {
  root_dir = util.root_pattern(".svls.toml", ".git")
}

Neovim version

NVIM v0.9.1
Build type: Release
LuaJIT 2.1.0-beta3

system vimrc file: "$VIM/sysinit.vim"
fall-back for $VIM: "/usr/local/share/nvim"

Run :checkhealth for more info

Nvim-lspconfig version

No response

Operating system and version

Ubuntu WSL and 22.4

Affected language servers

svls

Steps to reproduce

Run the basic config

lspconfig.svls.setup {}

Open a verilog file (*.v)

Actual behavior

language sever does not boot

LSPInfo shows it cannot find the root directory

Expected behavior

The fix is in the description.

Minimal config

The fix is in the description

LSP log

The fix is in the description

@pevhall pevhall added the bug Something isn't working label Jul 26, 2023
@justinmk
Copy link
Member

send a pr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants