https://github.com/isak102/ghostty.nvim
Automatically validate your Ghostty configuration on save
https://github.com/isak102/ghostty.nvim
nvim nvim-plugin terminal
Last synced: 8 days ago
JSON representation
Automatically validate your Ghostty configuration on save
- Host: GitHub
- URL: https://github.com/isak102/ghostty.nvim
- Owner: isak102
- Created: 2024-12-30T17:50:07.000Z (4 months ago)
- Default Branch: master
- Last Pushed: 2025-01-04T19:10:21.000Z (4 months ago)
- Last Synced: 2025-03-25T14:11:09.493Z (26 days ago)
- Topics: nvim, nvim-plugin, terminal
- Language: Lua
- Homepage:
- Size: 3.91 KB
- Stars: 37
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-neovim-sorted - isak102/ghostty.nvim
- awesome-neovim-sorted - isak102/ghostty.nvim
README
# 👻 `ghostty.nvim`
Automatically validate your Ghostty configuration on save
## Demo
https://github.com/user-attachments/assets/16848178-7366-4b81-97e1-82d716747025
## Dependencies
- [Ghostty](https://github.com/ghostty-org/ghostty)
## Installation
### Using [lazy.nvim](https://github.com/folke/lazy.nvim)
```lua
{
"isak102/ghostty.nvim",
config = function()
require("ghostty").setup()
end,
}
```## Configuration
The following is the default configuration, and can be passed into the `setup()` function:
```lua
{
-- 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](https://github.com/mitchellh) and all contributors for building this great terminal!