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