navigator.lua/lua/navigator
Michael Adler 2e96dcd327
fix(sumneko): fix incorrect usage of runtime.path (#189)
This is quite tricky to get right, because 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 I have switched to it.

References:

- 076dd3e5c4/locale/en-us/setting.lua (L5-L13)
- e62d964ff5/script/config/config.lua (L151)
2022-05-19 23:09:16 +10:00
..
lspclient fix(sumneko): fix incorrect usage of runtime.path (#189) 2022-05-19 23:09:16 +10:00
cclshierarchy.lua change the way checking total number of clients attached #167 2022-04-08 17:01:40 +10:00
codeAction.lua skip the reorder for codeaction. Null-ls is default to be in bottom of the list 2022-04-07 12:20:07 +10:00
codelens.lua update resolved_capacities -> server_capacities (#185) 2022-05-15 23:13:01 +10:00
debounce.lua Vim diagnostic refactor (#63) 2021-09-19 12:42:34 +10:00
definition.lua update resolved_capacities -> server_capacities (#185) 2022-05-15 23:13:01 +10:00
diagnostics.lua update resolved_capacities -> server_capacities (#185) 2022-05-15 23:13:01 +10:00
dochighlight.lua update resolved_capacities -> server_capacities (#185) 2022-05-15 23:13:01 +10:00
foldlsp.lua update resolved_capacities -> server_capacities (#185) 2022-05-15 23:13:01 +10:00
foldts.lua drop neovim 0.5 deprecated API 2022-02-17 22:21:34 +11:00
formatting.lua update resolved_capacities -> server_capacities (#185) 2022-05-15 23:13:01 +10:00
gui.lua drop neovim 0.5 deprecated API 2022-02-17 22:21:34 +11:00
hierarchy.lua update resolved_capacities -> server_capacities (#185) 2022-05-15 23:13:01 +10:00
implementation.lua update resolved_capacities -> server_capacities (#185) 2022-05-15 23:13:01 +10:00
lazyloader.lua combine on_attach 2022-02-21 14:57:36 +11:00
lru.lua #57 refactor keymapping on lsp attach 2021-09-07 21:08:00 +10:00
lspwrapper.lua update resolved_capacities -> server_capacities (#185) 2022-05-15 23:13:01 +10:00
protocal.txt Code action v2 (#81) 2021-10-01 18:53:52 +10:00
reference.lua update resolved_capacities -> server_capacities (#185) 2022-05-15 23:13:01 +10:00
rename.lua vim.ui.select adapt native codeaction and codelens apply actions (#117) 2021-12-17 08:54:36 +11:00
render.lua add logs 2022-04-17 15:13:54 +10:00
signature.lua update resolved_capacities -> server_capacities (#185) 2022-05-15 23:13:01 +10:00
symbols.lua update resolved_capacities -> server_capacities (#185) 2022-05-15 23:13:01 +10:00
treesitter.lua use native get_node_text 2022-04-20 20:54:40 +10:00
util.lua update resolved_capacities -> server_capacities (#185) 2022-05-15 23:13:01 +10:00
workspace.lua update gui for workspace symbol 2021-12-24 17:30:56 +11:00