Skip to content

nvim-cmp source for twig filters and functions autocompletion

License

Notifications You must be signed in to change notification settings

thomas-hiron/cmp-twig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cmp-twig

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:
Autocomplete

Functions:
Autocomplete

Filters and functions are refreshed every 30 seconds.

Prerequisites

  • ripgrep to search for filters and functions

Setup

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

About

nvim-cmp source for twig filters and functions autocompletion

Topics

Resources

License

Stars

Watchers

Forks

Languages