aboutsummaryrefslogtreecommitdiffstats
path: root/lua
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* docs: hyperlink formatting #1970Simon Weiß2022-06-211-1/+1
|
* fix(ocamllsp): update install instructions (#1966)oemmerson2022-06-191-1/+0
| | | There are stable releases of OCaml-LSP in the the Opam package manager now, it no longer has to be pinned from Git.
* fix(arduino_language_server): update setup docs #1964William Boman2022-06-181-24/+37
| | | | | | | | | | | Since [1] it is now mandatory to provide the '-cli' and '-clangd' flags as their default values were removed. It is no longer possible to start the server without these. The '-fqbn' flag was also missing from the lspconfig docs, and per my own testing and previous investigations [2] it is also a mandatory flag. [1] https://github.com/arduino/arduino-language-server/commit/387a275a243e205ffe3da8400f5cbf5ecc6fa167 [2] https://github.com/williamboman/nvim-lsp-installer/blob/main/lua/nvim-lsp-installer/servers/arduino_language_server/README.md#necessary-extra-configuration
* fix(lspinfo): trim newlines in root_dir pattern (#1962)William Boman2022-06-181-1/+4
|
* fix(docs): fix the usage of ln to make symbolic links of ↵Yang Shen2022-06-181-1/+1
| | | | compile_commands.json (#1961)
* docs(metals): update metals instructions (#1959)Chris Kipp2022-06-161-12/+2
| | | | | | | | | | | | - Updates link to the metals website - Removes the instructions about manual bootstrapping I removed these instructions because with `cs install metals` there is no reason to manually bootstrap it, we actually discourage it. Especially now that we are on a new Scala version (2.13), the old instructions including Scala 2.12 will fail. When using `cs install`, all of this is just handled for you. `nvim-metals` is still the path we recommend for any metals users.
* feat: use official jdtls wrapper script #1833Agorgianitis Loukas2022-06-151-51/+31
|
* fix(taplo): update cargo install command (#1958)Jonathan Lopez2022-06-151-1/+1
|
* feat(php): phan #1953DrWursterich2022-06-141-0/+40
|
* feat: add configuration for ghdl-ls VHDL language server (#1812)Xiretza2022-06-141-0/+22
|
* docs(eslint): reformatting (#1956)Michael Härtl2022-06-141-5/+6
|
* docs: unverbose, mention "settings" paramJustin M. Keyes2022-06-131-3/+8
| | | | | | | | | | | | | | | | | Problem: - The docs are verbose. - The "settings" param is not really clarified anywhere. Solution: - Mention the "settings" param in the README. - Tighten up the wording. - Remove the "Use a loop to conveniently call 'setup'..." advice in the docs. It confuses users and doesn't really save much code. - Start to reduce the scope of nvim-lspconfig. - For example, it is redundant for it to document general LSP things. Thus, the help section *lspconfig-lsp* was removed. closes #1951
* fix(purescript-language-server): root dir for Nix files #1954toastal2022-06-121-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | As seen in the source code: https://github.com/nwolverson/purescript-language-server/blob/db5584d79e698b02e3df12a1299d5f93262bd5ee/src/LanguageServer/IdePurescript/Main.purs#L391 Nix-related files were added to the Language server to establish the root. This commit looks to mimic that behavior. The PureScript community has a lot of Nix-positive users and tooling. Additionally the docs were updated:: * Reflect the new `root_dir` + `root_pattern` list * Include a list of ways to install the language server to your project * Remove the specific, problematic npm install command because ** Globally installing these tools is a bad practice as teams should maintain consistent versions in their projects and users are less likely to remember to upgrade global packages; new documentation suggests to add it to your project, but it doesn’t _not_ say to install it globally if desired ** npm is _not_ the only JavaScript package manager ** JavaScript package managers are not the only way to get the language server ** Unrelated but technically incorrect: the block was labeled as a shell script despite it being a shell session (code block syntax `sh` should be `console`)
* feat(lspinfo): explain root directory not found #1939William Boman2022-06-091-2/+35
|
* fix(svlangserver): don't use custom project setting resolution (#1948)William Boman2022-06-081-12/+11
|
* feat: add cuda support for clangd (#1947)DragonBillow2022-06-071-1/+1
|
* feat: add tilt_ls (#1941)William Boman2022-06-061-0/+26
|
* feat: add Marksman markdown LSP, retire zeta-note (#1946)Artem Pyanykh2022-06-062-22/+29
| | | | | Zeta-Note was retired. Marksman is a successor to the original project, but now instead of being a "**Zettelkasten LSP** that happened to be in Markdown" it's a "**Markdown LSP** that *also* supports Zettelkasten-like note-taking'.
* feat: add visualforce_ls (#1945)William Boman2022-06-061-0/+38
|
* feat: add svlangserver support (#1916)HenryHsieh2022-06-031-0/+66
|
* feat: add apex_ls #1940William Boman2022-06-031-0/+46
|
* fix(dartls): explicitly pass the protocol to dartls (#1943)Christopher Fujino2022-06-031-1/+1
| | | | | Explicitly pass `--protocol=lsp` to the Dart LSP server. Fixes #1942 Works around upstream issue dart-lang/sdk#49157
* style: fix bad formatting (#1944)Peter Lithammer2022-06-023-6/+6
|
* fix: no-argument :LspStop, :LspRestart with standalone files #1785Rishikesh Vaishnav2022-06-012-3/+12
| | | | | | | The no-argument versions of `:LspStop` and `:LspRestart` currently only apply to buffers that have a valid root directory. It seems that these commands should stop/restart all clients, including those associated with standalone files. Closes #1784
* refactor(grammarly): use new, official, npm package (#1924)William Boman2022-06-011-4/+4
|
* fix(lspconfig.lua): lintJustin M. Keyes2022-06-011-1/+1
|
* feat: added wgsl_analyzer support (#1925)Dmitry Kudryavtsev2022-06-011-0/+30
|
* docs(graphql): fix docs on root_dir defaults (#1923)Michael Härtl2022-06-011-1/+1
|
* fix(denols): update settings for lint and tsconfig #1933David2022-05-301-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | - Linting is now enabled by default https://deno.com/blog/v1.22#linting-enabled-by-default-in-the-lsp so it should not be turned off in these settings - `tsconfig` is an outdated way to make any config changes in Deno and should not be used: https://deno.land/manual/typescript/configuration#configuring-typescript-in-deno > ⚠️ Deno v1.14 started supporting a more general configuration file that is no > longer confined to specifying TypeScript compiler settings. Using > tsconfig.json as a file name will still work, but we recommend to use > deno.json or deno.jsonc @jason0x43 agreed in the previous thread: https://github.com/neovim/nvim-lspconfig/pull/1321#issuecomment-1024191242 > Currently, deno only looks for deno.json, deno.jsonc, tsconfig.json, or .git > to determine the root. I think dropping tsconfig.json makes sense because Deno > now has it's own preferred config file name. Having .git seems reasonable > enough because projects will often be in git repos. I could even see enabling > single_file mode by default for the Deno LS since making simple CLI tools is > (theoretically) a standard use case. If this pull request is accepted then the docs can also be simplified: https://deno.land/manual/getting_started/setup_your_environment#neovim-06-and-nvim-lspconfig
* fix: buffer may be invalid during on_attach #1822Tomasz N2022-05-221-8/+10
| | | on_attach is a nontrivial callback so it makes sense to check the bufnr.
* feat: add :LspLog command #1917William Boman2022-05-221-0/+7
|
* docs(volar): Improve config example for monorepos (#1909)Michael Härtl2022-05-201-11/+22
|
* docs(sumneko_lua): fix usage of runtime_path (#1915)Michael Adler2022-05-201-6/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are two ways for sumneko to search for files, namely: 1. Lua.runtime.path When using `require`, how to find the file based on the input name. Setting this config to `?/init.lua` means that when you enter `require 'myfile'`, `${workspace}/myfile/init.lua` will be searched from the loaded files. if `runtime.pathStrict` is `false`, `${workspace}/**/myfile/init.lua` will also be searched. If you want to load files outside the workspace, you need to set `Lua.workspace.library` first. 2. Lua.workspace.library In addition to the current workspace, which directories will load files from. The files in these directories will be treated as externally provided code libraries, and some features (such as renaming fields) will not modify these files. The crucial point is that `Lua.runtime.path` only applies to the *current* workspace. Thus it makes no sense to add any absolute directories here. Absolute directories must be added to workspace.library, which is already the case. The default value provided by sumneko is what you typically would expect, so we can just stick to it. References: - github.com/sumneko/lua-language-server/blob/076dd3e5c4e03f9cef0c57/locale/en-us/setting.lua#L5-L13 - github.com/sumneko/lua-language-server/blob/e62d964ff57cc0b37eb90831/script/config/config.lua#L151
* fix(beancount): fix beancount start command and filetype (#1879)hateonion2022-05-171-5/+3
| | | | | | | | | * fix(beancount): fix beancount start command and config * fix: update beancount config * fix: add single_file_support back * fix: fix lint
* fix(fortls): update server and default cmd args (#1904)gnikit2022-05-151-6/+18
|
* fix(dartls): use a more concise command (#1906)Gavin Zhao2022-05-151-29/+1
| | | | | | | Dart supports a much simpler way of invoking the language server: `dart language-server`. See https://github.com/dart-lang/sdk/tree/master/pkg/analysis_server/tool/lsp_spec#running-the-server Signed-off-by: Gavin Zhao <git@gzgz.dev>
* fix(jsonnet_ls): merge cmd_env instead of ovdrriding it entirely #1559William Boman2022-05-121-3/+6
|
* fix(glint): add more files to root_dir patternWilliam Boman2022-05-061-1/+8
| | | | | | Sourced from the @glint/config package README[1] [1]: https://github.com/typed-ember/glint/blob/main/packages/config/README.md#config-specification