Removing useless enumeration of lsp files
This commit is contained in:
@@ -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',
|
||||
|
||||
+3
-12
@@ -1,13 +1,4 @@
|
||||
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({
|
||||
vim.lsp.enable {
|
||||
'ansiblels',
|
||||
'arduino_language_server',
|
||||
'asm_lsp',
|
||||
@@ -40,5 +31,5 @@ vim.lsp.enable({
|
||||
'tailwindcss',
|
||||
'ty',
|
||||
'vimls',
|
||||
'ziggy'
|
||||
})
|
||||
'ziggy',
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user