Since I recently switched to Linux, I often need to use editors like vi, so this time I'll explore it properly.
My configuration address: https://github.com/fzdwx/nvim, now I'm directly using LazyVim.
Expired
My Configuration#
packer#
I chose packer
as my plugin manager. I don't know what to choose, so I'll go with the latest one.
--- setup packer
local fn = vim.fn
local install_path = fn.stdpath('data') .. '/site/pack/packer/start/packer.nvim'
if fn.empty(fn.glob(install_path)) > 0 then
packer_bootstrap = fn.system({ 'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path })
vim.cmd("packadd packer.nvim")
end
--- add plugins
require('packer').startup(function(use)
-- self-hosted
use 'wbthomason/packer.nvim'
-- other plugins
-- sync if it's the first time
if packer_bootstrap then
require('packer').sync()
end
end)
alpha#
It is a dashboard, or you can say a welcome interface.
require('packer').startup(function(use)
-- ...
--- add the following two lines for installation
use "goolord/alpha-nvim";
use "kyazdani42/nvim-web-devicons";
-- ...
end)
The configuration code is too long, so I won't include it here. You can click here for reference.
telescope#
Its main function is to search and preview files.
require('packer').startup(function(use)
-- ...
--- add the following code for installation
use {
'nvim-telescope/telescope.nvim', tag = '0.1.0',
"ahmedkhalf/project.nvim",
'nvim-lua/plenary.nvim',
}
-- ...
end)