mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
feat!: drop modules, general refactor and cleanup
This commit is contained in:
parent
310f0925ec
commit
692b051b09
1247 changed files with 6096 additions and 9074 deletions
|
|
@ -1,25 +1,25 @@
|
|||
vim.opt.runtimepath:append "."
|
||||
vim.cmd.runtime { "plugin/plenary.vim", bang = true }
|
||||
vim.cmd.runtime { "plugin/nvim-treesitter.lua", bang = true }
|
||||
vim.opt.runtimepath:append('.')
|
||||
vim.cmd.runtime({ 'plugin/plenary.vim', bang = true })
|
||||
vim.cmd.runtime({ 'plugin/nvim-treesitter.lua', bang = true })
|
||||
vim.cmd.runtime({ 'plugin/query_predicates.lua', bang = true })
|
||||
|
||||
vim.filetype.add {
|
||||
vim.filetype.add({
|
||||
extension = {
|
||||
conf = "hocon",
|
||||
cmm = "t32",
|
||||
hurl = "hurl",
|
||||
ncl = "nickel",
|
||||
tig = "tiger",
|
||||
usd = "usd",
|
||||
usda = "usd",
|
||||
wgsl = "wgsl",
|
||||
w = "wing",
|
||||
conf = 'hocon',
|
||||
cmm = 't32',
|
||||
ncl = 'nickel',
|
||||
tig = 'tiger',
|
||||
w = 'wing',
|
||||
},
|
||||
}
|
||||
})
|
||||
|
||||
vim.o.swapfile = false
|
||||
vim.bo.swapfile = false
|
||||
|
||||
require("nvim-treesitter.configs").setup {
|
||||
indent = { enable = true },
|
||||
highlight = { enable = true },
|
||||
}
|
||||
require('nvim-treesitter').setup()
|
||||
vim.api.nvim_create_autocmd('FileType', {
|
||||
callback = function(args)
|
||||
pcall(vim.treesitter.start)
|
||||
vim.bo[args.buffer].indentexpr = 'v:lua.require"nvim-treesitter".indentexpr()'
|
||||
end,
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue