Skip to content

Using vim.lsp.config / enable in neovim >= 0.11 #299

@Grueslayer

Description

@Grueslayer

As require('lspconfig') is deprecated, i tried to move to vim.lsp.config but no references would be found anymore

      local capabilities = require("cmp_nvim_lsp").default_capabilities(vim.lsp.protocol.make_client_capabilities())

      vim.lsp.config.markdown_oxide = {
        capabilities = vim.tbl_deep_extend(
          'force',
          capabilities,
          {
            workspace = {
              didChangeWatchedFiles = {
                dynamicRegistration = true,
              },
            },
          }
        ),
      }
      vim.lsp.enable("markdown_oxide")

the lsp files coming with nvim-lspconfig seem to be identical for old and new behaviour.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions