nvim lazy plugin management part 1
This commit is contained in:
38
.config/nvim/lua/user/plugins/treesitter.lua
Normal file
38
.config/nvim/lua/user/plugins/treesitter.lua
Normal file
@ -0,0 +1,38 @@
|
||||
return {
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
run = ":TSUpdate",
|
||||
event = "VeryLazy",
|
||||
-- init = function(plugin)
|
||||
-- require("nvim-treesitter")
|
||||
-- end,
|
||||
opts = {
|
||||
ensure_installed = { "python", "rust", "javascript" }, -- one of "all" or a list of languages
|
||||
ignore_install = { "phpdoc", "comment", "rst" }, -- List of parsers to ignore installing
|
||||
highlight = {
|
||||
enable = true,
|
||||
disable = { "css" },
|
||||
},
|
||||
autopairs = {
|
||||
enable = true,
|
||||
},
|
||||
indent = { enable = true },
|
||||
autotag = {
|
||||
enable = true,
|
||||
},
|
||||
refactor = {
|
||||
highlight_definitions = {
|
||||
enable = false,
|
||||
-- Set to false if you have an `updatetime` of ~100.
|
||||
clear_on_cursor_move = true,
|
||||
},
|
||||
smart_rename = {
|
||||
enable = false,
|
||||
keymaps = {
|
||||
smart_rename = "grr",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user