mattn / efm-langserver

General purpose Language Server
MIT License
1.34k stars 61 forks source link

Cannot use other rootMarkers except .git #225

Open RMTT opened 2 years ago

RMTT commented 2 years ago

For example, i want use pyproject.toml as rootMarker, and the folder content is:

.
├── a.py
└── pyproject.toml

The efm configuration:

lspconfig.efm.setup {
    init_options = { documentFormatting = true },
    settings = {
        rootMarkers = { 'pyproject.toml', '.git' },
        languages = {
            python = {
                { formatCommand = 'yapf', formatStdin = true },
            }
        }
    },
    filetypes = { 'python' }
}

when open a.py, the LSPInfo: image

mattn commented 5 months ago

What OS are you using?