folke / neoconf.nvim

💼 Neovim plugin to manage global and project-local settings
Apache License 2.0
715 stars 29 forks source link

keys with square braces parses incorrectly #15

Closed sachnr closed 1 year ago

sachnr commented 1 year ago

json

{
  "lspconfig": {
    "lua_ls": {
      "Lua": {
        "workspace": {
          "library": {
            "[vim.fn.expand('$VIMRUNTIME/lua')]": true,
            "[vim.fn.expand('$VIMRUNTIME/lua/vim/lsp')]": true
          }
        }
      }
    }
  }

lua

{
  lspconfig = {
    lua_ls = {
      Lua = {
        workspace = {
          library = {
            ["[vim.fn.expand('$VIMRUNTIME/lua')]"] = true,
            ["[vim.fn.expand('$VIMRUNTIME/lua/vim/lsp')]"] = true
          }
        }
      }
    }
  }
}

which dosent work

folke commented 1 year ago

That's not supposed to work by design. The json config files should only contain static content