| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| | | |
|
| |/ |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- On Windows an error occurred (#113).
- On non-Windows, it was always the directory where the file located.
Since 638dad178311e the following error occurs when opening a C source file on Windows:
E5108: Error executing lua shared.lua:427: root_dir: expected directory, got
C:\msys64\home\erw7\src\github.com\neovim\neovim\src\nvim\tui\tui.c
On Windows, the following result does not seem to be `nil`.
vim.loop.fs_stat('C:\\Windows\\System32\\notepad.exe\\.')
fix #113
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
- mention :packadd
- more renames
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Problem: Sending default initOptions to ra_lsp_server the init options
emits error: "failed to deserialize config: invalid length 0,
expected struct ServerConfig with 12 elements" when receiving
an empty initializationOptions from vim.lsp.
Solution: Use an empty dict instead of empty list for
default_config.init_options
LSP spec says initOptions must be a dictionary.
fix #94
fix #107
|
| |
|
|
|
| |
ref b487481e19ab
ref #100
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
`nvim_lsp/skeleton.lua` is not really a skeleton, it's a `configs`
class that provides
1. actual functionality
2. a bunch of configs
Each config is added to the `configs` object (FKA "skeleton") as
a property. Those configs are not "templates", they are "configs". So we
should clean up the wording in various places to say "config" instead of
"skeleton"/"template".
Closes #64
|
| |
|
| |
c.f. #44
|
| | |
|
| |
|
|
| |
Co-authored-by: Hirokazu Hata <h.hata.ai.t@gmail.com>
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Nvim built-in lsp client can handle `initializeOptions` as init_options.
But nvim-lsp can't give init_options to lsp.start_client.
Not all language servers implement `workspace/didChangeConfiguration` now .(ex, gopls)
If we use those servers, we get 'not yet implement' error message.
So if config.settings is empty list, we don't request `workspace/didChangeConfiguration`.
For reference, other client impls:
- https://github.com/prabirshrestha/vim-lsp/blob/f769a450b2b96d517610f0e69408c2ebd5cb4214/autoload/lsp.vim#L355-L356
https://github.com/autozimu/LanguageClient-neovim/blob/5d0b1528f2e5d524a739277b4a1623bcfc0e8688/src/language_server_protocol.rs#L3059-L3070
- https://github.com/natebosch/vim-lsc/blob/bef6e960731f1a2b8797dfee29a14e5a650013ca/autoload/lsc/server.vim#L128-L143
https://github.com/prabirshrestha/vim-lsp/blob/f769a450b2b96d517610f0e69408c2ebd5cb4214/autoload/lsp.vim#L461-L519
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
* use composer.json for root
* prefer cwd unless root is outside cwd
|
| | |
|
| |
|
| |
vim.fn.has('xxx') returns 1 or 0 that both are true in lua.
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Lua is easy to use from Vimscript, there is no reason to have multiple
ways to work with nvim-lsp.
- massively clarifies the "story" that users need to comprehend
- reduces surface area, maintenance, tests
- avoids constant "Vim or Lua" dance in the documentation
- simplifies discussions, tutorials, etc.
- avoids confusing situation for users that start with Vimscript but
later need Lua-only features
|
| |
|
|
|
| |
The sid() hack didn't work on my system, and we can reference Lua global
functions meanwhile.
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
* add support for rust-analyzer
* add rust-analyzer package json
|
| |
|
|
|
|
|
|
| |
* Add vscode name for leanls
* Add vscode name for fortls
* Add vscode name for solargraph
* Add vscode name for ccls
* Add vscode name for elmls
* Update for new lsp.callbacks and add note.
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
| |
* Add sumneko_lua installation and util.sh helper.
* Add vspackage extraction for package.json information via vscode name.
* Allow specifying a tempdir at DOCGEN_TEMPDIR
* Fix on_new_config and add docs for root_dir
* User settings titles are not always useful
|
| |\
| |
| | |
Fixes for new LSP changes
|
| | | |
|
| |/ |
|
| |
|
|
| |
- Add client.workspace_did_change_configuration()
- Notify settings on init.
|
| |
|
|
| |
Fixes neovim/nvim-lsp#39.
|
| |
|
|
|
|
|
|
|
| |
- Fix the problem that Windows identification fails because
uv.os_uname().sysname is different between MSVC(Windows_NT)
and MINGW(MINGW32_NT-XX.X).
- Fixes an issue where is_fs_root() does not return true in the root
directory because dirname() returns a value (such as C:) that does
not include the last path_sep.
- Fix problem where path_join('/', 'home') return '//home'.
|
| |
|
| |
`api.nvim_err_writeln` expected only 1 argument
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
* Use os_homedir as root_dir for single instance servers.
|
| | |
|