Removing useless enumeration of lsp files

This commit is contained in:
Ian Roddis
2026-05-18 20:27:58 -03:00
parent 25be7f6101
commit a79b5b8f97
2 changed files with 36 additions and 45 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
-- [[ Install `lazy.nvim` plugin manager ]]
local lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim'
if not vim.loop.fs_stat(lazypath) then
if not vim.uv.fs_stat(lazypath) then
vim.fn.system {
'git',
'clone',
+35 -44
View File
@@ -1,44 +1,35 @@
local servers = {}
for _, dir in ipairs(vim.api.nvim_get_runtime_file('lsp', true)) do
for name, type in vim.fs.dir(dir) do
if (type == 'file' or type == 'link') and name:sub(-4) == '.lua' then
servers[name:sub(1, -5)] = true -- dedupe across runtimepath entries
end
end
end
vim.lsp.enable({
'ansiblels',
'arduino_language_server',
'asm_lsp',
'ast_grep',
'awk_ls',
'bashls',
'clangd',
'cmake',
'cssls',
'css_variables',
'ctags_lsp',
'elixirls',
'eslint',
'fish_lsp',
'gleam',
'golangci_lint_ls',
'gopls',
'graphql',
'html',
'htmx',
'janet_lsp',
'jsonls',
'julials',
'just',
'lua_ls',
'nginx_language_server',
'ruff',
'rust_analyzer',
'systemd_lsp',
'tailwindcss',
'ty',
'vimls',
'ziggy'
})
vim.lsp.enable {
'ansiblels',
'arduino_language_server',
'asm_lsp',
'ast_grep',
'awk_ls',
'bashls',
'clangd',
'cmake',
'cssls',
'css_variables',
'ctags_lsp',
'elixirls',
'eslint',
'fish_lsp',
'gleam',
'golangci_lint_ls',
'gopls',
'graphql',
'html',
'htmx',
'janet_lsp',
'jsonls',
'julials',
'just',
'lua_ls',
'nginx_language_server',
'ruff',
'rust_analyzer',
'systemd_lsp',
'tailwindcss',
'ty',
'vimls',
'ziggy',
}