add lua pluging to vim

This commit is contained in:
vincent 2021-10-27 19:40:35 +02:00
parent bda427745f
commit e52adb1263
2 changed files with 39 additions and 11 deletions

View File

@ -5,19 +5,27 @@ call plug#begin('~/.local/share/nvim/plugged')
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
Plug 'zhou13/vim-easyescape'
Plug 'zchee/deoplete-jedi'
Plug 'vim-airline/vim-airline'
Plug 'jiangmiao/auto-pairs'
Plug 'scrooloose/nerdcommenter'
"Plug 'terryma/vim-multiple-cursors'
Plug 'scrooloose/nerdtree'
Plug 'morhetz/gruvbox'
Plug 'SirVer/ultisnips'
Plug 'honza/vim-snippets'
Plug 'tpope/vim-fugitive'
Plug 'freitass/todo.txt-vim'
Plug 'junegunn/fzf'
Plug 'airblade/vim-gitgutter'
Plug 'dense-analysis/ale'
Plug 'rktjmp/lush.nvim'
Plug 'ellisonleao/gruvbox.nvim'
Plug 'Shougo/deoplete.nvim' , { 'do': ':UpdateRemotePlugins' }
Plug 'lewis6991/gitsigns.nvim'
Plug 'nvim-lua/plenary.nvim'
Plug 'kyazdani42/nvim-web-devicons'
Plug 'romgrk/barbar.nvim'
Plug 'yamatsum/nvim-cursorline'
Plug 'famiu/feline.nvim'
Plug 'windwp/nvim-autopairs'
Plug 'lukas-reineke/indent-blankline.nvim'
Plug 'kyazdani42/nvim-tree.lua'
Plug 'folke/which-key.nvim'
Plug 'AckslD/nvim-whichkey-setup.lua'
call plug#end()
"Config Section
set number
@ -52,8 +60,11 @@ set shiftwidth=2 " number of spaces to use for autoindent
set expandtab " tabs are space
set autoindent
set copyindent " copy indent from the previous line
set termguicolors
nnoremap <C-n> :NvimTreeToggle<CR>
nnoremap <leader>r :NvimTreeRefresh<CR>
nnoremap <leader>n :NvimTreeFindFile<CR>
map <C-n> :NERDTreeToggle<CR>
lua require('init')
" Allow saving of files as sudo when I forgot to start vim using sudo.
cmap w!! w !sudo tee > /dev/null %

View File

@ -0,0 +1,17 @@
require('gitsigns').setup()
require('feline').setup()
require('nvim-web-devicons').setup()
require('nvim-autopairs').setup{}
require("indent_blankline").setup {}
require'nvim-tree'.setup()
require("which-key").setup {
-- your configuration comes here
-- or leave it empty to use the default settings
-- refer to the configuration section below
}