vim 2023-07-16

How can I set semantic-tokens? (or any of the https://clojure-lsp.io/settings/) from nvim? The configuration I’m currently iterating on looks like this:

local lsp_opts = {
    on_attach = on_attach,
    flags = {
      debounce_text_changes = 150,
    },
    settings = {
      clojure_lsp = {
        ['semantic-tokens?'] = false
      }
    }
}

local nvim_lsp = require('lspconfig')
nvim_lsp.clojure_lsp.setup(lsp_opts)

I use init_options to change settings for another lsp server, maybe it will work here

local lsp_opts = {
    init_options = {
      ['semantic-tokens?'] = false
    }
}
local nvim_lsp = require('lspconfig')
nvim_lsp.clojure_lsp.setup(lsp_opts)
don't know if there is a difference between init_options and settings.clojure_lsp

šŸ‘ 1

Yep, this worked. Thanks!

šŸŽ‰ 1