• 0 Posts
  • 12 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.


  • Like I said, I haven’t used mini.comment, but having both gc and gcc mapping may cause problems. If I remember correctly, in these situations, neovim waits after receiving gc command to figure out if you are trying to execute comment last or gcc with comment line. Depending on timelen (or timeout, forgot the exact name) setting the command you actually execute will defer based on the key pressed/not pressed after gc.

    Also, if gc is mapped to comment last, and there was no last comment action performed, it might do nothing (maybe check the readme to be sure). So maybe try changing the mapping to see if that helps.







  • 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.