install lua-dev plugin
This commit is contained in:
@@ -23,6 +23,7 @@ require("packer").startup(function(use)
|
||||
|
||||
use({ "nvim-lua/popup.nvim" })
|
||||
use({ "nvim-lua/plenary.nvim" })
|
||||
use({ "folke/lua-dev.nvim" })
|
||||
|
||||
-- Colorschemes go here
|
||||
use({ "folke/tokyonight.nvim" })
|
||||
|
||||
@@ -60,27 +60,14 @@ lsp_installer.on_server_ready(function(server)
|
||||
}
|
||||
|
||||
if server.name == "sumneko_lua" then
|
||||
local runtime_path = vim.split(package.path, ";")
|
||||
table.insert(runtime_path, "lua/?.lua")
|
||||
table.insert(runtime_path, "lua/?/init/lua")
|
||||
local luadev = require("lua-dev").setup({
|
||||
lspconfig = {
|
||||
capabilities = capabilities,
|
||||
on_attach = on_attach,
|
||||
},
|
||||
})
|
||||
|
||||
opts.settings = {
|
||||
Lua = {
|
||||
runtime = {
|
||||
version = "LuaJIT",
|
||||
path = runtime_path,
|
||||
},
|
||||
diagnostics = {
|
||||
globals = { "vim" },
|
||||
},
|
||||
workspace = {
|
||||
library = vim.api.nvim_get_runtime_file("", true),
|
||||
},
|
||||
telemetry = {
|
||||
enable = false,
|
||||
},
|
||||
},
|
||||
}
|
||||
opts = luadev
|
||||
end
|
||||
|
||||
if server.name == "jsonls" then
|
||||
|
||||
Reference in New Issue
Block a user