plugins/nvim-lsp: add rootDir option for language servers (#387)

This commit is contained in:
Gaétan Lepage 2023-05-25 19:41:18 +02:00 committed by GitHub
parent fe581914ba
commit 51afeda8e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 0 deletions

View file

@ -49,6 +49,13 @@
filetypes = ["python"];
autostart = false;
};
# rootDir
typst-lsp = {
enable = true;
rootDir = ''
require 'lspconfig.util'.root_pattern('.git', 'main.typ')
'';
};
};
};
};