Created
November 7, 2021 16:36
-
-
Save shaeinst/9b2f07ca6e3e562f360b88929253027b to your computer and use it in GitHub Desktop.
Medium-Setting Up Neovim for Web Development - 11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | |
}, | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Setting Up Neovim for Web Development
https://xlwe.medium.com/setting-up-neovim-for-web-development-70c57c3d7d61