Skip to content

Instantly share code, notes, and snippets.

@shaeinst
Created November 7, 2021 16:36
Show Gist options
  • Save shaeinst/9b2f07ca6e3e562f360b88929253027b to your computer and use it in GitHub Desktop.
Save shaeinst/9b2f07ca6e3e562f360b88929253027b to your computer and use it in GitHub Desktop.
Medium-Setting Up Neovim for Web Development - 11
require'nvim-treesitter.configs'.setup {
highlight = {
enable = {"c", "cpp", "dart", "python", "javascript"}, -- enable = true (false will disable the whole extension)
-- disable = { "c", "rust" }, -- list of language that will be disabled
custom_captures = {
-- Highlight the @foo.bar capture group with the "Identifier" highlight group.
["foo.bar"] = "Identifier",
},
-- 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
additional_vim_regex_highlighting = false,
},
}
@shaeinst
Copy link
Author

shaeinst commented Nov 8, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment