Closed hitfm00 closed 2 years ago
You just need to do two steps:
:Mason
(just press i
on it).lua/lsp/setup.lua
:for _, server in ipairs { "bashls", "graphql", "html", "volar", "prismals" } do
In the next version of Ecovim (3.0) I'll configure ease of user-customizable config but it has to wait a bit.
Thanks! But I went a little different way
lua/lsp/setup.lua
added this:
lsp/servers/astro.lua
added this:
local M = {}
M.setup = function()
local lsp = require("lspconfig")
local on_attach = require("lsp.on_attach")
local opts = {
on_attach = function(client, bufnr)
client.server_capabilities.document_formatting = false
client.server_capabilities.document_range_formatting = false
on_attach(client, bufnr)
end,
capabilities = require("lsp.capabilities"),
flags = { debounce_text_changes = 150 },
}
lsp.astro.setup(opts)
end
return M
I don't know why, but :Mason
and press I
didn't work for me.
I like EcoVim, Good work! :)
I found this https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#astro But don't understand how to implement this language server to the nvim