12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- local runtime_path = vim.split(package.path, ";")
- table.insert(runtime_path, "lua/?.lua")
- table.insert(runtime_path, "lua/?/init.lua")
- local common = require("lsp.common-config")
- local opts = {
- capabilities = common.capabilities,
- flags = common.flags,
- on_attach = function(client, bufnr)
- common.disableFormat(client)
- common.keyAttach(bufnr)
- end,
- settings = {
- Lua = {
- runtime = {
-
- version = "LuaJIT",
-
- path = runtime_path,
- },
- diagnostics = {
-
- globals = { "vim" },
- },
- workspace = {
-
- library = vim.api.nvim_get_runtime_file("", true),
- checkThirdParty = false,
- },
-
- telemetry = {
- enable = false,
- },
- },
- },
-
-
-
-
-
-
-
-
-
- }
- return {
- on_setup = function(server)
- require("neodev").setup()
- server.setup(opts)
- end,
- }
|