diff options
| author | Tmpod <tom@tmpod.dev> | 2024-06-06 13:47:09 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-06 21:47:09 +0800 |
| commit | 30e9a0eb0fbb3dc1a91f48a9c2b32fc51657cdbf (patch) | |
| tree | e4a2e6794299b891200270d764cd81d7e357133d | |
| parent | docs: update server_configurations.md (diff) | |
| download | nvim-lspconfig-30e9a0eb0fbb3dc1a91f48a9c2b32fc51657cdbf.tar nvim-lspconfig-30e9a0eb0fbb3dc1a91f48a9c2b32fc51657cdbf.tar.gz nvim-lspconfig-30e9a0eb0fbb3dc1a91f48a9c2b32fc51657cdbf.tar.bz2 nvim-lspconfig-30e9a0eb0fbb3dc1a91f48a9c2b32fc51657cdbf.tar.lz nvim-lspconfig-30e9a0eb0fbb3dc1a91f48a9c2b32fc51657cdbf.tar.xz nvim-lspconfig-30e9a0eb0fbb3dc1a91f48a9c2b32fc51657cdbf.tar.zst nvim-lspconfig-30e9a0eb0fbb3dc1a91f48a9c2b32fc51657cdbf.zip | |
fix(slint-lsp): set root dir to git ancestor (#3194)
Without this, the LSP doesn't resolve imports properly, at least on
recent versions.
| -rw-r--r-- | lua/lspconfig/server_configurations/slint_lsp.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lua/lspconfig/server_configurations/slint_lsp.lua b/lua/lspconfig/server_configurations/slint_lsp.lua index e921cb68..bdd36597 100644 --- a/lua/lspconfig/server_configurations/slint_lsp.lua +++ b/lua/lspconfig/server_configurations/slint_lsp.lua @@ -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 = { |
