feat(nvim): use neodev.nvim
This commit is contained in:
parent
4ef156c233
commit
0823340bb4
3 changed files with 4 additions and 24 deletions
|
@ -1,4 +1,5 @@
|
||||||
{
|
{
|
||||||
"Lua.runtime.version": "Lua 5.1",
|
"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
|
||||||
}
|
}
|
||||||
|
|
|
@ -150,29 +150,6 @@ local on_attach = function(client, bufnr)
|
||||||
end
|
end
|
||||||
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({
|
lspconfig.ltex.setup({
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
on_attach = function(client, bufnr)
|
on_attach = function(client, bufnr)
|
||||||
|
@ -211,6 +188,7 @@ local servers = {
|
||||||
"helm_ls",
|
"helm_ls",
|
||||||
"jqls",
|
"jqls",
|
||||||
"nil_ls",
|
"nil_ls",
|
||||||
|
"lua_ls",
|
||||||
"taplo",
|
"taplo",
|
||||||
"teal_ls",
|
"teal_ls",
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,6 +19,7 @@ return {
|
||||||
"folke/trouble.nvim",
|
"folke/trouble.nvim",
|
||||||
opts = { padding = false },
|
opts = { padding = false },
|
||||||
},
|
},
|
||||||
|
{ "folke/neodev.nvim", opts = {} },
|
||||||
"nvim-lua/lsp-status.nvim",
|
"nvim-lua/lsp-status.nvim",
|
||||||
"barreiroleo/ltex-extra.nvim",
|
"barreiroleo/ltex-extra.nvim",
|
||||||
"b0o/schemastore.nvim",
|
"b0o/schemastore.nvim",
|
||||||
|
|
Loading…
Reference in a new issue