nvim lazy loading
This commit is contained in:
parent
c4fa38f08e
commit
3d5588477a
1 changed files with 27 additions and 9 deletions
|
@ -1,7 +1,11 @@
|
|||
--- PACKAGES {{{
|
||||
vim.cmd 'packadd packer.nvim' -- Load package
|
||||
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})
|
||||
end
|
||||
|
||||
require('packer').startup(function()
|
||||
require('packer').startup(function(use)
|
||||
use 'wbthomason/packer.nvim'
|
||||
|
||||
use 'neovim/nvim-lspconfig'
|
||||
|
@ -29,14 +33,14 @@ require('packer').startup(function()
|
|||
use 'morhetz/gruvbox'
|
||||
-- use 'lifepillar/vim-solarized8'
|
||||
|
||||
use 'chrisbra/Colorizer'
|
||||
use {'chrisbra/Colorizer', cmd='ColorToggle'}
|
||||
|
||||
use 'kdheepak/lazygit.nvim'
|
||||
use {'kdheepak/lazygit.nvim', keys= {'n', '<space>g <Cmd>LazyGit<CR>'}, cmd='LazyGit'}
|
||||
use {'lewis6991/gitsigns.nvim', requires={'nvim-lua/plenary.nvim'}}
|
||||
|
||||
use { 'hoob3rt/lualine.nvim', requires = {'kyazdani42/nvim-web-devicons', opt = true}}
|
||||
|
||||
use 'AndrewRadev/linediff.vim'
|
||||
use {'AndrewRadev/linediff.vim', cmd='LineDiffAdd'}
|
||||
|
||||
use "lukas-reineke/indent-blankline.nvim"
|
||||
|
||||
|
@ -50,15 +54,25 @@ require('packer').startup(function()
|
|||
use { 'scrooloose/nerdtree', disable=true }
|
||||
use { 'kyazdani42/nvim-tree.lua', requires = 'kyazdani42/nvim-web-devicons' }
|
||||
|
||||
use 'vim-vdebug/vdebug'
|
||||
use {'vim-vdebug/vdebug', ft=php}
|
||||
|
||||
use 'dyng/ctrlsf.vim'
|
||||
use 'eugen0329/vim-esearch'
|
||||
use {'dyng/ctrlsf.vim', cmd='CtrlSF'}
|
||||
|
||||
use 'fpob/nette.vim'
|
||||
use {'fpob/nette.vim', ft=nette}
|
||||
|
||||
use { 'ziglang/zig.vim', ft='zig' }
|
||||
|
||||
use {
|
||||
'folke/trouble.nvim',
|
||||
requires = "kyazdani42/nvim-web-devicons",
|
||||
cmd = 'TroubleToggle',
|
||||
keys = { 'n', '<space>t <Cmd>TroubleToggle<CR>'}
|
||||
-- config = require('trouble').setup()
|
||||
}
|
||||
|
||||
if packer_bootstrap then
|
||||
require('packer').sync()
|
||||
end
|
||||
|
||||
end)
|
||||
|
||||
|
@ -71,6 +85,8 @@ vim.o.showcmd=true
|
|||
vim.o.scrolloff=3
|
||||
vim.o.ignorecase=true
|
||||
vim.o.smartcase=true
|
||||
vim.o.incsearch=true
|
||||
vim.o.inccommand='split'
|
||||
vim.o.hidden=true
|
||||
vim.o.autoread=true
|
||||
vim.o.completeopt='menuone,noinsert,noselect'
|
||||
|
@ -161,6 +177,8 @@ require'lspconfig'.powershell_es.setup{
|
|||
capabilities = require('cmp_nvim_lsp').update_capabilities(vim.lsp.protocol.make_client_capabilities())
|
||||
}
|
||||
|
||||
--vim.lsp.set_log_level("debug")
|
||||
|
||||
--- LSP }}}
|
||||
|
||||
--- CMP {{{
|
||||
|
|
Loading…
Add table
Reference in a new issue