Remove lua-ls

This commit is contained in:
Jan Hamal Dvořák 2025-02-07 14:48:42 +01:00
parent 470dfb3e8c
commit 6a3c123981
Signed by: mordae
GPG key ID: 1782BCC23EE007B9
2 changed files with 0 additions and 39 deletions

View file

@ -7,7 +7,6 @@ require("config.lsp.ruff")
-- require("config.lsp.typescript")
require("config.lsp.clangd")
require("config.lsp.vls")
require("config.lsp.lua_ls")
require("config.lsp.rust_analyzer")
local api = vim.api

View file

@ -1,38 +0,0 @@
local bin_name = "lua-language-server"
local cmd = { bin_name, "--stdio", }
local root_files = {
'.luarc.json',
'.luarc.jsonc',
'.luacheckrc',
'.stylua.toml',
'stylua.toml',
'selene.toml',
'selene.yml',
'lua/',
'.git',
}
vim.api.nvim_create_autocmd("FileType", {
pattern = "lua",
callback = function()
vim.lsp.start({
name = "lua_ls",
cmd = cmd,
root_dir = vim.fs.dirname(vim.fs.find(root_files, { upward = true })[1]),
settings = {
Lua = {
runtime = {
version = 'LuaJIT',
},
workspace = {
checkThirdParty = false,
library = {
vim.env.VIMRUNTIME,
},
},
}
},
})
end,
})