diff --git a/docs/community/channels-unix.md b/docs/community/channels-unix.md index bf690ee6..29e81881 100644 --- a/docs/community/channels-unix.md +++ b/docs/community/channels-unix.md @@ -2979,6 +2979,44 @@ frecency = false ``` +--- + +### *nvim-config-files* + +Search through Neovim configuration files + +**Requirements:** `fd`, `nvim` + +**Code:** *nvim-config-files.toml* + +```toml +[metadata] +name = "nvim-config-files" +description = "Search through Neovim configuration files" +requirements = [ "fd", "nvim",] + +[source] +command = [ "fd . ~/.config/nvim --type f",] +display = "{regex_extract:.*\\.config/nvim/(.*):1}" + +[preview] +command = "bat -n --color=always '{}'" + +[keybindings] +enter = "actions:edit" + +[preview.env] +BAT_THEME = "ansi" + +[actions.edit] +description = "Opens the selected entries with the default editor (falls back to vim)" +command = "${EDITOR:-vim} '{}'" +shell = "bash" +mode = "execute" + +``` + + --- ### *opencode-sessions*