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

feat(telescope): add telescope sorter #190

Merged
merged 1 commit into from
Aug 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions lua/telescope/_extensions/kulala.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ local actions = require("telescope.actions")
local finders = require("telescope.finders")
local pickers = require("telescope.pickers")
local previewers = require("telescope.previewers")
local config = require("telescope.config").values

local function kulala_search(_)
-- a list of all the .http/.rest files in the current directory
Expand All @@ -38,6 +39,7 @@ local function kulala_search(_)
previewer = previewers.vim_buffer_cat.new({
title = "Preview",
}),
sorter = config.generic_sorter({}),
})
:find()
end
Expand Down Expand Up @@ -83,6 +85,7 @@ local function kulala_env_select(_)
vim.api.nvim_buf_set_lines(self.state.bufnr, 0, -1, false, lines)
end,
}),
sorter = config.generic_sorter({}),
})
:find()
end
Expand Down