Commit graph

438 commits

Author SHA1 Message Date
Stephan Seitz
68d2b01572 parsers: add tree-sitter-fish
Addresses #1268
2021-05-07 10:12:31 +02:00
Camden Cheek
7390cf4590 Fix indentation 2021-04-28 17:37:33 +02:00
Camden Cheek
07fc8cc20e Add go-mod tree-sitter config
Adds a tree-sitter config for go.mod files as well as highlighting
queries.
2021-04-28 17:37:33 +02:00
Munif Tanjim
1cc06ac8ba highlight: add 'comment' to hlmap 2021-04-24 16:52:37 +02:00
Jędrzej Boczar
dbb1550aaf tests/indent: move common code out of main lua/ directory 2021-04-23 21:21:38 +02:00
Jędrzej Boczar
63a88c873f move all tests to top-level tests/ directory 2021-04-23 21:21:38 +02:00
Jędrzej Boczar
17ca7725d2 tests/indent: remove indentexpr fix 2021-04-23 21:21:38 +02:00
Jędrzej Boczar
dfcefb3895 tests/indent: improve assertion to print side-by-side diff 2021-04-23 21:21:38 +02:00
Jędrzej Boczar
9f8ff8f6b6 tests/indent: use custom assertion with better suited output 2021-04-23 21:21:38 +02:00
Jędrzej Boczar
70ebdac96a tests/indent: add Lua tests 2021-04-23 21:21:38 +02:00
Jędrzej Boczar
1d7e5144ab tests/indent: improve Rust tests 2021-04-23 21:21:38 +02:00
Jędrzej Boczar
69dda8c09d tests/indent: add normal o tests for Python 2021-04-23 21:21:38 +02:00
Jędrzej Boczar
8bbe33b10d tests/indent: test cases with normal o for C/C++ 2021-04-23 21:21:38 +02:00
Jędrzej Boczar
15f0813b6e tests/indent: add multiple C/C++ tests 2021-04-23 21:21:38 +02:00
Jędrzej Boczar
77c97d0f8b tests/indent: refactor indent test runner and auto-discover language test files 2021-04-23 21:21:38 +02:00
Jędrzej Boczar
f026747aa4 fix lua style checks 2021-04-23 21:21:38 +02:00
Jędrzej Boczar
4454459fb2 tests/indent: add basic examples for C and Rust 2021-04-23 21:21:38 +02:00
Jędrzej Boczar
67f2c7149c Initial sketch of automated indent tests 2021-04-23 21:21:38 +02:00
Grzegorz Rozdzialik
aee9ba401e fix(folds): use the correct rational operator
Fixes a bug introduced in 41ed83ffc7
Closes #1226
2021-04-23 19:27:21 +02:00
Stephan Seitz
3b8d23ca30 parsers: Add Fortran parser
Fixes: https://github.com/nvim-treesitter/nvim-treesitter/issues/1194

Refs:
- https://nvim-treesitter.zulipchat.com/#narrow/stream/252271-general/topic/Meeting.20everyone/near/219174700
2021-04-23 16:03:18 +02:00
Thomas Vigouroux
afd5d11519 feat(incremental_selection): don't require locals 2021-04-22 18:12:03 +02:00
Stephan Seitz
e062f8dade parsers: nix no longer requires_generate_from_grammar
Not required after https://github.com/cstrahan/tree-sitter-nix/pull/11
2021-04-22 17:58:51 +02:00
Thomas Vigouroux
41ed83ffc7 fix(folds): always fold more than one line 2021-04-22 16:30:31 +02:00
Stephan Seitz
ddc0f1b606 fix: Sort parsers for :TSInstallInfo 2021-04-21 23:12:17 +02:00
Stephan Seitz
3f5c3c01e6 Avoid Lua 5.3 function table.unpack 2021-04-19 23:43:53 +02:00
Santos Gallegos
574bd5ae37
YAML: update queries (#1203)
Closes https://github.com/nvim-treesitter/nvim-treesitter-refactor/issues/18
2021-04-18 21:51:03 +00:00
Shatur95
ec9ee2757d Fix GDScript highlighting 2021-04-18 20:40:58 +02:00
Santos Gallegos
2abad14069
Fix TSEditQuery with several files (#1191)
- Choice already starts with 1, there isn't need to increment 1
- The first item is the prompt as recommended in `:h inputlist()`
  (this way the choice matches when using the mouse)
2021-04-16 00:51:40 -05:00
Daniel Bendel
9fb2b0c0b6 remove developer mode error message 2021-04-15 16:56:49 +02:00
Daniel Bendel
6484c5c880 split is_github_or_gitlab again 2021-04-15 16:56:49 +02:00
Daniel Bendel
06af7daf18 remove single-branch and branch arguments on git call 2021-04-15 16:56:49 +02:00
Daniel Bendel
5ff8535bb4 fix undefined variable 2021-04-15 16:56:49 +02:00
Daniel Bendel
50aa988327 a little less variables :) 2021-04-15 16:56:49 +02:00
Daniel Bendel
a866b808c6 removed core.symlinks=true from git call 2021-04-15 16:56:49 +02:00
AdnoC
e65049bd37 use utils.join_path 2021-04-15 16:56:49 +02:00
AdnoC
4d2813f03b use locked revision when downloading via git 2021-04-15 16:56:49 +02:00
AdnoC
234557b95e fix windows check 2021-04-15 16:56:49 +02:00
AdnoC
ef546ef7c8 style 2021-04-15 16:56:49 +02:00
AdnoC
add6eaf181 Do not use builtin tar on Windows
Several parsers (typescript and ocaml specifically) contain symlinks in
their repo. The tar built into Windows cannot handle them.

So, on Windows just use git to download parsers.
2021-04-15 16:56:49 +02:00
Stephan Seitz
4df2667303 feat: Add TSEditQueryUserAfter 2021-04-14 16:23:21 +02:00
Stephan Seitz
4214646953 feat: Add TSEditQuery 2021-04-14 16:23:21 +02:00
Stephan Seitz
fe6f2352c2 Fix #1182: fix TSRange:parent 2021-04-14 12:33:07 +02:00
elianiva
5ead7a0fa7 fixup: remove generate_from_grammar 2021-04-08 22:50:41 +02:00
elianiva
8ac8f2c39b feat: add scss parser 2021-04-08 22:50:41 +02:00
Santos Gallegos
5f53f55371
Fix usage of string.sub (#1164)
From https://www.lua.org/pil/20.html

> The call string.sub(s,i,j) extracts a piece of the string s, from the i-th to the j-th character inclusive.

This was breaking textobjects movement.
2021-04-07 19:23:14 -05:00
Stephan Seitz
bf0ae40cf4 fix(health): let CC check behave like in real installation
Fixes #1146
2021-04-07 13:00:42 +02:00
Stephan Seitz
826683b1bf Fix: allow empty path in utils.get_at_path 2021-04-06 21:48:25 +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
Santos Gallegos
79040e539d
Fix incremental selection (#1135)
So, there are two problems:

- There was an infinite loop when inc selection was initiated
  from an injection.
- The comparison was wrong when the whole file was selected,
  this is because ts matches the EOF.
  This is an extra line with one char (EOF).

I put a workaround to try to select the node from the main
tree, but we should try to select the node from the parent tree of the
injection, but I wasn't able to get the parent tree from the node.
2021-04-05 20:02:58 -05:00