Closed akiletour closed 2 years ago
That's great idea! Could you also nest them so the final structure will be:
lsp = {
servers = {
-- 'bash',
-- 'css',
-- 'eslint',
-- 'graphql',
-- 'html',
-- 'json',
-- 'lua',
-- 'tailwind',
-- 'tsserver',
-- 'vue2'
}
},
By that it gives possibility to extend it with another options such as icons
or something new in future.
Then we can modify a bit for loop:
for _, server_name in ipairs(EcoVim.lsp.servers) do
require('lsp.servers.' .. server_name)
end
Thank you for your contribution!
Good idea @ecosse3 :) Is it better now?
Is it better now?
Thank you, it's great!
Hello,
I had an idea, I don't know if you will like it :D
Why not move the loading of LSPs directly from the
lua/config.lua
file, which will allow us to have less file to modify if we want to use ecovim.What do you think about it?