feat(nvim): use neodev.nvim

This commit is contained in:
winston 2023-05-23 23:54:58 +02:00
parent 4ef156c233
commit 0823340bb4
Signed by: winston
GPG key ID: 3786770EDBC2B481
3 changed files with 4 additions and 24 deletions

View file

@ -1,4 +1,5 @@
{
"Lua.runtime.version": "Lua 5.1",
"$schema": "https://raw.githubusercontent.com/LuaLS/vscode-lua/master/setting/schema.json"
"$schema": "https://raw.githubusercontent.com/LuaLS/vscode-lua/master/setting/schema.json",
"workspace.checkThirdParty": false
}

View file

@ -150,29 +150,6 @@ local on_attach = function(client, bufnr)
end
end
lspconfig.lua_ls.setup({
capabilities = capabilities,
on_attach = on_attach,
settings = {
Lua = {
workspace = {
-- Make the server aware of Neovim runtime files
library = vim.api.nvim_get_runtime_file("", true),
checkThirdParty = false,
maxPreload = 150000,
preloadFileSize = 1000,
},
diagnostics = {
-- Get the server to recognize the `vim` global
globals = { "vim" },
},
telemetry = {
enable = false,
},
},
},
})
lspconfig.ltex.setup({
capabilities = capabilities,
on_attach = function(client, bufnr)
@ -211,6 +188,7 @@ local servers = {
"helm_ls",
"jqls",
"nil_ls",
"lua_ls",
"taplo",
"teal_ls",
}

View file

@ -19,6 +19,7 @@ return {
"folke/trouble.nvim",
opts = { padding = false },
},
{ "folke/neodev.nvim", opts = {} },
"nvim-lua/lsp-status.nvim",
"barreiroleo/ltex-extra.nvim",
"b0o/schemastore.nvim",