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',
|
||||
|
||||
+35
-44
@@ -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',
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user