summaryrefslogtreecommitdiff
path: root/lua/nvim-treesitter/health.lua
AgeCommit message (Collapse)Author
2022-08-03chore: trim space in check-healthStephan Seitz
Fixes #3248
2022-06-02fix(health): update to upstream changesChristian Clason
The `health` module was moved to `vim.health` in https://github.com/neovim/neovim/pull/18720
2022-04-30refactor!: update to Neovim 0.7 APIsChristian Clason
* 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-16chore: bump minimal Nvim version to 0.7 and checkChristian Clason
Checks minimal version in `:checkhealth nvim-treesitter` Also recommend nightlies
2022-01-29health: check which file caused an errorStephan Seitz
2022-01-22feat: specify abi version for generate on newer ts cliChristian Clason
Check tree-sitter CLI version and if > 0.20.3 and generating a parser from grammar, use `--abi=vim.treesitter.language_version`. Besides being able to opt-in to newer ABI benefits, this is a necessary workaround for an upstream bug with 0.20.3, where `parser.h` is not generated if the (optional) `--abi` flag is omitted.
2021-10-11feat(healthcheck): support native lua healthchecks, and fixesJavier López
After neovim/neovim#15259 lua healthchecks are called directly and are prefered over neovim autoload ones. The discover of Lua ones requires the function to be named "check()". Also the mentioned PR changed the design of healthchecks to not use output capturing, therefore avoid printing and instead concatenate and call the health functions.
2021-10-03chore: print compiler version in healthcheckStephan Seitz
2021-07-05Checkhealth: include injectionsSantos Gallegos
Fix https://github.com/nvim-treesitter/nvim-treesitter/issues/1459
2021-07-04Use stylua for autoformat code (#1480)Santos Gallegos
2021-06-04Fix 1359: nil check for version in health-checkStephan Seitz
2021-04-07fix(health): let CC check behave like in real installationStephan Seitz
Fixes #1146
2021-04-02healthcheck: raise error when ABI is too oldStephan Seitz
2021-04-01Check for node-js on :TSInstallFromGrammarStephan Seitz
Ref: https://github.com/nvim-treesitter/nvim-treesitter/issues/1121#issuecomment-811755767
2021-03-31Add tree-sitter ABI version to health checkStephan Seitz
2021-03-23fix(checkhealth): display error messages of failed queriesStephan Seitz
2021-03-22use health#report_warn for treesitter version checkbitcoder
2021-03-18fix formatting issues caused by asterisknbCloud91
Replace the asterisk used for "Multiple parsers found" by a plus sign. It prevents the asterisk from messing up the formatting of the rest of the `:checkhealth` buffer.
2021-03-17Use newline instead of spaceBonaBeavis
2021-03-17Add newline before legendBonaBeavis
Without this newline there is no syntax highlighting after the legend.
2021-03-09update tips in healthcheckbitcoder
2021-03-09add treesitter version in checkhealthbitcoder
2021-02-27chore: remove useless code and indent fileskiyan
2021-02-22health: add legend for x icon in query healthkiyan
2021-02-22chore: rewrite healthcheck for compact outputkiyan
2020-09-20fix(checkhealth): use pcall to check for syntax errors in query filesStephan Seitz
2020-08-27fix(health): only check installed parsersThomas Vigouroux
This is to avoid awfully long checkhealths. And not installed parsers can be infered from the fact that they are not listed.
2020-07-15checkhealth for all query groupsStephan Seitz
2020-07-05Make luacheck happyStephan Seitz
2020-06-20refactor: parser list and lang->ft/ft->langkiyan42
- 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-05-22Remove postspaces and avoid one globalStephan Seitz
2020-05-12refacto/feat: better handling of parser updateskiyan42
features: - node_movement is moving between scopes. - add selection initialization from normal mode - add a decremental selection improvements: - attach to buffer to run tree parsing on change - run state update on CursorMoved - the buffer state is: ``` { cursor_pos = { row=row, col=col }, current_node = node_under_cursor, selection = { range = nil, -- activates when starting a selection nodes = {} -- filling up when starting an incremental selection }, parser = parser, -- parser for current buffer } ``` - refacto all the modules reliant on parsing the tree, update the current nodes, get the current nodes... fixes: - fix has_parser to look for .so libraries - fix should select the whole file when selection root in selection
2020-04-26health(refactor): move checks inside health.luaThomas Vigouroux
2020-04-26health: add highlight to healthchecksThomas Vigouroux
2020-04-24feat/refacto: improve configurationskiyan42
- 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-21feat/refacto: add configs.lua, setup installkiyan42
- configs.lua holds the `repositories` data - install health moved to health.lua - plugins loads _root.setup() on startup - install and list command are available through vim > use them with `:TSInstall lang` and `:TSInstallInfo`
2020-04-21feat: add checkhealthkiyan42