29 lines
632 B
Lua
29 lines
632 B
Lua
return {
|
|
"neovim/nvim-lspconfig",
|
|
dependencies = {
|
|
"hrsh7th/nvim-cmp",
|
|
"hrsh7th/cmp-nvim-lsp",
|
|
"hrsh7th/cmp-buffer",
|
|
},
|
|
lazy = false,
|
|
config = function()
|
|
local nvim_lsp = require("lspconfig")
|
|
local capabilities = require('cmp_nvim_lsp').default_capabilities()
|
|
|
|
nvim_lsp.lua_ls.setup({
|
|
capabilities = capabilities,
|
|
settings = {
|
|
Lua = {
|
|
diagnostics = {
|
|
globals = { 'vim' },
|
|
},
|
|
workspace = {
|
|
library = vim.api.nvim_get_runtime_file("", true),
|
|
checkThirdParty = false
|
|
},
|
|
},
|
|
},
|
|
})
|
|
end
|
|
}
|