WIP: Start moving neovim config to lua
This commit is contained in:
parent
80bc730cd3
commit
ed6b02924f
11 changed files with 305 additions and 0 deletions
41
.config/nvim/lua/plugins.lua
Normal file
41
.config/nvim/lua/plugins.lua
Normal file
|
@ -0,0 +1,41 @@
|
|||
local install_path = vim.fn.stdpath("data") .. "/site/pack/packer/start/packer.nvim"
|
||||
if vim.fn.empty(vim.fn.glob(install_path)) > 0 then
|
||||
packer_bootstrap =
|
||||
vim.fn.system({"git", "clone", "--depth", "1", "https://github.com/wbthomason/packer.nvim", install_path})
|
||||
end
|
||||
-- Register Packer with vim
|
||||
vim.api.nvim_cmd({
|
||||
cmd = "packadd",
|
||||
args = {"packer.nvim"},
|
||||
}, {})
|
||||
|
||||
return require("packer").startup {
|
||||
function(use)
|
||||
-- Packer can manage itself
|
||||
use "wbthomason/packer.nvim"
|
||||
|
||||
-- Plugins go here
|
||||
use 'dracula/vim'
|
||||
use 'ryanoasis/vim-devicons'
|
||||
-- use 'SirVer/ultisnips'
|
||||
use 'honza/vim-snippets'
|
||||
use 'scrooloose/nerdtree'
|
||||
use 'preservim/nerdcommenter'
|
||||
use 'mhinz/vim-startify'
|
||||
use {'neoclide/coc.nvim', branch = 'release'}
|
||||
use 'nvim-lua/plenary.nvim'
|
||||
use 'ThePrimeagen/harpoon'
|
||||
use 'junegunn/fzf'
|
||||
use 'junegunn/fzf.vim'
|
||||
use 'neovim/nvim-lspconfig'
|
||||
use 'jose-elias-alvarez/null-ls.nvim'
|
||||
use 'MunifTanjim/prettier.nvim'
|
||||
use 'OmniSharp/omnisharp-vim'
|
||||
|
||||
-- Install and compile Plugins
|
||||
if packer_bootstrap then
|
||||
require("packer").sync()
|
||||
end
|
||||
end
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue