No description
Find a file
Barrett Ruth 0b137d64f6
Some checks are pending
quality / changes (push) Waiting to run
quality / Lua Format Check (push) Blocked by required conditions
quality / Lua Lint Check (push) Blocked by required conditions
quality / Lua Type Check (push) Blocked by required conditions
quality / Markdown Format Check (push) Blocked by required conditions
test / Test (Neovim nightly) (push) Waiting to run
test / Test (Neovim stable) (push) Waiting to run
luarocks / quality (push) Waiting to run
luarocks / publish (push) Blocked by required conditions
perf: async enum file read (#10)
* perf: async enum file read

Problem: parse_enums read the bash-completion file with blocking
io.open/fd:read on the main thread, stalling the event loop.

Solution: read the file via vim.uv.fs_open/fstat/read with callbacks,
running in parallel with the ghostty config system call using the
same remaining-counter pattern as the other blink-cmp plugins.

* fix: lint warning and test mocks for async file read

Problem: selene flagged unused err3 variable, and test mock_enums
still mocked io.open instead of the new vim.uv.fs_* calls.

Solution: rename err3 to _, replace io.open mock with synchronous
vim.uv.fs_open/fs_fstat/fs_read/fs_close mocks using a sentinel fd.
2026-02-22 23:21:54 -05:00
.github feat: initial release 2026-02-20 16:55:55 -05:00
lua perf: async enum file read (#10) 2026-02-22 23:21:54 -05:00
spec perf: async enum file read (#10) 2026-02-22 23:21:54 -05:00
.busted feat: initial release 2026-02-20 16:55:55 -05:00
.editorconfig feat: initial release 2026-02-20 16:55:55 -05:00
.gitignore fix: dont commit envrc 2026-02-20 17:22:29 -05:00
.luarc.json feat: initial release 2026-02-20 16:55:55 -05:00
.pre-commit-config.yaml feat: initial release 2026-02-20 16:55:55 -05:00
.prettierignore feat: initial release 2026-02-20 16:55:55 -05:00
.prettierrc feat: initial release 2026-02-20 16:55:55 -05:00
blink-cmp-ghostty-scm-1.rockspec feat: initial release 2026-02-20 16:55:55 -05:00
flake.lock feat: initial release 2026-02-20 16:55:55 -05:00
flake.nix feat: initial release 2026-02-20 16:55:55 -05:00
LICENSE feat: initial release 2026-02-20 16:55:55 -05:00
README.md fix(ci): format 2026-02-20 18:38:54 -05:00
selene.toml feat: initial release 2026-02-20 16:55:55 -05:00
stylua.toml feat: initial release 2026-02-20 16:55:55 -05:00
vim.toml feat: initial release 2026-02-20 16:55:55 -05:00

blink-cmp-ghostty

Ghostty configuration completion source for blink.cmp.

blink-cmp-ghostty preview

Features

  • Completes Ghostty configuration keys with documentation
  • Provides enum values for configuration options
  • Documentation extracted from ghostty +show-config --docs

Requirements

Installation

Install via luarocks:

luarocks install blink-cmp-ghostty

Or with lazy.nvim:

{
  'saghen/blink.cmp',
  dependencies = {
    'barrettruth/blink-cmp-ghostty',
  },
  opts = {
    sources = {
      default = { 'ghostty' },
      providers = {
        ghostty = {
          name = 'Ghostty',
          module = 'blink-cmp-ghostty',
        },
      },
    },
  },
}