techee / geany-lsp

LSP plugin for the Geany editor
GNU General Public License v2.0
19 stars 1 forks source link

Implement "root markers" #33

Closed techee closed 3 months ago

techee commented 5 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.

techee commented 3 months ago

Done.