mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 02:38:46 +00:00
feat(picker): syntax highlighting for command and search history
This commit is contained in:
parent
f7d07bcbc2
commit
efb6d1f8b8
3 changed files with 15 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue