Skip to content

Deprecated function in Plugin Reference Manual #1247

@ianebeckett

Description

@ianebeckett

The neovim configuration docs recommend vim.lsp.with(), deprecated in neovim 0.11.

quick-lint-js is fast. To feel the speed, you might want to lint while in
insert mode. Edit the "handlers" key in the setup function call to make
JavaScript linting as fast as possible: >

require('lspconfig/quick_lint_js').setup {
  handlers = {
    ['textDocument/publishDiagnostics'] = vim.lsp.with(
      vim.lsp.diagnostic.on_publish_diagnostics, {
        update_in_insert = true
      }
    )
  }
}

Neovim now recommends:

vim.lsp.with() Pass configuration to equivalent functions in vim.lsp.buf.*.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions