forked from RRethy/nvim-treesitter-endwise
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove nvim-treesitter module support (inspired by RRethy#39) Replace built-in nvim-treesitter functions with vim.treesitter as much as possible Add pkg.json and .gitattributes
- Loading branch information
1 parent
ad5ab41
commit 2532be8
Showing
7 changed files
with
89 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
*.rb linguist-documentation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
return require 'nvim-treesitter'.endwise |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"name": "nvim-treesitter-endwise", | ||
"description": "A treesitter-based and `tpope/vim-endwise`-inspired plugin for Neovim", | ||
"engines": { | ||
"nvim": "^0.9.0" | ||
}, | ||
"dependencies": { | ||
"https://github.com/nvim-treesitter/nvim-treesitter": "master" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,8 @@ | ||
require('nvim-treesitter-endwise').init() | ||
vim.api.nvim_create_autocmd("FileType", { | ||
group = vim.api.nvim_create_augroup("TreesitterEndwise", {}), | ||
callback = function(args) | ||
require("treesitter-endwise").detach(args.buf) | ||
require("treesitter-endwise").attach(args.buf) | ||
end, | ||
desc = "Reattach module", | ||
}) |