增加nerdtree
This commit is contained in:
parent
aa9936a8cd
commit
1f8e865ae7
3
init.lua
3
init.lua
@ -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
1
lua/Plugin/NERDTree.lua
Normal file
@ -0,0 +1 @@
|
||||
|
@ -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
|
||||
]])
|
@ -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)")
|
||||
|
@ -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] },
|
||||
]])
|
@ -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},
|
||||
})
|
||||
|
||||
|
||||
|
@ -55,6 +55,10 @@ require("lazy").setup({
|
||||
-- fzf
|
||||
'vijaymarupudi/nvim-fzf',
|
||||
|
||||
-- nerdtree
|
||||
'preservim/nerdtree',
|
||||
'Xuyuanp/nerdtree-git-plugin',
|
||||
'ryanoasis/vim-devicons',
|
||||
})
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user