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