Skip to content

Automatically validate your Ghostty configuration on save

Notifications You must be signed in to change notification settings

isak102/ghostty.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

👻 ghostty.nvim

Automatically validate your Ghostty configuration on save

Demo

demo.mp4

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!

About

Automatically validate your Ghostty configuration on save

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages