mirror of
https://github.com/mr0xb/dotfiles.git
synced 2026-08-28 03:44:57 -04:00
opensuse
This commit is contained in:
commit
e25cf3edec
34 changed files with 3718 additions and 0 deletions
61
.config/nvim/lua/config/nvim-treesitter.lua
Normal file
61
.config/nvim/lua/config/nvim-treesitter.lua
Normal file
|
|
@ -0,0 +1,61 @@
|
|||
local M = {}
|
||||
|
||||
function M.setup()
|
||||
local colors = require('dracula').colors()
|
||||
local sitter = require("nvim-treesitter.configs")
|
||||
local conf = {
|
||||
ensure_installed = "all",
|
||||
sync_install = false,
|
||||
ignore_install = {""},
|
||||
matchup = {
|
||||
enable = true,
|
||||
disable_virtual_text = true,
|
||||
},
|
||||
highlight = {
|
||||
enable = true,
|
||||
disable = {},
|
||||
additional_vim_regex_highlighting = true,
|
||||
},
|
||||
autopairs = {
|
||||
enable = true,
|
||||
},
|
||||
indent = {
|
||||
enable = true,
|
||||
--disable = {
|
||||
--"python",
|
||||
--"css"
|
||||
--}
|
||||
--
|
||||
},
|
||||
audotag = {
|
||||
enable = true,
|
||||
disable = {
|
||||
"xml",
|
||||
"markdown",
|
||||
},
|
||||
},
|
||||
rainbow = {
|
||||
enable = true,
|
||||
extended_mode = false,
|
||||
colors = {
|
||||
colors.red,
|
||||
colors.orange,
|
||||
colors.yellow,
|
||||
colors.green,
|
||||
colors.purple,
|
||||
colors.cyan,
|
||||
colors.pink,
|
||||
colors.bright_red,
|
||||
colors.bright_green,
|
||||
colors.bright_yellow,
|
||||
colors.bright_blue,
|
||||
colors.bright_magenta,
|
||||
colors.bright_cyan
|
||||
},
|
||||
},
|
||||
}
|
||||
sitter.setup(conf)
|
||||
end
|
||||
|
||||
return M
|
||||
|
||||
Loading…
Reference in a new issue