#Neovim setup

1 messages · Page 1 of 1 (latest)

lapis iris
#

I wanted to start using Yew, i already have a neovim setup working for rust. I'm currently using Mason and mason-lspconfig to install and automatically enable LSPs.
Going to the editor setup page on the documentation suggests the following

return {
  {
    "neovim/nvim-lspconfig",
    init_options = {
      userLanguages = {
        eelixir = "html-eex",
        eruby = "erb",
        rust = "html",
      },
    },
  },
}

But i cant get it running.
This is my current config

return {
  "williamboman/mason-lspconfig.nvim",
  dependencies = {
    "neovim/nvim-lspconfig",
    "williamboman/mason.nvim",
    "williamboman/mason-lspconfig.nvim",
  },
  opts = function()
    local capabilities = require("blink.cmp").get_lsp_capabilities()
    local lspconfig = require("lspconfig")
    return {
      ensure_installed = {},
      automatic_installation = false,
      handlers = {
        function(server_name)
          require("lspconfig")[server_name].setup({ capabilities = capabilities })
        end,
      },
    }
  end,
}

Any ideas on how can it be fixed?

regal fable