https://github.com/thomas-hiron/cmp-twig
nvim-cmp source for twig filters and functions autocompletion
https://github.com/thomas-hiron/cmp-twig
neovim neovim-plugin neovim-plugin-lua nvim-cmp
Last synced: 10 months ago
JSON representation
nvim-cmp source for twig filters and functions autocompletion
- Host: GitHub
- URL: https://github.com/thomas-hiron/cmp-twig
- Owner: thomas-hiron
- License: mit
- Created: 2024-02-25T17:28:48.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-21T09:34:02.000Z (about 2 years ago)
- Last Synced: 2025-02-27T23:21:21.957Z (over 1 year ago)
- Topics: neovim, neovim-plugin, neovim-plugin-lua, nvim-cmp
- Language: Lua
- Homepage:
- Size: 40 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cmp-twig
### ⚠️ This repo has been moved ⚠️
This code has been merged to https://github.com/thomas-hiron/cmp-symfony.
---
[nvim-cmp](https://github.com/hrsh7th/nvim-cmp) source for twig.
This plugin autocompletes twig filters and functions located in
`src` directory.
The native filters and functions are also available.
Filters:

Functions:

Filters and functions are refreshed every 30 seconds.
## Prerequisites
- [ripgrep](https://github.com/BurntSushi/ripgrep) to search for
filters and functions
## Setup
```lua
require('cmp').setup({
sources = {
{ name = 'twig' },
},
})
```
## Triggers
The plugin is activated for `twig` filetype.
There are three trigger characters:
- pipe triggers filters completion
- space and open parenthesis trigger functions completion
## Configuration
There is no configuration at the moment.
## Todo
- Configure filetypes
- Configure filters and functions location