diff --git a/init.lua b/init.lua index 1441c22..880414a 100644 --- a/init.lua +++ b/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') diff --git a/lua/Plugin/NERDTree.lua b/lua/Plugin/NERDTree.lua new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/lua/Plugin/NERDTree.lua @@ -0,0 +1 @@ + diff --git a/lua/Plugin/ale.lua b/lua/Plugin/ale.lua deleted file mode 100644 index d0cd879..0000000 --- a/lua/Plugin/ale.lua +++ /dev/null @@ -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 -]]) diff --git a/lua/Plugin/coc.lua b/lua/Plugin/coc.lua index ee5c7ce..5cc12bb 100644 --- a/lua/Plugin/coc.lua +++ b/lua/Plugin/coc.lua @@ -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", "(coc-classobj-i)", opts) keyset("x", "ac", "(coc-classobj-a)", opts) keyset("o", "ac", "(coc-classobj-a)", opts) --- explorer -keyset("n", "", ":CocCommand explorer") -- translator keyset("n", "tt", "(coc-translator-p)") keyset("v", "tt", "(coc-translator-pv)") diff --git a/lua/Plugin/hlchunk.lua b/lua/Plugin/hlchunk.lua deleted file mode 100644 index 9963e13..0000000 --- a/lua/Plugin/hlchunk.lua +++ /dev/null @@ -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] }, -]]) diff --git a/lua/core/keymap.lua b/lua/core/keymap.lua index d47192d..806cddd 100644 --- a/lua/core/keymap.lua +++ b/lua/core/keymap.lua @@ -49,7 +49,12 @@ G.map({ --EasyAlign G.map({ -{"v", "ga", ":EasyAlign", {}}, +{"v", "ga", ":EasyAlign", opt}, +}) + +--NvimTree +G.map({ + {"n", "", ":NERDTree", opt}, }) diff --git a/lua/core/plug.lua b/lua/core/plug.lua index 994f6c0..ef6ee04 100644 --- a/lua/core/plug.lua +++ b/lua/core/plug.lua @@ -55,7 +55,11 @@ require("lazy").setup({ -- fzf 'vijaymarupudi/nvim-fzf', - }) + -- nerdtree + 'preservim/nerdtree', + 'Xuyuanp/nerdtree-git-plugin', + 'ryanoasis/vim-devicons', +})