neovim / nvim-lspconfig

Quickstart configs for Nvim LSP
Apache License 2.0
9.98k stars 2.04k forks source link

Feature request: Adding single file support for lsp attach #3187

Closed muneebusmani closed 1 month ago

muneebusmani commented 1 month ago

Description

it is really annoying sometimes when the cwd functions to attach lsps to current buffer dont work because sometimes a ppl are not on a framework and not on git (sometimes) and then they wonder why the lsp wont attach, for eg if i do some php scripting , just core php then there is no lsp attached if i dont initialize git, ik it is stupid to do projects without git but still the lsp should be able to attach to current file via some kinda method or so, it would be really helpful if this feature gets added to nvim-lspconfig , Thanks.

justinmk commented 1 month ago

Thanks for your report. The configs in this repo are unsupported and provided only as a starting point. We depend on users (like you) to troubleshoot issues with their specific LSP setups and send improvements.

If you have a usage question, try asking it at:

If you found a bug in the core Nvim vim.lsp module (not part of this repo), the best way to get it fixed is to report to Nvim (not nvim-lspconfig) with: