feat: detect ghostty config files by canonical path #7

Merged
barrettruth merged 3 commits from feat/filetypes into main 2026-02-21 01:56:27 +00:00
barrettruth commented 2026-02-21 01:19:14 +00:00

Problem

enabled() only checked for the ghostty filetype, but many users have ghostty config files detected as config or with no filetype set, so they got no completions.

Closes #6

Solution

Check canonical ghostty config directories ($XDG_CONFIG_HOME/ghostty, ~/.config/ghostty, /etc/ghostty) when the filetype is config or empty, resolving symlinks to handle indirect paths.

## Problem `enabled()` only checked for the `ghostty` filetype, but many users have ghostty config files detected as `config` or with no filetype set, so they got no completions. Closes #6 ## Solution Check canonical ghostty config directories (`$XDG_CONFIG_HOME/ghostty`, `~/.config/ghostty`, `/etc/ghostty`) when the filetype is `config` or empty, resolving symlinks to handle indirect paths.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
barrettruth/blink-cmp-ghostty!7
No description provided.