Equilibris / nx.nvim

A simple tool providing the same features as the NX console does for vs-code
The Unlicense
94 stars 16 forks source link

No actions in the list #25

Open Sewb21 opened 9 months ago

Sewb21 commented 9 months ago

Hey there,

I have tried installing this plugin in my neovim config using lazy but when I run the telescope nx action the list is empty so I cannot run anything.

I have looked in the logs and I seem to be able to see the build targets, I am just unsure why they aren't showing in the list.

I have followed the readme and below is my config

config/plugins.lua

  {
    "Equilibris/nx.nvim",

    dependencies = {
      "nvim-telescope/telescope.nvim",
    },

    config = function()
      require("nx").setup({})
    end,    -- Plugin will load when you use these keys

    keys = {
      { "<leader>nx", "<cmd>Telescope nx actions<CR>", desc = "nx actions"}
    },
  },

plugins/nx.lua

require('nx.nvim').setup{
    -- Base command to run all other nx commands, some other values may be:
    -- - `npm nx`
    -- - `yarn nx`
    -- - `pnpm nx`
    nx_cmd_root = 'npx nx',

    -- Command running capabilities,
    -- see nx.m.command-runners for more details
    command_runner = require('nx.command-runners').terminal_cmd(),
    -- Form rendering capabilities,
    -- see nx.m.form-renderers for more detials
    form_renderer = require('nx.form-renderers').telescope(),

    -- Whether or not to load nx configuration,
    -- see nx.loading-and-reloading for more details
    read_init = true,
}

NX Version

nx --version

Nx Version:
- Local: v17.2.7
- Global: Not found

Any help is appreciated, I am new to neovim so it might be user error but I have spent a good amount of time trying to wrap my head around it and I am unsure whats going on. 😁

Screenshot 2024-01-17 at 19 39 16

Sewb21 commented 9 months ago

Addresses in this PR https://github.com/Equilibris/nx.nvim/pull/26

TimShilov commented 2 weeks ago

I experience the same issue. However, I have noticed that for me the list is populated just fine on the second execution so as a workaround I developed a habit to run <leader>nx, then Escape, then <leader>nx again. It's not nice but it works. 🤷‍♂️