-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update plugins - remember to run
:TSUpdate
if treesitter is updated
- Loading branch information
Showing
6 changed files
with
61 additions
and
64 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
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,31 +1,31 @@ | ||
local status_ok, treesitter = pcall(require, "nvim-treesitter") | ||
if not status_ok then | ||
return | ||
return | ||
end | ||
|
||
local status_ok, configs = pcall(require, "nvim-treesitter.configs") | ||
if not status_ok then | ||
return | ||
return | ||
end | ||
|
||
configs.setup({ | ||
ensure_installed = { "lua", "markdown", "markdown_inline", "bash", "python" }, -- put the language you want in this array | ||
ensure_installed = { "lua", "markdown", "markdown_inline", "bash", "python", "rust" }, -- put the language you want in this array | ||
-- ensure_installed = "all", -- one of "all" or a list of languages | ||
ignore_install = { "" }, -- List of parsers to ignore installing | ||
sync_install = false, -- install languages synchronously (only applied to `ensure_installed`) | ||
ignore_install = { "" }, -- List of parsers to ignore installing | ||
sync_install = false, -- install languages synchronously (only applied to `ensure_installed`) | ||
|
||
highlight = { | ||
enable = true, -- false will disable the whole extension | ||
disable = { "css" }, -- list of language that will be disabled | ||
}, | ||
autopairs = { | ||
enable = true, | ||
}, | ||
indent = { enable = true, disable = { "python", "css" } }, | ||
enable = true, -- false will disable the whole extension | ||
disable = { "css" }, -- list of language that will be disabled | ||
}, | ||
autopairs = { | ||
enable = true, | ||
}, | ||
indent = { enable = true, disable = { "python", "css" } }, | ||
|
||
context_commentstring = { | ||
enable = true, | ||
enable_autocmd = false, | ||
}, | ||
context_commentstring = { | ||
enable = true, | ||
enable_autocmd = false, | ||
}, | ||
|
||
}) |