Skip to content

Commit 30e9a0e

Browse files
authored
fix(slint-lsp): set root dir to git ancestor (#3194)
Without this, the LSP doesn't resolve imports properly, at least on recent versions.
1 parent e8e71e3 commit 30e9a0e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lua/lspconfig/server_configurations/slint_lsp.lua

+3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1+
local util = require 'lspconfig.util'
2+
13
return {
24
default_config = {
35
cmd = { 'slint-lsp' },
46
filetypes = { 'slint' },
7+
root_dir = util.find_git_ancestor,
58
single_file_support = true,
69
},
710
docs = {

0 commit comments

Comments
 (0)