Skip to content

Conversation

@AgatZan
Copy link
Contributor

@AgatZan AgatZan commented Oct 2, 2024

No description provided.

@cvigilv
Copy link
Owner

cvigilv commented Oct 2, 2024

How do you use this?

@cvigilv
Copy link
Owner

cvigilv commented Oct 2, 2024

Also, is this ready? if not, please convert to draft PR

@AgatZan
Copy link
Contributor Author

AgatZan commented Oct 2, 2024

How do you use this?

It's another picker alternative to vim.ui.select. Since there is no way to select a picker within this branch, I just took it out as a function. I introduce way to choose at #54

Also, is this ready? if not, please convert to draft PR

I test it and it work. At least for me

@cvigilv
Copy link
Owner

cvigilv commented Oct 2, 2024

I like this idea, since I wanted to implement this. As is, its not functional since users cant select which picker to use on the config. #54 doesn't work since it recursively runs an autocommand on some cases, failing.

This overlaps a lot with #54 but is more "barebones". Let me see if I can add some stuff to make it more friendly for the end users and will come back.

Thanks for the work, been really busy with other things and haven't had time to check your previous work. I'll try to get back to this ASAP

@cvigilv
Copy link
Owner

cvigilv commented Oct 2, 2024

@AgatZan are you using your own neovim config or a distro? I'm trying a minial configuration with Lazy that installs esqueleto and telescope (as a dependency):

local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
  vim.fn.system({
    "git",
    "clone",
    "--filter=blob:none",
    "https://github.com/folke/lazy.nvim.git",
    "--branch=stable", -- latest stable release
    lazypath,
  })
end
vim.opt.rtp:prepend(lazypath)

-- Load packages
require("lazy").setup({
  {
    -- dir = os.getenv("GITDIR") .. "/esqueleto.nvim",
    "AgatZan/esqueleto.nvim",
    dependencies = {
      { "nvim-telescope/telescope.nvim", dependencies = "nvim-lua/plenary.nvim", setup = true },
    },
    config = function()
      require("esqueleto").setup({
        -- selector = require("esqueleto.selectors.builtin"),
        autouse = false,
        directories = { vim.fn.stdpath("config") .. "/skeletons/" },
      })
    end,
  },
})

This doesnt work either in my machine. Could you test it in your machine?

@AgatZan
Copy link
Contributor Author

AgatZan commented Oct 2, 2024

With

local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
  vim.fn.system({
    "git",
    "clone",
    "--filter=blob:none",
    "https://github.com/folke/lazy.nvim.git",
    "--branch=stable", -- latest stable release
    lazypath,
  })
end
vim.opt.rtp:prepend(lazypath)

-- Load packages
require("lazy").setup({
  {
    -- dir = os.getenv("GITDIR") .. "/esqueleto.nvim",
    "AgatZan/esqueleto.nvim",
    dependencies = {
      { "nvim-telescope/telescope.nvim", dependencies = "nvim-lua/plenary.nvim", setup = true },
    },
    config = function()
      require("esqueleto").setup({
        -- selector = require("esqueleto.selectors.builtin"),
        autouse = false,
        directories = { vim.fn.stdpath("config") .. "/skeletons/" },
      })
    end,
  },
})

It doesn't work. If it is more correct, then it is a mistake to fulfill file

neovide_viRP3wdsvJ

@cvigilv
Copy link
Owner

cvigilv commented Oct 2, 2024

There is something interacting in your config with the plugin that enables the expected behaviour (no idea what tbh). I'll try implementing this functionality by my side to see if I can replicate what you showed before. For the mean time, could you see if you can make that minimal example work? thanks again- Carlos

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

Successfully merging this pull request may close these issues.

2 participants