vim

athomasoriginal 2023-07-16T17:51:39.655289Z

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)

nbardiuk 2023-07-16T18:03:07.845999Z

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
athomasoriginal 2023-07-16T18:20:00.189429Z

Yep, this worked. Thanks!

šŸŽ‰ 1