Thanks to visit codestin.com
Credit goes to github.com

Skip to content

bug: unable to override individual values of extendedClientCapabilities table #396

@drewma2k

Description

@drewma2k

Did you check docs and existing issues?

  • I have read all the plugin docs
  • I have searched the existing issues
  • I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)

0.11.2

Operating system/version

MacOS 15.5

Describe the bug

User is unable to override the default configuration for init_options because tbl_extend is used instead of tbl_deep_extend here:

org_setup(vim.tbl_extend('force', default_config, user_config))

If deep extend was used, user could provide a subset of extendedCapabilities to be overridden. As is, the entire table is replaced with the user config, meaning the user has to redefine all defaults to change one value, for example

Steps To Reproduce

  1. provide
require('lspconfig').jdtls.setup({
  init_options = {
    extendedClientCababilities = {
      ...
    }
  }
})
  1. The entire default table will be overridden

Expected Behavior

default extendedClientCapabilities table is merged with user configured table

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions