mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 03:26:52 -04:00
feat!: drop modules, general refactor and cleanup
This commit is contained in:
parent
c13e28f894
commit
2c8f2f2fad
829 changed files with 4905 additions and 8010 deletions
|
|
@ -1,25 +1,29 @@
|
|||
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',
|
||||
hurl = 'hurl',
|
||||
ncl = 'nickel',
|
||||
tig = 'tiger',
|
||||
usd = 'usd',
|
||||
usda = 'usd',
|
||||
wgsl = 'wgsl',
|
||||
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