Removing useless enumeration of lsp files
This commit is contained in:
@@ -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',
|
||||||
|
|||||||
+35
-44
@@ -1,44 +1,35 @@
|
|||||||
local servers = {}
|
vim.lsp.enable {
|
||||||
for _, dir in ipairs(vim.api.nvim_get_runtime_file('lsp', true)) do
|
'ansiblels',
|
||||||
for name, type in vim.fs.dir(dir) do
|
'arduino_language_server',
|
||||||
if (type == 'file' or type == 'link') and name:sub(-4) == '.lua' then
|
'asm_lsp',
|
||||||
servers[name:sub(1, -5)] = true -- dedupe across runtimepath entries
|
'ast_grep',
|
||||||
end
|
'awk_ls',
|
||||||
end
|
'bashls',
|
||||||
end
|
'clangd',
|
||||||
|
'cmake',
|
||||||
vim.lsp.enable({
|
'cssls',
|
||||||
'ansiblels',
|
'css_variables',
|
||||||
'arduino_language_server',
|
'ctags_lsp',
|
||||||
'asm_lsp',
|
'elixirls',
|
||||||
'ast_grep',
|
'eslint',
|
||||||
'awk_ls',
|
'fish_lsp',
|
||||||
'bashls',
|
'gleam',
|
||||||
'clangd',
|
'golangci_lint_ls',
|
||||||
'cmake',
|
'gopls',
|
||||||
'cssls',
|
'graphql',
|
||||||
'css_variables',
|
'html',
|
||||||
'ctags_lsp',
|
'htmx',
|
||||||
'elixirls',
|
'janet_lsp',
|
||||||
'eslint',
|
'jsonls',
|
||||||
'fish_lsp',
|
'julials',
|
||||||
'gleam',
|
'just',
|
||||||
'golangci_lint_ls',
|
'lua_ls',
|
||||||
'gopls',
|
'nginx_language_server',
|
||||||
'graphql',
|
'ruff',
|
||||||
'html',
|
'rust_analyzer',
|
||||||
'htmx',
|
'systemd_lsp',
|
||||||
'janet_lsp',
|
'tailwindcss',
|
||||||
'jsonls',
|
'ty',
|
||||||
'julials',
|
'vimls',
|
||||||
'just',
|
'ziggy',
|
||||||
'lua_ls',
|
}
|
||||||
'nginx_language_server',
|
|
||||||
'ruff',
|
|
||||||
'rust_analyzer',
|
|
||||||
'systemd_lsp',
|
|
||||||
'tailwindcss',
|
|
||||||
'ty',
|
|
||||||
'vimls',
|
|
||||||
'ziggy'
|
|
||||||
})
|
|
||||||
|
|||||||
Reference in New Issue
Block a user