Refactoring
- Added macos
This commit is contained in:
parent
03a7616e8c
commit
2c1ccaffd1
47 changed files with 76 additions and 33 deletions
52
global/.config/nvim/lua/plugins/nvim-treesitter.lua
Normal file
52
global/.config/nvim/lua/plugins/nvim-treesitter.lua
Normal file
|
@ -0,0 +1,52 @@
|
|||
local config = function()
|
||||
require("nvim-treesitter.configs").setup({
|
||||
build = ":TSUpdate",
|
||||
indent = {
|
||||
enable = true,
|
||||
},
|
||||
autotag = {
|
||||
enable = true,
|
||||
},
|
||||
event = {
|
||||
"BufReadPre",
|
||||
"BufNewFile",
|
||||
},
|
||||
ensure_installed = {
|
||||
"markdown",
|
||||
"json",
|
||||
"javascript",
|
||||
"typescript",
|
||||
"yaml",
|
||||
"html",
|
||||
"css",
|
||||
"markdown",
|
||||
"bash",
|
||||
"lua",
|
||||
"dockerfile",
|
||||
"solidity",
|
||||
"gitignore",
|
||||
"python",
|
||||
"vue",
|
||||
},
|
||||
auto_install = true,
|
||||
highlight = {
|
||||
enable = true,
|
||||
additional_vim_regex_highlighting = true,
|
||||
},
|
||||
incremental_selection = {
|
||||
enable = true,
|
||||
keymaps = {
|
||||
init_selection = "<C-s>",
|
||||
node_incremental = "<C-s>",
|
||||
scope_incremental = false,
|
||||
node_decremental = "<BS>",
|
||||
},
|
||||
},
|
||||
})
|
||||
end
|
||||
|
||||
return {
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
lazy = false,
|
||||
opts = config,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue