Skip to content

Use telescope instead of netrw when opening directories #1348

@sylvorg

Description

@sylvorg

Hello!

I can't seem to figure out how to use telescope to open directories when passing a directory to neovim from the command line. This is my current config for telescope:

{ config, ... }: {
  programs.nvf.settings.vim.telescope = {
    enable = true;
    extensions = [
      {
        name = "devicons";
        packages = [ nvim-web-devicons ];
      }
      {
        name = "fzf";
        packages = [ telescope-fzf-native-nvim ];
        setup.fzf.fuzzy = true;
      }
      {
        name = "file-browser";
        packages = [ telescope-file-browser-nvim ];
        setup.file_browser.hijack_netrw = true;
      }
      {
        name = "persisted";
        packages = [ persisted-nvim ];
        setup.layout_config = {
          width = 0.55;
          height = 0.55;
        };
      }
    ];
  };
}

Thank you kindly for the help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions