Skip to content

Commit 1dff2e9

Browse files
committed
Some minor updates to lua dev
For some reason opening files still results in vim not being found until the second file is loaded
1 parent f36405d commit 1dff2e9

4 files changed

Lines changed: 10 additions & 6 deletions

File tree

.luacheckrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

.luarc.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

install-helpers.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,8 @@ def install_language_servers(langs: set[Language]):
239239
{
240240
"lua-language-server": [
241241
"--git-url",
242+
"--version",
243+
"3.16.4", # Pin version due to bug with lazydev.nvim https://github.com/folke/lazydev.nvim/issues/136
242244
"https://github.com/LuaLS/lua-language-server",
243245
"--map-arch",
244246
"x86_64=x64",

neovim/lua/lazy_specs/language_servers.lua

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,14 @@ return {
5151
version = "^1",
5252
dependencies = { { "https://github.com/neovim/nvim-lspconfig" } },
5353
ft = "lua",
54-
opts = {},
54+
opts = {
55+
library = {
56+
-- See the configuration section for more details
57+
-- Load luvit types when the `vim.uv` word is found
58+
vim.env.VIMRUNTIME,
59+
{ path = "${3rd}/luv/library", words = { "vim%.uv" } },
60+
},
61+
},
5562
enabled = vim.fn.has("nvim-0.10") == 1,
5663
},
5764
},

0 commit comments

Comments
 (0)