Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No actions in the list #25

Open
Sewb21 opened this issue Jan 17, 2024 · 2 comments
Open

No actions in the list #25

Sewb21 opened this issue Jan 17, 2024 · 2 comments

Comments

@Sewb21
Copy link

Sewb21 commented Jan 17, 2024

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
Copy link
Author

Sewb21 commented Jan 20, 2024

Addresses in this PR #26

@TimShilov
Copy link

TimShilov commented Oct 19, 2024

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. 🤷‍♂️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants