• 1 Post
  • 7 Comments
Joined 1 year ago
cake
Cake day: June 23rd, 2023

help-circle
  • LSP maybe portable with it’s config if the LSP themselves are independent. Checkout Mason which seems to make it easier to bundle neovim and “portable” LSP. There was another project similar to Mason with some more features, but I forgot it’s name. So search around to see if that fits your requirements.






  • Sorry, I missed the previous message. Glad you got it working with the help of @rewire@programming.dev.

    Regarding the massive list, yeah that is expected. If you haven’t got fd or rg installed in you system, telescope falls back to regular find. Find doesn’t have any sort of builtin ignore list, so it just lists all the files. If you are using the builtin.find_files normally, I think it executes (at least something close to)

    find -not -path "*/.*" -type f
    

    With the hidden=true, it does something along the lines of

    find . -type f
    

    Both of these commands are executed from the cwd (normally the directory you started nvim in). If you want it only show to a certain depth, you can use the telescope’s setup to change the default find_command

    telescope.setup({
      pickers = {
        find_files = {
          find_command = { "find", "-maxdepth", "3", ".", "-type", "f"},
        },
      },
    }
    

    Modify that to your requirement and then use the keymap to call builtin.find_files() and it should work.