Advertisement
anonymzz

Untitled

Jul 4th, 2022
895
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.38 KB | None | 0 0
  1. -- See: https://github.com/nvim-treesitter/nvim-treesitter#quickstart
  2. nvim_treesitter.setup {
  3.   -- A list of parser names, or "all"
  4.   ensure_installed = {
  5.     'bash', 'c', 'cpp', 'css', 'html', 'javascript', 'json', 'lua', 'python','vim','markdown_inline',
  6.   },
  7.   -- Install parsers synchronously (only applied to `ensure_installed`)
  8.   sync_install = false,
  9.   highlight = {
  10.     -- `false` will disable the whole extension
  11.     enable = true,
  12.     -- Setting this to true will run `:h syntax` and tree-sitter at the same time.
  13.     -- Set this to `true` if you depend on 'syntax' being enabled (like for indentation).
  14.     -- Using this option may slow down your editor, and you may see some duplicate highlights.
  15.     -- Instead of true it can also be a list of languages
  16.   },
  17.   rainbow = {
  18.     enable = true,
  19.     -- disable = { "jsx", "cpp" }, list of languages you want to disable the plugin for
  20.     extended_mode = true, -- Also highlight non-bracket delimiters like html tags, boolean or table: lang -> boolean
  21.     max_file_lines = nil, -- Do not enable for files with more than n lines, int
  22.     colors = { "#FF79C6", "#A4FFFF", "#50fa7b", "#FFFFA5", "#FF92DF", "#5e81ac", "#b48ead",} -- table of hex strings
  23.     -- termcolors = {'cyan', 'green', 'pink', 'orange'} -- table of colour name strings
  24.   },
  25.     indent = {
  26.       enable = true,
  27.   },
  28.  additional_vim_regex_highlighting = false,
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement