diff options
| author | Michael Lingelbach <m.j.lbach@gmail.com> | 2021-03-28 15:24:56 -0700 |
|---|---|---|
| committer | Michael Lingelbach <m.j.lbach@gmail.com> | 2021-03-28 15:24:56 -0700 |
| commit | 99093fb6bd38b3cdf7e65d35381a9014a305fcd9 (patch) | |
| tree | 644805d0cd7af50334b390d741e602f7805ce833 /README.md | |
| parent | Merge pull request #799 from mjlbach/fixes (diff) | |
| download | nvim-lspconfig-99093fb6bd38b3cdf7e65d35381a9014a305fcd9.tar nvim-lspconfig-99093fb6bd38b3cdf7e65d35381a9014a305fcd9.tar.gz nvim-lspconfig-99093fb6bd38b3cdf7e65d35381a9014a305fcd9.tar.bz2 nvim-lspconfig-99093fb6bd38b3cdf7e65d35381a9014a305fcd9.tar.lz nvim-lspconfig-99093fb6bd38b3cdf7e65d35381a9014a305fcd9.tar.xz nvim-lspconfig-99093fb6bd38b3cdf7e65d35381a9014a305fcd9.tar.zst nvim-lspconfig-99093fb6bd38b3cdf7e65d35381a9014a305fcd9.zip | |
docs: add note about spawn on Windows
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 20 |
1 files changed, 17 insertions, 3 deletions
@@ -14,9 +14,9 @@ that are installed on your system. Update Neovim and nvim-lspconfig before reporting an issue. * nvim-lspconfig is just a plugin. Install it like any other Vim plugin, e.g. with [vim-plug](https://github.com/junegunn/vim-plug): - ``` - :Plug 'neovim/nvim-lspconfig' - ``` +```vim +:Plug 'neovim/nvim-lspconfig' +``` ## Quickstart 1. Install a language server, e.g. [pyright](CONFIG.md#pyright) via `npm i -g pyright` 2. Install `nvim-lspconfig` via your plugin manager @@ -328,6 +328,20 @@ Attempt to run the language server, and open the log with: ``` Most of the time, the reason for failure is present in the logs. +## Windows + +In order for neovim to launch certain executables on Windows, it must append `.cmd` to the command name. A fix is in the works upstream, but until this is mainlined please the following somewhere in your init.vim (lua heredoc) or init.lua: + +```lua +vim.loop.spawn = (function () + local spawn = vim.loop.spawn + return function(path, options, on_exit) + local full_path = vim.fn.exepath(path) + return spawn(full_path, options, on_exit) + end +end)() +``` + ## Contributions If you are missing a language server on the list in [CONFIG.md](CONFIG.md), contributing a new configuration for it would be appreciated. You can follow these steps: |
