https://github.com/huantrinh1802/khal_endar.nvim
Simple interface for Khal in Neovim
https://github.com/huantrinh1802/khal_endar.nvim
khal neovim neovim-plugin neovim-plugin-lua
Last synced: about 1 month ago
JSON representation
Simple interface for Khal in Neovim
- Host: GitHub
- URL: https://github.com/huantrinh1802/khal_endar.nvim
- Owner: huantrinh1802
- License: apache-2.0
- Created: 2024-04-07T07:25:50.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-03T04:07:43.000Z (3 months ago)
- Last Synced: 2025-03-03T05:19:38.729Z (3 months ago)
- Topics: khal, neovim, neovim-plugin, neovim-plugin-lua
- Language: Lua
- Homepage:
- Size: 12.7 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Khal in Neovim
## Description
The plugin allow you to view and interact with calendar events via Khal without ever leaving the comfort of Neovim text
## Screenshots
## Features
- View `khal calendar` and `khal list` with colours supported
- Add relative dates and named dates support
- Interface for `ikhal`## Dependencies
- [khal](https://khal.readthedocs.io/en/latest/) (hard required)
- [nui.nvim](https://github.com/MunifTanjim/nui.nvim)
- For all UIs in the plugin
- [colorizer](https://github.com/chrisbra/Colorizer)
- Provide colours for `khal` ANSI colors output## Work Well With
- [vdirsyncer](https://vdirsyncer.pimutils.org/en/stable/tutorial.html)
## Installation
```lua
{
"huantrinh1802/khal_endar.nvim",
version = "*",
dependencies = { "MunifTanjim/nui.nvim", "chrisbra/Colorizer" },
config = function()
-- Require
require("khal_endar").setup()
-- Optional
vim.api.nvim_set_keymap("n", "ki", "KLInteract", { desc = "[K]hal [I]interact", noremap = true, silent = true })
},
```## Commands
- `:KLInteract`: View and interact with events
- `:KLShow`: equivalent to `khal calendar`
- Accept argurments:
- `nil`: use `2week` as default
- Dates range: `2021-01-01 2021-01-31`
- Period window: `quarter`
- Relative dates: `2week`
- `:KLList`: equivalent to `khal list`
- `:KLRun`: allow you to run `khal [COMMAND]` within neovim## Dates
- The following is applicable to `KLShow` and `KLList`
- Relative dates in the form of `1d[ays]`, `1w[eeks]`, `1m[onths]`, `1y[ears]`
- Period window: `year`, `quarter`, `month`, `week`, `day`## License
This plugin is licensed under the MIT License. See the LICENSE file for more
details.## Issues
If you encounter any issues or have suggestions for improvements, please open
an issue on the GitHub repository.## Contributors
- Ben Trinh
[](https://ko-fi.com/W7W4VVT9J)
Thank you for using the Neovim Lua Plugin! If you find it helpful, please consider
starring the repository.