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 ]] -- [[ Install `lazy.nvim` plugin manager ]]
local lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim' 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 { vim.fn.system {
'git', 'git',
'clone', 'clone',
+3 -12
View File
@@ -1,13 +1,4 @@
local servers = {} vim.lsp.enable {
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', 'ansiblels',
'arduino_language_server', 'arduino_language_server',
'asm_lsp', 'asm_lsp',
@@ -40,5 +31,5 @@ vim.lsp.enable({
'tailwindcss', 'tailwindcss',
'ty', 'ty',
'vimls', 'vimls',
'ziggy' 'ziggy',
}) }