generated from LunarVim/Neovim-from-scratch
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(core): updated core configs for default and options
- Loading branch information
Showing
5 changed files
with
115 additions
and
42 deletions.
There are no files selected for viewing
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,34 @@ | ||
local status_ok, configs = pcall(require, "nvim-treesitter.configs") | ||
if not status_ok then | ||
return | ||
return | ||
end | ||
|
||
configs.setup { | ||
ensure_installed = "maintained", -- one of "all", "maintained" (parsers with maintainers), or a list of languages | ||
sync_install = false, -- install languages synchronously (only applied to `ensure_installed`) | ||
ignore_install = { "" }, -- List of parsers to ignore installing | ||
autopairs = { | ||
enable = true, | ||
}, | ||
highlight = { | ||
enable = true, -- false will disable the whole extension | ||
disable = { "" }, -- list of language that will be disabled | ||
additional_vim_regex_highlighting = true, | ||
}, | ||
indent = { enable = true, disable = { "yaml" } }, | ||
context_commentstring = { | ||
enable = true, | ||
enable_autocmd = false, | ||
}, | ||
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 = {}, -- table of hex strings | ||
-- termcolors = {} -- table of colour name strings | ||
}, | ||
playground = { | ||
enable = true, | ||
}, | ||
} | ||
configs.setup({ | ||
ensure_installed = "maintained", -- one of "all", "maintained" (parsers with maintainers), or a list of languages | ||
sync_install = false, -- install languages synchronously (only applied to `ensure_installed`) | ||
ignore_install = { "" }, -- List of parsers to ignore installing | ||
autopairs = { | ||
enable = true, | ||
}, | ||
highlight = { | ||
enable = true, -- false will disable the whole extension | ||
disable = { "" }, -- list of language that will be disabled | ||
additional_vim_regex_highlighting = true, | ||
}, | ||
indent = { enable = true, disable = { "yaml" } }, | ||
context_commentstring = { | ||
enable = true, | ||
enable_autocmd = false, | ||
}, | ||
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 = {}, -- table of hex strings | ||
-- termcolors = {} -- table of colour name strings | ||
}, | ||
playground = { | ||
enable = true, | ||
}, | ||
}) |