Sanchayan Maity
064df213f2
nvim: treesitter: Add back bash, markdown & python
...
We had dropped these in commit f349a32
since these are now included
upstream but it seems when using neovim build from source, upstream
bundled parsers do not get updated at the same cadence as treesitter
plugin. This results in breaking syntax highlighting and we have
faced this now for python and bash. Bash is still broken.
2023-09-12 12:20:42 +05:30
Sanchayan Maity
ba29cb1d56
nvim: treesitter: Drop teal
2023-08-24 15:58:00 +05:30
Sanchayan Maity
f349a32582
nvim: treesitter: Bash, markdown & python are included upstream
2023-07-03 17:23:25 +05:30
Sanchayan Maity
d3775127f8
nvim: treesitter: Register haskell parser in ftplugin
...
4468c8b
made PureScript use Haskell for treesitter queries. However,
setting them up globally sometimes seems to result in Haskell files
getting identified as PureScript and triggering a PureScript LSP
server attach. At least that's what the behaviour seems like.
To prevent this, register the usage of Haskell treesitter queries
in ftplugin viz. when PureScript file type is detected.
2023-06-20 16:58:13 +05:30
Sanchayan Maity
4468c8b0c1
nvim: treesitter: Make PureScript use Haskell parser and queries
...
Turns out that the Haskell treesitter implementation can be used
for PureScript as well.
This is exactly what Helix does.
https://github.com/helix-editor/helix/pull/4242/files
2023-06-07 13:47:44 +05:30
Sanchayan Maity
6cb83ef74d
nvim: treesitter: Disable additional vim regex highlighting
...
With this set to true, neovim will run `:h syntax` and tree-sitter
at the same time. Using this option may slow down one's editor and
one may see some duplicate highlights. Disable it.
2023-06-02 13:44:11 +05:30
Sanchayan Maity
49f88776ea
nvim: treesitter: Enable diff
2023-06-02 13:10:28 +05:30
Sanchayan Maity
8a60e83ef5
nvim: plugins/treesitter: Drop playground
...
Initially added this thinking it might help with our own colorscheme
but we have never used this.
2023-02-28 00:05:45 +05:30
Sanchayan Maity
20b608ad08
nvim: treesitter: Enable fennel, racket and scheme
2022-12-28 19:51:09 +05:30
Sanchayan Maity
397cac1050
nvim: plugins/treesitter: Use treehopper instead of textobjects
...
The whole bunch of treesitter text objects were difficult to remember
and we ended up rarely ever using any of the defined mappings.
treehopper simplifies things with a single mapping and hints.
2022-11-24 14:21:41 +05:30
Sanchayan Maity
7c8841431a
nvim: init/treesitter: Enable bundled parsers
...
Now that neovim bundles parsers and highlight queries for Lua, Vimscript
and C by default, enable the bundled ones.
We can drop the entries from languages enabled via nvim-treesitter.
See
https://github.com/neovim/neovim/issues/14090#issuecomment-1237820552
2022-09-18 12:57:19 +05:30
Sanchayan Maity
6be67782e6
nvim: treesitter: Add golang
2022-06-05 15:03:49 +05:30
Sanchayan Maity
795fd7f36a
nvim: treesitter: Enable HTML
2022-02-17 15:08:04 +05:30
Sanchayan Maity
2c9b7bfeb1
Revert "nvim: treesitter: Remove verilog support"
...
This reverts commit c2fabd0259
.
2022-01-27 19:06:59 +05:30
Sanchayan Maity
c2fabd0259
nvim: treesitter: Remove verilog support
...
Conflicts with coq and crashes nvim sometimes.
2022-01-08 10:51:54 +05:30
Sanchayan Maity
5abf204ae6
nvim: treesitter: Enable markdown
2021-12-28 19:24:45 +05:30
Sanchayan Maity
e488171b08
nvim: plugins: Add vim-matchup
...
We also enable the treesitter integration.
2021-12-06 10:28:30 +05:30
Sanchayan Maity
eb406bd1da
nvim: treesitter: Drop clojure and fennel
...
We added them briefly but never used these.
2021-10-14 14:41:39 +05:30
Sanchayan Maity
ff93725694
nvim: treesitter: Update treesitter configuration
2021-10-02 17:19:34 +05:30
Sanchayan Maity
fff7723126
nvim: treesitter: Enable Haskell
2021-06-28 16:43:06 +05:30
Sanchayan Maity
44a39eee24
nvim: treesitter: Enable playground
...
Helps to see what treesitter queries are being made. Would be helpful in
tuning the color scheme.
2021-06-23 12:28:44 +05:30
Sanchayan Maity
0649b639da
nvim: treesitter: Force nvim-treesitter to use a specific compiler
...
Required for Haskell. See
https://github.com/tree-sitter/tree-sitter-haskell#building-with-nvim-treesitter
2021-06-19 11:26:13 +05:30
Sanchayan Maity
66f07fba89
nvim: plugins/treesitter: Enable treesitter text objects
2021-05-22 15:30:52 +05:30
Sanchayan Maity
04b2a511e1
nvim: treesitter: Add fish and nix
...
Drop the syntax highlighting plugins for fish and nix and switch to
treesitter. The ftdetect is taken from the respective plugins.
We might need to add the indent specific scripts for fish and nix
later since we are not enabling indent with treesitter.
2021-05-14 19:36:43 +05:30
Sanchayan Maity
abd22a73db
nvim: treesitter: Enable some more languages with treesitter
2021-02-25 12:32:05 +05:30
Sanchayan Maity
795fe5208b
Revert "nvim: Enable treesitter refactor and text objects"
...
This reverts commit 41f1e85929
.
Enabling these two, seems to somehow result in highlighting not working
anymore. So disable them.
2021-01-14 20:05:41 +05:30
Sanchayan Maity
4efbec8683
nvim: treesitter: Enable some more languages
2021-01-14 20:05:41 +05:30
Sanchayan Maity
41f1e85929
nvim: Enable treesitter refactor and text objects
2021-01-12 16:34:52 +05:30
Sanchayan Maity
af410754a4
nvim: Add nvim-treesitter
...
Drop the syntax highlight plugins for the languages for which treesitter
is now enabled.
Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
2020-09-11 20:21:35 +05:30