summaryrefslogtreecommitdiff
path: root/lua/nvim-treesitter/configs.lua
AgeCommit message (Collapse)Author
2020-09-25chore(modules): remove refactor moduleSteven Sojka
2020-09-11Allow to call setup on already loaded modules.Santos Gallegos
2020-09-10Improve startuptimeSantos Gallegos
- Don't load everything at startup - Don't define an autocomand for each module and for each supported lang (this creates nxm autocomand!)
2020-09-08Import treesitter.install only when neededSantos Gallegos
2020-09-06Text objects: check for query files firstSantos Gallegos
The first function is faster and more common.
2020-09-05Completion: use custom instead of customlistSantos Gallegos
Fixes https://github.com/nvim-treesitter/nvim-treesitter/issues/396
2020-09-05fix ts_available_modules should be using nvim_treesitter#available_moduleskiyan42
2020-09-04Refactor: move completion functions to autoloadSantos Gallegos
2020-08-31Fix(modules): simplify configs.setupStephan Seitz
This prevents a really weird bug were the following function call (after loading the activated modules) could activate `highlight_current_scope` ```lua require "nvim-treesitter.configs".setup( { highlight = { enable = false, -- false will disable the whole extension disable = {"html", "lua"} -- list of language that will be disabled }, refactor = { highlight_current_scope = { enable = false, inverse_highlighting = true, disable = {"python", "markdown"} }, highlight_definitions = { enable = true, disable = {"markdown"} }, }, ensure_installed = "all", disable = {"markdown"}, -- list of language that will be disabled } ) ```
2020-08-31Avoid enabling disabled modules (even if they were disabled immediately)Stephan Seitz
This might be safer for the case that attach/detach are not inverse to each other. Disabled modules shouldn't ever be activated.
2020-08-31feat(refactor.navigation): add navigation.goto_{next,previous}_usageStephan Seitz
2020-08-22fix(modules): do not reattach if already attachedSteven Sojka
2020-08-17chore(textobjects): split up into submodulesStephan Seitz
2020-08-17Textobjects: provide mappings for all swap/goto functionsStephan Seitz
2020-08-17Textobjects: add swap featureStephan Seitz
2020-08-11pass full module path in recurse accumulator to enable/disable sub modulesLaxman Sooriyathas
2020-08-10configs: actually enable and disable on setupThomas Vigouroux
2020-07-27configs: attach on unknown parsers tooThomas Vigouroux
2020-07-16Refactor: Add parsers.get_buf_langStephan Seitz
2020-07-15fix(configs): deep merge table configsSteven Sojka
2020-07-15fix(configs): simplify module setup processThomas Vigouroux
Abuse a bit of tbl_extend and tbl_deep_extend. We might want to continue this effort, and simplify this part of the plugin. Fixes #178
2020-07-14Add textobjects moduleStephan Seitz
2020-07-13Add module refactor.highlight_current_scopeStephan Seitz
2020-07-13Fix #167: Add custom_captures config key to set highlights for custom queriesStephan Seitz
2020-07-07feat(configs): dynamic module defintionsSteven Sojka
2020-07-05Make luacheck happyStephan Seitz
2020-06-30update installer with sync and some fixeskiyan42
- add sync method for installing using `system` - remove `descriptions` in command configs - use install(lang) in ensure_installed and make it compatible
2020-06-30refactor(refactor): use higher local apis and some cleanupSteven Sojka
2020-06-30feat(refactor): add definition navigation moduleSteven Sojka
2020-06-30feat(refactor): add smart rename moduleSteven Sojka
2020-06-30feat(refactor): highlight usages moduleSteven Sojka
2020-06-29add used_by key to parserskiyan42
Enables the use of multiple filetypes for one parser.
2020-06-22rename and finish ft->lang migrationkiyan42
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-06-19fix: declare parse names as their appropriate filetype and change clone urlkiyan42
2020-06-19refacto: remove buf_statekiyan42
- remove buf_state and related code - add get_node_at_cursor() - better incremental selection (code is localized)
2020-06-14Add tree-sitter-regexStephan Seitz
This might be interesting for injected highlighting
2020-05-15Expose internal api.kiyan42
- add `exposed_state` to expose 'current_node' and 'cursor_pos' for a current buffer to the user. - add `get_buf_state` and `get_node_api` for users. - add documentation about api functions. - remove `node_movement` module which should be done in user side.
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-05-03Add 'nvim-treesitter/node-movement'Stephan Seitz
2020-05-02modules: move textobj to incremental_selectionThomas Vigouroux
As suggested in #37, rename the textobj module to incremental_selection. Also adds a utility function to get the config of a module.
2020-05-01Merge pull request #36 from theHamsta/community-parsersKiyan Yazdani
Add some more community parsers
2020-05-01Add some more community parsersStephan Seitz
The haskell one really takes long to compile
2020-05-01update docs for ensure installed, move modules config in config.moduleskiyan42
2020-05-01Add `ensure_installed` option to configStephan Seitz
2020-04-25refactor(textobj): use configs and don't use VimLThomas Vigouroux
2020-04-25fix: config is enabled also checks parser existencekiyan42
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`