File tree Expand file tree Collapse file tree 6 files changed +53
-20
lines changed
lewis6991/ts-install-nvim
nvim-treesitter/nvim-treesitter Expand file tree Collapse file tree 6 files changed +53
-20
lines changed Original file line number Diff line number Diff line change 66
66
commit_message : " chore(pr): auto-commit"
67
67
ubuntu_installer :
68
68
name : Ubuntu Installer
69
- strategy :
70
- matrix :
71
- os : [ubuntu-latest, ubuntu-24.04-arm]
72
- runs-on : ${{ matrix.os }}
69
+ runs-on : ubuntu-latest
73
70
steps :
74
71
- uses : Swatinem/rust-cache@v2
75
72
-
uses :
mozilla-actions/[email protected]
@@ -122,10 +119,7 @@ jobs:
122
119
git clone --single-branch --branch ${{ steps.extract_branch.outputs.branch }} --depth=1 https://github.com/linrongbin16/lin.nvim ~/.nvim && cd ~/.nvim && bash -euxo pipefail ./install
123
120
windows_installer :
124
121
name : Windows Installer
125
- strategy :
126
- matrix :
127
- os : [windows-latest, windows-11-arm]
128
- runs-on : ${{ matrix.os }}
122
+ runs-on : windows-latest
129
123
steps :
130
124
- uses : ilammy/msvc-dev-cmd@v1
131
125
- uses : Swatinem/rust-cache@v2
Original file line number Diff line number Diff line change 8
8
/lazy
9
9
/universal-ctags
10
10
/go-installer
11
+ /treesitter
12
+ /ts-install
11
13
12
14
# hooks
13
15
/preinit.vim
Original file line number Diff line number Diff line change
1
+ local stdpath_config = vim .fn .stdpath (" config" )
2
+
3
+ require (" ts-install" ).setup ({
4
+ auto_install = true ,
5
+ install_dir = stdpath_config .. " /ts-install" ,
6
+ })
7
+
8
+ local ts_install_augroup = vim .api .nvim_create_augroup (" ts_install_augroup" , { clear = true })
9
+ vim .api .nvim_create_autocmd (" FileType" , {
10
+ group = ts_install_augroup ,
11
+ pattern = { " <filetype>" },
12
+ callback = function ()
13
+ vim .treesitter .start ()
14
+ end ,
15
+ })
16
+
17
+ vim .wo .foldexpr = " v:lua.vim.treesitter.foldexpr()"
18
+ vim .bo .indentexpr = " v:lua.require'nvim-treesitter'.indentexpr()"
Original file line number Diff line number Diff line change 1
- local bigfile = require ( " builtin.utils.bigfile " )
1
+ local stdpath_config = vim . fn . stdpath ( " config " )
2
2
3
- --- @diagnostic disable-next-line : missing-fields
4
- require (" nvim-treesitter.configs" ).setup ({
5
- auto_install = true ,
6
- highlight = {
7
- enable = true ,
8
- -- disable for super large file
9
- disable = function (lang , buf )
10
- return bigfile .is_too_big (buf )
11
- end ,
12
- additional_vim_regex_highlighting = false ,
13
- },
3
+ require (" nvim-treesitter" ).setup ({
4
+ install_dir = stdpath_config .. " /treesitter" ,
14
5
})
6
+
7
+ -- local nvim_treesitter_augroup =
8
+ -- vim.api.nvim_create_augroup("nvim_treesitter_augroup", { clear = true })
9
+ -- vim.api.nvim_create_autocmd("FileType", {
10
+ -- group = nvim_treesitter_augroup,
11
+ -- pattern = { "<filetype>" },
12
+ -- callback = function()
13
+ -- vim.treesitter.start()
14
+ -- end,
15
+ -- })
16
+ --
17
+ -- vim.wo.foldexpr = "v:lua.vim.treesitter.foldexpr()"
18
+ -- vim.bo.indentexpr = "v:lua.require'nvim-treesitter'.indentexpr()"
Original file line number Diff line number Diff line change
1
+ vim .g .loaded_nvim_treesitter = 1
Original file line number Diff line number Diff line change 89
89
-- version = "*",
90
90
-- lazy = false,
91
91
-- },
92
+ -- {
93
+ -- "nvim-treesitter/nvim-treesitter",
94
+ -- lazy = false,
95
+ -- branch = "main",
96
+ -- build = ":TSUpdate",
97
+ -- init = lua_init("nvim-treesitter/nvim-treesitter"),
98
+ -- config = lua_config("nvim-treesitter/nvim-treesitter"),
99
+ -- },
100
+ -- {
101
+ -- "lewis6991/ts-install.nvim",
102
+ -- lazy = false,
103
+ -- dependencies = { "nvim-treesitter/nvim-treesitter" },
104
+ -- config = lua_config("lewis6991/ts-install.nvim"),
105
+ -- },
92
106
-- }
93
107
94
108
return {}
You can’t perform that action at this time.
0 commit comments