Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot use other rootMarkers except .git #225

Open
RMTT opened this issue Jun 30, 2022 · 1 comment
Open

Cannot use other rootMarkers except .git #225

RMTT opened this issue Jun 30, 2022 · 1 comment

Comments

@RMTT
Copy link

RMTT commented Jun 30, 2022

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
Copy link
Owner

mattn commented Mar 18, 2024

What OS are you using?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants