Commit graph

18 commits

Author SHA1 Message Date
Amaan Qureshi
853b1ab39a style: fill in missing code docs wherever applicable 2023-02-24 01:08:23 -08:00
Stephan Seitz
4e371452e0 chore: show in TSInstallInfo when parser is still loaded 2022-08-03 09:03:54 +02:00
Christian Clason
07eb437bb1 refactor!: update to Neovim 0.7 APIs
* set highlight groups via nvim_set_hl
* define autocommands via nvim_create_autocmd
* port plugin/nvim-treesitter.vim to Lua
* port healthcheck to Lua
2022-04-30 16:08:01 +02:00
patrick96
e3dabec462 Add condition function to module config
The function is called with the language and bufnr, if it returns false,
the module is disabled for that buffer.

This gives the user more fine-grained control over whether a module is
started.
2021-11-12 19:55:04 +01:00
Santos Gallegos
be8f656087
Use stylua for autoformat code (#1480) 2021-07-04 21:12:17 +00:00
Stephan Seitz
ddc0f1b606 fix: Sort parsers for :TSInstallInfo 2021-04-21 23:12:17 +02:00
Marco Hinz
fc5e37fe48 TSModuleInfo: make new buffer work with given argument 2021-04-06 21:32:46 +02:00
Marco Hinz
c64c8a4017 TSModuleInfo: use custom buffer 2021-04-06 21:32:46 +02:00
Marco Hinz
8840641acc TSModuleInfo: cleaner indentation 2021-04-05 15:41:00 +02:00
Marco Hinz
b8f17f89fb TSModuleInfo: sort mods and languages 2021-04-05 15:41:00 +02:00
Santos Gallegos
7a1f6b1586 Completion: use custom instead of customlist
Fixes https://github.com/nvim-treesitter/nvim-treesitter/issues/396
2020-09-05 19:29:46 +02:00
Santos Gallegos
1ba18329c7 Refactor: move completion functions to autoload 2020-09-04 21:20:30 +02:00
Stephan Seitz
a872762d82 Add TSUpdate command to update parsers 2020-08-02 22:58:08 +02:00
kiyan42
ce119de2e3 update installer with sync and some fixes
- add sync method for installing using `system`
- remove `descriptions` in command configs
- use install(lang) in ensure_installed and make it compatible
2020-06-30 08:32:49 +02:00
Steven Sojka
058e8d2296 feat(refactor): highlight usages module 2020-06-30 08:21:01 +02:00
kiyan42
def8c20dd7 rename and finish ft->lang migration 2020-06-22 13:22:30 +02:00
kiyan42
df17a48c85 refactor: parser list and lang->ft/ft->lang
- move parser list in `parsers.lua`
- most `ft` variable where changed to `lang`, `ft` is only used on
  autocmd binding, and lang is used for everything else. Functions have
  been defined to make the switch between `ft` and `lang`
2020-06-20 12:31:52 +02:00
kiyan42
62786ec7c6 feat/refacto: improve configurations
- You should now get the configs through functions
- Configs for languages are now inside a local object called parsers
- You can get the parser installation configurations with `get_parser_configs`
- A new object has been initialized inside configs to specify module config (called config).
- Provide functions to enable/disable a module on one buffer
- Provide functions to enable/disable a module on all buffers, and if filetype is
  specified, for specific filetype
- Provide function to determine if module is activated for a specified filetype
2020-04-24 22:15:21 +02:00