安装vimwiki

This commit is contained in:
QQ 2023-01-28 16:20:45 +08:00
parent f2fef63db9
commit f0a0cce850
2 changed files with 17 additions and 9 deletions

View File

@ -48,15 +48,15 @@ G.map({
{'n', '<leader>g', ':w<CR>:LazyGit<CR>', {}}, {'n', '<leader>g', ':w<CR>:LazyGit<CR>', {}},
--EasyAlign --EasyAlign
{"v", "ga", ":EasyAlign<CR>", {silent = true}}, {"v", "ga", ":EasyAlign<CR>", {}},
}) })
G.map({ G.map({
-- easymotion -- easymotion
{'v', '<leader>f', '<Plug>(easymotion-bd-f)', {}}, {'v', 's', '<Plug>(easymotion-bd-f)', {}},
{'n', '<leader>f', '<Plug>(easymotion-overwin-f)', {}}, {'n', 's', '<Plug>(easymotion-overwin-f)', {}},
{'n', 's', '<Plug>(easymotion-overwin-f2)',{}}, {'n', '<leader>f', '<Plug>(easymotion-overwin-f2)',{}},
}) })

View File

@ -1,18 +1,21 @@
local G = require('G')
local ensure_packer = function() local ensure_packer = function()
local fn = vim.fn local fn = G.fn
local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim' local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim'
if fn.empty(fn.glob(install_path)) > 0 then if fn.empty(fn.glob(install_path)) > 0 then
fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path}) fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path})
vim.cmd [[packadd packer.nvim]] G.cmd [[packadd packer.nvim]]
return true return true
end end
return false return false
end end
local packer_bootstrap = ensure_packer() local packer_bootstrap = ensure_packer()
local G = require('G')
return require('packer').startup(function(use) return require('packer').startup(function(use)
-- 防止被自己clean
use 'wbthomason/packer.nvim'
-- 主题插件 -- 主题插件
use 'nvim-lualine/lualine.nvim' use 'nvim-lualine/lualine.nvim'
use 'morhetz/gruvbox' use 'morhetz/gruvbox'
@ -23,22 +26,27 @@ return require('packer').startup(function(use)
-- surround 和 wildfire 配合有神奇的效果 -- surround 和 wildfire 配合有神奇的效果
use 'tpope/vim-surround' use 'tpope/vim-surround'
use 'gcmt/wildfire.vim' use 'gcmt/wildfire.vim'
-- easymotion -- easymotion
use 'easymotion/vim-easymotion' use 'easymotion/vim-easymotion'
-- 格式整理 -- 格式整理
use 'junegunn/vim-easy-align' use 'junegunn/vim-easy-align'
use 'preservim/nerdcommenter' use 'tpope/vim-commentary'
--颜色识别 --颜色识别
use 'lilydjwg/colorizer' use 'lilydjwg/colorizer'
--markdown --markdown
use 'vimwiki/vimwiki'
use 'iamcco/markdown-preview.nvim' use 'iamcco/markdown-preview.nvim'
-- git -- git
use 'kdheepak/lazygit.nvim' use 'kdheepak/lazygit.nvim'
-- 文件搜索
use {'junegunn/fzf'}
end) end)