mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-04-20 18:54:39 +10:00
made neovim config using XDG_BASE_FOLDER specifications
This commit is contained in:
20
.config/nvim/after/plugin/treesitter.rc.lua
Normal file
20
.config/nvim/after/plugin/treesitter.rc.lua
Normal file
@@ -0,0 +1,20 @@
|
||||
-------------------------------------------------
|
||||
-- DT'S NEOVIM CONFIGURATION
|
||||
-- Neovim website: https://neovim.io/
|
||||
-- DT's dotfiles: https://gitlab.com/dwt1/dotfiles
|
||||
-------------------------------------------------
|
||||
|
||||
local status, ts = pcall(require, "nvim-treesitter.configs")
|
||||
if not status then
|
||||
return
|
||||
end
|
||||
|
||||
ts.setup({
|
||||
-- If TS highlights are not enabled at all, or disabled via `disable` prop,
|
||||
-- highlighting will fallback to default Vim syntax highlighting
|
||||
highlight = {
|
||||
enable = true,
|
||||
additional_vim_regex_highlighting = { "org" }, -- Required for spellcheck, some LaTex highlights and code block highlights that do not have ts grammar
|
||||
},
|
||||
ensure_installed = { "org", "lua" }, -- Or run :TSUpdate org
|
||||
})
|
||||
Reference in New Issue
Block a user