增加nerdtree

This commit is contained in:
newbieQQ 2023-05-08 10:52:46 +08:00
parent aa9936a8cd
commit 1f8e865ae7
7 changed files with 13 additions and 31 deletions

View File

@ -5,8 +5,7 @@ require('core.filetype')
require('Plugin.coc')
require('Plugin.lualine')
-- require('Plugin.treesitter')
require('Plugin.hlchunk')
require('Plugin.treesitter')
require('Plugin.Imchange')

1
lua/Plugin/NERDTree.lua Normal file
View File

@ -0,0 +1 @@

View File

@ -1,7 +0,0 @@
local G = require('G')
G.cmd([[
let g:ale_linters = {'javascript': ['eslint']}
let g:ale_fixers = {'javascript': ['prettier']}
let g:ale_fix_on_save = 1
]])

View File

@ -11,7 +11,6 @@ G.g['coc_global_extensions'] = {
"coc-translator",
"coc-yank",
"coc-pairs",
"coc-explorer",
"coc-lists",
}
@ -76,8 +75,6 @@ keyset("o", "ic", "<Plug>(coc-classobj-i)", opts)
keyset("x", "ac", "<Plug>(coc-classobj-a)", opts)
keyset("o", "ac", "<Plug>(coc-classobj-a)", opts)
-- explorer
keyset("n", "<c-e>", ":CocCommand explorer<CR>")
-- translator
keyset("n", "<leader>tt", "<Plug>(coc-translator-p)")
keyset("v", "<leader>tt", "<Plug>(coc-translator-pv)")

View File

@ -1,17 +0,0 @@
local G = require("G")
G.cmd([[
" 支持哪些文件 默认为 '*.ts,*.js,*.json,*.go,*.c'
let g:hlchunk_files = '*.ts,*.js,*.json,*.go,*.c'
" 高亮颜色
au VimEnter * hi IndentLineSign ctermfg=248
" 延时 默认为50
let g:hlchunk_time_delay = 50
" 优先级 默认为90
let g:hlchunk_priority = 90
" 预设主题 默认为1
let g:hlchunk_theme = 1
" 用户自定义主题 默认无(用户设置后 以用户设置为主)
" 格式: sign_texts: char[2][3], usenew: (0|1)[4] " [,]
let g:hlchunk_theme_byuser = { 'sign_texts': ['╭─', '', '╰>'], 'usenew': [1, 1, 1, 1] },
]])

View File

@ -49,7 +49,12 @@ G.map({
--EasyAlign
G.map({
{"v", "ga", ":EasyAlign<CR>", {}},
{"v", "ga", ":EasyAlign<CR>", opt},
})
--NvimTree
G.map({
{"n", "<c-e>", ":NERDTree<CR>", opt},
})

View File

@ -55,6 +55,10 @@ require("lazy").setup({
-- fzf
'vijaymarupudi/nvim-fzf',
-- nerdtree
'preservim/nerdtree',
'Xuyuanp/nerdtree-git-plugin',
'ryanoasis/vim-devicons',
})