Commit Graph

16 Commits

Author SHA1 Message Date
Will Hopkins 983a93b2b6
fix(deprecation): remove use of deprecated API functions (#59)
Removes usage of several deprecated API functions, and changes all uses
of `vim.loop` to `vim.uv`.

Now that 0.10 is released, several functions used here have been
deprecated and show warnings when they're first called.

I've updated:
- `lsp.get_active_clients()` -> `lsp.get_clients()`
- `api.nvim_buf_set_option` -> `api.nvim_set_option_value` with
buf-local scope
- `api.nvim_win_set_option` -> `api.nvim_set_option_value` with
window-local scope
- `vim.tbl_flatten` -> `vim.iter(t):flatten():totable()`
- `vim.loop.*` -> `vim.uv.*`
- `vim.islist or vim.tbl_islist` -> `vim.islist`

---------

Co-authored-by: Folke Lemaitre <folke.lemaitre@gmail.com>
2024-07-06 23:58:43 +02:00
Andre Toerien 45484f5b97
fix(build): fix schema generation issues (#63)
This fixes a few issues relating to the CI json schema generation.

- befcc1f452e2226d329b67b0510bd5f2e4a75591 fixes #60, and also fixes
several other servers that previously had an empty `properties` in the
schema. This happened because `c.properties` is a table, which means
`vim.list_extend` doesn't do anything. `properties` should also always
be an object and not an array, so `vim.empty_dict()` is now being used
to prevent outputting `[]` when `properties` is empty.
- 84e19f41b4c0ad6865fdc61f62bae5cff496b71f embeds `index.json` rather
than downloading it every time. As mentioned in #54, the gist is no
longer maintained, so there's no reason to download it anymore. In the
future this should probably be [sourced from
elsewhere](https://gist.github.com/williamboman/a01c3ce1884d4b57cc93422e7eae7702?permalink_comment_id=4689512).
- 2a911fd425dabc54847d61c387fabb4cd572907e fixes the URL for Volar.
- 6dfd503dc5a09a040dab00c2922d4d4e0f9374b5 is just me running the build
step locally. If I shouldn't have done this I'm happy to revert it.

Fixes #52
Fixes #60

Co-authored-by: Folke Lemaitre <folke.lemaitre@gmail.com>
2024-07-06 23:52:35 +02:00
Folke Lemaitre ba191d88af
style: format 2024-07-05 15:41:26 +02:00
Folke Lemaitre 86ed5b9192
Revert "Revert "fix(lspconfig): dont deepcopy the full config. Do settings only""
This reverts commit 2609dee882.
2023-09-29 11:10:57 +02:00
Folke Lemaitre 2609dee882
Revert "fix(lspconfig): dont deepcopy the full config. Do settings only"
This reverts commit 37a7205282.
2023-09-29 11:09:47 +02:00
Folke Lemaitre 37a7205282
fix(lspconfig): dont deepcopy the full config. Do settings only 2023-09-28 17:07:56 +02:00
Folke Lemaitre 67acada4ed
fix(schema): correctly format uri. Fixes #18 2023-03-16 08:34:29 +01:00
Folke Lemaitre 7297592907
fix(lspconfig): replace backslashes on windows. Fixes #18 2023-03-15 16:22:51 +01:00
Folke Lemaitre 835da21fd7
feat(lspconfig): allow setting the lsp server to false to disable it in your project. Fixes #1 2023-03-08 08:36:26 +01:00
Folke Lemaitre 5231f541ae
refactor: sumneko -> lua_ls 2023-02-12 11:12:18 +01:00
Yuta Katayama 156a3eed89
fix: rename sumneko_lua -> lua_ls (#12) 2023-02-12 11:04:37 +01:00
Folke Lemaitre 274c7700d9
fix: only expand top-level and lspconfig settings. Fixes #11 2023-02-07 23:35:37 +01:00
Folke Lemaitre 8a4e1336f1
fix: add types/lua to workspace 2023-01-22 21:17:44 +01:00
Folke Lemaitre 79133ab99e
fix: removed get_schema code. No longer needed. 2022-09-18 22:08:31 +02:00
Folke Lemaitre efa50461a5
feat: move imported schema defs for jsonls to separate file 2022-09-17 18:01:54 +02:00
Folke Lemaitre 8a275c6cee
refactor: changed module name from nvim-settings to neoconf 2022-09-17 18:01:54 +02:00