isak102/ghostty.nvim

github github
terminal-integration
stars 26
issues 0
subscribers 1
forks 0
CREATED

2024-12-30

UPDATED

13 days ago


👻 ghostty.nvim

Automatically validate your Ghostty configuration on save

Demo

https://github.com/user-attachments/assets/16848178-7366-4b81-97e1-82d716747025

Dependencies

Installation

Using lazy.nvim

{
    "isak102/ghostty.nvim",
    config = function()
        require("ghostty").setup()
    end,
}

Configuration

The following is the default configuration, and can be passed into the setup() function:

{
    -- The autocmd pattern matched against the filename of the buffer. If this pattern
    -- matches, ghostty.nvim will run on save in that buffer. This pattern is passed to
    -- nvim_create_autocmd, check `:h autocmd-pattern` for more information. Can be
    -- either a string or a list of strings
    file_pattern = "*/ghostty/config",
    -- The ghostty executable to run.
    ghostty_cmd = "ghostty",
    -- The timeout in milliseconds for the check command.
    -- If the command takes longer than this it will be killed.
    check_timeout = 1000,
}

Roadmap

  • Add option to automatically reload ghostty configuration after it has been validated
  • Add blink.cmp completion source for config keys (if possible)

Disclaimer

This plugin is not affiliated with the Ghostty project in any way. Thanks @mitchellh and all contributors for building this great terminal!