feat(picker): syntax highlighting for command and search history

This commit is contained in:
Folke Lemaitre 2025-01-21 22:21:16 +01:00
parent f7d07bcbc2
commit efb6d1f8b8
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
3 changed files with 15 additions and 7 deletions

View file

@ -71,6 +71,7 @@ M.command_history = {
preset = "vscode",
},
confirm = "cmd",
formatters = { text = { ft = "vim" } },
}
-- Neovim commands
@ -549,10 +550,9 @@ M.search_history = {
name = "search",
format = "text",
preview = "none",
layout = {
preset = "vscode",
},
layout = { preset = "vscode" },
confirm = "search",
formatters = { text = { ft = "regex" } },
}
---@class snacks.picker.smart.Config: snacks.picker.Config