Adding a lot of plugin
This commit is contained in:
55
lua/lazy/plugins/nvim-treesitter.lua
Normal file
55
lua/lazy/plugins/nvim-treesitter.lua
Normal file
@@ -0,0 +1,55 @@
|
||||
function conf()
|
||||
--- Ensure plugin is avaiable
|
||||
local treesitter = require("nvim-treesitter.configs")
|
||||
|
||||
--- nvim-treesitter options
|
||||
opts = {
|
||||
highlight = {
|
||||
enable = true,
|
||||
},
|
||||
-- enable indentation
|
||||
autotag = {
|
||||
enable = true,
|
||||
},
|
||||
ensure_installed = {
|
||||
"json",
|
||||
"javascript",
|
||||
"typescript",
|
||||
"tsx",
|
||||
"yaml",
|
||||
"html",
|
||||
"css",
|
||||
"prisma",
|
||||
"markdown",
|
||||
"markdown_inline",
|
||||
"svelte",
|
||||
"graphql",
|
||||
"bash",
|
||||
"lua",
|
||||
"vim",
|
||||
"dockerfile",
|
||||
"gitignore",
|
||||
"query",
|
||||
"rst",
|
||||
"php",
|
||||
},
|
||||
incremental_selection = {
|
||||
enable = true,
|
||||
keymaps = {
|
||||
init_selection = "<leader>ss",
|
||||
node_incremental = false,
|
||||
scope_incremental = false,
|
||||
node_decremental = false,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
--- Load plugin
|
||||
treesitter.setup(opts)
|
||||
end
|
||||
|
||||
return {
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
event = { "BufReadPre", "BufNewFile" },
|
||||
config = conf
|
||||
}
|
||||
Reference in New Issue
Block a user