neovim / nvim-lspconfig

Quickstart configs for Nvim LSP
Apache License 2.0
9.98k stars 2.04k forks source link

In config, my own settings for lemminx lsp isn't applied #3210

Closed asknet closed 2 weeks ago

asknet commented 2 weeks ago

Description

Hi, I am attempting to customize the settings for Lemminx LSP, but it doesn't work as expected. When I directly modify the default configuration provided in the plugin repository with my own settings, it functions properly. (I did this just to test the settings works)

Below is my config that's not working:

Appreciate the help! Thanks!

  {
    -- LSP Configuration & Plugins
    'neovim/nvim-lspconfig',
    dependencies = {
      -- Automatically install LSPs to stdpath for neovim
      { 'williamboman/mason.nvim', config = true },
      'williamboman/mason-lspconfig.nvim',

      -- Useful status updates for LSP
      -- NOTE: `opts = {}` is the same as calling `require('fidget').setup({})`
      { 'j-hui/fidget.nvim', tag = 'legacy', opts = {} },

      -- Additional lua configuration, makes nvim stuff amazing!
      'folke/neodev.nvim',
    },
        config = function ()
            require('lspconfig').lemminx.setup{
                settings = {
                    xml = {
                        trace = {
                            server = "verbose"
                        },
                        logs = {
                            client = "true"
                        },
                        fileAssociations = {
                            {
                                systemId = '/xyz/Wrkbox/dotfiles/.config/sfdx/xml/flow.xsd',
                                pattern = '**.flow-meta.xml'
                            }
                        },
                    }
                }
            }

        end
  },
justinmk commented 2 weeks ago

Thanks for your report. The configs in this repo are unsupported and provided only as a starting point. We depend on users (like you) to troubleshoot issues with their specific LSP setups and send improvements.

If you have a usage question, try asking it at:

If you found a bug in the core Nvim vim.lsp module (not part of this repo), the best way to get it fixed is to report to Nvim (not nvim-lspconfig) with: