optimize bootstrap
This commit is contained in:
@@ -1,5 +1,15 @@
|
||||
# My Neovim Config
|
||||
|
||||
## Bootstrap
|
||||
|
||||
1. Clone the repository to
|
||||
* Windows: `~/AppData/Local/nvim/`
|
||||
* Linus: `~/.config/nvim/`
|
||||
2. Run `nvim`
|
||||
3. Restart nvim after Packer Sync process
|
||||
|
||||
**Note**: Make sure there is no file `plugin/packer_compiled.lua` before step2.
|
||||
|
||||
## Plugins
|
||||
|
||||
* [wbthomason/packer.nvim](https://github.com/wbthomason/packer.nvim)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
require 'impatient'
|
||||
pcall(require, 'impatient')
|
||||
require 'configs.options'
|
||||
require 'configs.keymaps'
|
||||
require 'configs.plugins.packer'
|
||||
|
||||
@@ -24,13 +24,14 @@ packer.init {
|
||||
}
|
||||
return packer.startup(function(use)
|
||||
-- My plugins here
|
||||
use 'wbthomason/packer.nvim'
|
||||
use 'lewis6991/impatient.nvim'
|
||||
use { 'nvim-treesitter/nvim-treesitter',
|
||||
use { 'wbthomason/packer.nvim' }
|
||||
use { 'lewis6991/impatient.nvim' }
|
||||
use {
|
||||
'nvim-treesitter/nvim-treesitter',
|
||||
event = { "BufRead", "BufNewFile" },
|
||||
config = function()
|
||||
require('configs.plugins.treesitter')
|
||||
end,
|
||||
end
|
||||
}
|
||||
use {
|
||||
'windwp/nvim-autopairs', -- Can't lazyloaded because cmp-related
|
||||
@@ -79,9 +80,7 @@ return packer.startup(function(use)
|
||||
use { 'rafamadriz/friendly-snippets' } -- Snippets collection
|
||||
|
||||
-- LSP
|
||||
use {
|
||||
'neovim/nvim-lspconfig',
|
||||
-- config = function()
|
||||
use { 'neovim/nvim-lspconfig' -- config = function()
|
||||
-- require('configs.plugins.lsp_installer')
|
||||
-- end
|
||||
}
|
||||
@@ -126,9 +125,10 @@ return packer.startup(function(use)
|
||||
config = function()
|
||||
require('configs.plugins.lualine')
|
||||
end,
|
||||
opt = false,
|
||||
opt = false
|
||||
}
|
||||
use { 'akinsho/toggleterm.nvim',
|
||||
use {
|
||||
'akinsho/toggleterm.nvim',
|
||||
config = function()
|
||||
require('configs.plugins.toggleterm')
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user