aboutsummaryrefslogtreecommitdiffstats
path: root/lua
Commit message (Collapse)AuthorAgeFilesLines
...
* fix: add vim.deprecate in old function (#2080)Raphael2022-08-241-0/+10
| | | | | * fix: add vim.deprecrate in old function * fix: typo
* fix(denols): revert "remove unneeded lsp attach" #2070sigmaSd2022-08-231-4/+3
| | | | | | | | | | | | | | | I found the root cause of denols problems: https://github.com/neovim/neovim/pull/19797 With that pr applied (and with this revert) denols works perfectly almost identical to vscode deno, its missing some features but I imagine those are out of scope for lspconfig. Problems will reappear until nvim fixes: https://github.com/neovim/nvim-lspconfig/issues/1998 This is an ok tradeoff because `single_file_support=true` causes other issues: https://github.com/neovim/nvim-lspconfig/issues/2069
* feat(denols): only send lsp requests to deno server (#2055)sigmaSd2022-08-231-28/+26
|
* feat!: 0.7 API update (#1984)Ranjith Hegde2022-08-234-144/+72
| | | | | | | | | | | * switch to lua api for autocommands * switch to nvim_create_user_command * move to lua plugin initialization NOTICE: Defining commands in server configurations will be deprecated in future releases. See `:help lspconfig.txt` to setup the same in an `on_attach` function. Co-authored-by: Michael Lingelbach <m.j.lbach@gmail.com>
* feat: allow attaching to paths inside archives (#1687)Stéphan Kochen2022-08-231-3/+15
|
* feat: add glsl-language-server support (#2003)Ben Fradella2022-08-231-0/+28
|
* fix: only consider servers that have been set up as available (#2066)William Boman2022-08-231-1/+7
| | | | | * test: add failing test * fix(lspconfig): only consider servers that have been set up as available
* feat(pasls): add lpi and lpk to root dir detection (#1692)BarrOff2022-08-231-1/+1
|
* add veridian language server for verilog/systemverilog (#2058)Komorebi2022-08-231-0/+23
| | | Co-authored-by: komer <hyluo.1999@qq.com>
* Merge pull request #2065 from williamboman/feat/csharp_ls-root-dirRaphael2022-08-231-1/+1
|\ | | | | feat(csharp_ls): add '*.fsproj' to root_dir
| * feat(csharp_ls): add '*.fsproj' to root_dirWilliam Boman2022-08-151-1/+1
| | | | | | | | | | | | | | | | Full disclaimer: I have not done any F# development myself. This is based on the project file configuration found in the LSP server implementation itself [1]. [1]: https://github.com/razzmatazz/csharp-language-server/blob/d887595f29af334aa2900381f5336644d9ce5e61/src/CSharpLanguageServer/RoslynHelpers.fs#L550-L554
* | feat: add nxls support (#2062)Jonathan Cammisuli2022-08-211-0/+31
| |
* | feat: add buf-language-server support (#2073)Rintaro Okamura2022-08-211-0/+33
| |
* | feat: add relay language server support (#2048)Vadim Evseev2022-08-211-0/+117
| |
* | feat: add nil support (#2053)oxalica2022-08-211-0/+23
|/
* feat: add syntax_tree lsp for ruby formatting (#2056)Wassim Metallaoui2022-08-091-0/+37
|
* feat: add qml-lsp support (#2044)PopeRigby2022-08-081-0/+16
| | | | | * feat: add qml-lsp support * fix(qml-lsp): update qml-lsp formatting
* fix(denols): fix misspellingJeff Fowler2022-08-061-1/+1
|
* docs: fix typo `type` -> `typescript`Tyler Miller2022-08-061-1/+1
|
* fix(rust_analyzer): sanitize root_dir (#2047)bstaint2022-08-031-1/+1
|
* style: fix dartls formatting (#2042)Peter Lithammer2022-08-011-3/+4
|
* feat: add dagger CUE lsp (#2023)Marcos Nils2022-08-011-0/+22
| | | Signed-off-by: Marcos Lilljedahl <marcosnils@gmail.com>
* fix(lua-language-server): cmd fails on Windows when using mason #2039TuanHA2022-08-011-1/+9
|
* fix(pylsp): elaborate configuration example (#2037)David Kennedy2022-08-011-2/+19
| | | See #1116, #1880, #1951, etc.
* fix(gopls): engage gopls on `go.work` files (#2041)Omer Tuchfeld2022-07-311-1/+1
|
* fix(lemminx): update download location #2038David Thompson2022-07-281-2/+2
| | | | | | | | We no longer publish the lemminx binaries to download.jboss.org as a part of our release process for vscode-xml, so the binaries for the latest releases of lemminx are not there. However, they are available on the [vscode-xml GitHub](https://github.com/redhat-developer/vscode-xml), under releases. Signed-off-by: David Thompson <davthomp@redhat.com>
* fix: broken URL to taplo homepage #2025equal-l22022-07-251-1/+1
|
* fix: lspconfig.util is required with different names #2029ii142022-07-251-1/+1
| | | | | | sourcery configuration requires 'lspconfig/util', where everything else uses 'lspconfig.util'. Co-authored-by: ii14 <ii14@users.noreply.github.com>
* feat(texlab): support plaintex #2022yourealwaysbe2022-07-221-1/+1
| | | | | Sometimes simple LaTeX documents are detected as plaintex rather than tex, meaning texlab will not be applied without a manual change of filetype.
* fix(emmet-ls): missing supported filetypes #2017Lior Kummer2022-07-221-1/+1
| | | | For information on filetypes supported by emmet-ls, see: https://github.com/aca/emmet-ls#supported-filetypes
* fix(dartls): "dart" command not found on Windows #2013erietz-werner2022-07-221-1/+5
|
* fix(denols): handle deno.cache from codeaction #2016sigmaSd2022-07-221-0/+7
|
* feat(omnisharp): add more settings #2018William Boman2022-07-221-20/+107
| | | | | These have primarily been sourced from the VSCode extension [1]. [1] https://github.com/OmniSharp/omnisharp-vscode/blob/88ad237e1e904ad0f91d2de39c30132198a02dcb/src/omnisharp/server.ts#L345-L434
* fix(hls): wrong root dir for multi-package projects #2010Alexander Makarov2022-07-171-3/+15
| | | | | | | | Problem: In haskell multi-package projects there is *.cabal file in every package folder, so util.root_pattern always find root of the package but not project. Solution: Adjust the condition.
* fix(denols): jumping to definition then returning breaks lsp #2000sigmaSd2022-07-171-2/+3
| | | | | | - remove unneeded lsp attach - default to single_file_support=true fix https://github.com/neovim/nvim-lspconfig/issues/1998
* fix(denolos): ignore caching error #2009sigmaSd2022-07-171-5/+1
| | | | Caching actually works but it throws an error, vscode-deno also doesn't seem to care about errors https://github.com/denoland/vscode_deno/blob/196a11cead2d95c324cb772dd568ba7c2801b68a/client/src/commands.ts#L60
* fix(ccls): provide a string in docs.default_config.root_dir (#2006)William Boman2022-07-162-16/+15
|
* fix(denols): ignore virtual text error #1995sigmaSd2022-07-141-11/+17
| | | | | | | | | | | | | If you open a file and immediately try to go to definition this error happens: ``` {["error"]={["message"]="Method not found: deno/virtualTextDocument",["code"]="-32601"}} {["error"]={["message"]="Method not found: deno/virtualTextDocument",["code"]="-32601"}} {["error"]={["code"]="-32601",["message"]="Method not found: deno/virtualTextDocument"}} {["error"]={["code"]="-32601",["message"]="Method not found: deno/virtualTextDocument"}} ``` Seems to be a race condition where the virtual text handling is not ready yet. Because this error is unhelpful and the gotodefinition works normally after a couple of seconds, just ignore it.
* feat: antlersls config for Statamic Antlers templating language #1997Jesse Leite2022-07-141-0/+26
|
* fix(sumneko_lua): Stylua default (#1996)Null Chilly2022-07-131-1/+2
| | | https://github.com/JohnnyMorganz/StyLua#finding-the-configuration
* fix: remove unused variables in `lspinfo.lua` (#1999)Peter Lithammer2022-07-141-7/+0
| | | | | | | | | | | | | | | | | | | | | | ```console $ selene . warning[unused_variable]: buf_client_names is assigned a value, but never used ┌─ lua/lspconfig/ui/lspinfo.lua:160:9 │ 160 │ local buf_client_names = {} │ ^^^^^^^^^^^^^^^^ 161 │ for _, client in pairs(buf_clients) do 162 │ table.insert(buf_client_names, client.name) │ ---------------- `table.insert` only writes to `buf_client_names` warning[unused_variable]: client_names is assigned a value, but never used ┌─ lua/lspconfig/ui/lspinfo.lua:171:9 │ 171 │ local client_names = {} │ ^^^^^^^^^^^^ · 176 │ table.insert(client_names, client.name) │ ------------ `table.insert` only writes to `client_names` ```
* fix(gradle): set init_options.settings.gradleWrapperEnabled #1994karlivory2022-07-091-0/+11
| | | | | | | | | | | | | | | Problem: gradle-language-server doesn't work well without some kind of `init_options.settings` parameters. There's some important stuff in: https://github.com/microsoft/vscode-gradle/blob/a0151761aa2a6a07b64ced0dda5f6e9f01e77fd9/gradle-language-server/src/main/java/com/microsoft/gradle/GradleServices.java#L162-L169 that won't get called unless `init_options.settings` is at least defined. In particular if `settings == null`, gradleWrapperEnabled will be `null` as well and https://github.com/microsoft/vscode-gradle/blob/a0151761aa2a6a07b64ced0dda5f6e9f01e77fd9/gradle-language-server/src/main/java/com/microsoft/gradle/resolver/GradleLibraryResolver.java#L106 `libFolder` won't be resolved. Solution: Set `init_options.settings.gradleWrapperEnabled=true` because it's a sensible default, then `init_options.settings` isn't empty.
* feat(eslint): support yarn2 PnP projects #1777William Boman2022-07-051-0/+7
| | | | | | | https://yarnpkg.com/features/pnp Yarn's PnP feature changes the way packages are installed. Instead of building on the `node_modules` resolution, it introduces a single `.pnp.*js` file in the project. This file is responsible for orchestrating and resolving dependencies. The eslint LSP server will assume that regular `node_modules` resolution applies when locating the `eslint` package - which will not work in Yarn PnP projects. To work around this, Yarn provides the ability to run Node programs in "PnP-compat" mode via `yarn exec` and `yarn node`. My understanding is that this simply hooks into the `require()` function to resolve modules via PnP instead Node's builtin module resolution.
* fix(lspinfo): may use wrong buffer #1983William Boman2022-07-051-3/+6
| | | The `vim.fn.expand '%:p:h'` used to acquire the directory of the opened buffer would actually be executed in the context of the floating `:LspInfo` - causing it to return the current working directory instead of the actual buffer directory (the one that was active when opening the `:LspInfo` window).
* docs: formatting #1981BarrOff2022-07-021-0/+2
|
* fix(eslint): fetch active buf client in fix_all (#1978)Guillaume Lagrange2022-07-021-11/+1
|
* fix(cmake-ls): root pattern should allow nesting (#1976)kylo2522022-06-291-3/+3
| | | it should be fine for a project to have another `CMakeLists.txt`
* feat: root finder for Mercurial repo #1847Florin Iucha2022-06-281-0/+8
|
* feat: add m68k #1871Graham Bates2022-06-281-0/+36
|
* docs: svelte integration with tsserver (#1972)Jacob2022-06-261-0/+2
|