Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: respect telescope's path_display #196

Merged
merged 1 commit into from
May 1, 2024

Conversation

delphinus
Copy link
Contributor

fix #47

Now path_display can be specified by these priorities.

  1. Option specified with the command or Lua code.
    - :Telescope frecency path_display={"absolute"}.
    - or :lua require("telescope").extensions.frecency.frecency { path_display = { "absolute" } }.

  2. opts.extensions.frecency.path_display in setup.

  3. opts.defaults.path_display in setup.

    require("telescope").setup {
      defaults = {
        -- This has the 3rd precedence.
        path_display = { "absolute" },
      },
      extensions = {
        frecency = {
          -- This has the 2nd precedence.
          path_display = { "shorten" },
        },
      },
    }

@delphinus delphinus merged commit f8a8969 into master May 1, 2024
16 checks passed
@delphinus delphinus deleted the fix/deal-with-path_display-opts branch May 1, 2024 08:05
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.

Telescope path_display = { "truncate" } default option is not applied
1 participant