init
This commit is contained in:
56
lua/plugins/configs/treesitter.lua
Normal file
56
lua/plugins/configs/treesitter.lua
Normal file
@@ -0,0 +1,56 @@
|
||||
--
|
||||
-- ███╗ ██╗███████╗ ██████╗ ██╗ ██╗██╗███╗ ███╗
|
||||
-- ████╗ ██║██╔════╝██╔═══██╗██║ ██║██║████╗ ████║
|
||||
-- ██╔██╗ ██║█████╗ ██║ ██║██║ ██║██║██╔████╔██║
|
||||
-- ██║╚██╗██║██╔══╝ ██║ ██║╚██╗ ██╔╝██║██║╚██╔╝██║
|
||||
-- ██║ ╚████║███████╗╚██████╔╝ ╚████╔╝ ██║██║ ╚═╝ ██║
|
||||
-- ╚═╝ ╚═══╝╚══════╝ ╚═════╝ ╚═══╝ ╚═╝╚═╝ ╚═╝
|
||||
--
|
||||
-- File: plugins/configs/treesitter.lua
|
||||
-- Description: nvim-treesitter configuration
|
||||
-- Author: Kien Nguyen-Tuan <kiennt2609@gmail.com>
|
||||
|
||||
-- Load custom configurations
|
||||
local exist, custom = pcall(require, "custom")
|
||||
local ensure_installed = exist and type(custom) == "table" and custom.ensure_installed or {}
|
||||
|
||||
return {
|
||||
-- A list of parser names, or "all"
|
||||
ensure_installed = {
|
||||
"go",
|
||||
"python",
|
||||
"dockerfile",
|
||||
"json",
|
||||
"yaml",
|
||||
"markdown",
|
||||
"html",
|
||||
"scss",
|
||||
"css",
|
||||
"vim",
|
||||
"lua",
|
||||
ensure_installed,
|
||||
},
|
||||
|
||||
highlight = {
|
||||
enable = true,
|
||||
use_languagetree = true,
|
||||
},
|
||||
indent = {
|
||||
enable = true,
|
||||
},
|
||||
autotag = {
|
||||
enable = true,
|
||||
},
|
||||
context_commentstring = {
|
||||
enable = true,
|
||||
enable_autocmd = false,
|
||||
},
|
||||
refactor = {
|
||||
highlight_definitions = {
|
||||
enable = true,
|
||||
},
|
||||
highlight_current_scope = {
|
||||
enable = false,
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user