Skip to content

Commit

Permalink
fix(slint-lsp): set root dir to git ancestor (#3194)
Browse files Browse the repository at this point in the history
Without this, the LSP doesn't resolve imports properly, at least on
recent versions.
  • Loading branch information
Tmpod authored Jun 6, 2024
1 parent e8e71e3 commit 30e9a0e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/lspconfig/server_configurations/slint_lsp.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
local util = require 'lspconfig.util'

return {
default_config = {
cmd = { 'slint-lsp' },
filetypes = { 'slint' },
root_dir = util.find_git_ancestor,
single_file_support = true,
},
docs = {
Expand Down

0 comments on commit 30e9a0e

Please sign in to comment.