Skip to content

James-Kni/fzf-nx.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

fzf-nx.nvim

Plugin for using NX within Neovim using fzf-lua.

Installation

Install with lazy:

{
  "James-Kni/fzf-nx.nvim",
  dependencies = { "ibhagwan/fzf-lua" },
  opts = {},
  -- Example keymaps
  keys = {
    {
      "<leader>ns",
      function()
        require("fzf-nx").nx_run("serve")
      end,
      desc = "Serve project",
    },
    {
      "<leader>nl",
      function()
        require("fzf-nx").nx_run("lint")
      end,
      desc = "Lint project",
    },
    {
      "<leader>nR",
      function()
        require("fzf-nx.utils").nx_reset()
      end,
      desc = "Reset NX",
    }
  }
}

Default config

{
  -- Command used for running NX commands
  nx_cmd            = "nx",
  -- Open browser on project serve
  open_on_serve     = false,
  -- Command used for getting a list of NX projects
  list_projects_cmd = function(target)
    return "nx show projects --with-target " .. target
  end,
  -- Run using an external terminal. E.g. "kitty sh -c '{}'"
  -- The '{}' will be replaced with the command to execute
  -- When not set, the internal terminal will be used.
  external_term_cmd = nil
}

Options

  • vim.g.nx_env can be used to set environment variables to use with NX commands.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Languages