Closed techee closed 3 months ago
Nothing LSP-related but it would be useful to detect project root even without having project open and base path set. I noticed that for Haskell LSP there's this configuration
let g:LanguageClient_rootMarkers = ['*.cabal', 'stack.yaml']
https://github.com/haskell/haskell-language-server/blob/master/docs/configuration.md#configuring-your-editor
so the plugin can traverse from the currently open file up and detect the project root based on the presence of these files.
Done.
Nothing LSP-related but it would be useful to detect project root even without having project open and base path set. I noticed that for Haskell LSP there's this configuration
https://github.com/haskell/haskell-language-server/blob/master/docs/configuration.md#configuring-your-editor
so the plugin can traverse from the currently open file up and detect the project root based on the presence of these files.