added additional nvim config files
This commit is contained in:
parent
21d3fb4507
commit
1a196c5d2d
3 changed files with 76 additions and 0 deletions
51
.config/nvim/lua/user/plugins.lua
Normal file
51
.config/nvim/lua/user/plugins.lua
Normal file
|
@ -0,0 +1,51 @@
|
|||
local ensure_packer = function()
|
||||
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
|
||||
fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path})
|
||||
vim.cmd [[packadd packer.nvim]]
|
||||
return true
|
||||
end
|
||||
return false
|
||||
end
|
||||
|
||||
local packer_bootstrap = ensure_packer()
|
||||
|
||||
return require('packer').startup(function(use)
|
||||
use 'wbthomason/packer.nvim'
|
||||
use {
|
||||
'williamboman/mason.nvim',
|
||||
run = ':MasonUpdate' -- :MasonUpdate updates registry contents
|
||||
}
|
||||
use 'NvChad/nvim-colorizer.lua'
|
||||
use 'windwp/nvim-autopairs'
|
||||
use 'nvim-tree/nvim-tree.lua'
|
||||
use 'nvim-tree/nvim-web-devicons'
|
||||
use {'akinsho/bufferline.nvim', tag = "*", requires = 'nvim-tree/nvim-web-devicons'}
|
||||
-- use {'neoclide/coc.nvim', branch = 'release'}
|
||||
|
||||
-- Themes
|
||||
use 'folke/tokyonight.nvim'
|
||||
|
||||
-- Automatically set up your configuration after cloning packer.nvim
|
||||
-- Put this at the end after all plugins
|
||||
if packer_bootstrap then
|
||||
require('packer').sync()
|
||||
end
|
||||
|
||||
-- mason setup
|
||||
require 'mason'.setup()
|
||||
|
||||
-- colorizer setup
|
||||
require 'colorizer'.setup()
|
||||
|
||||
-- autopairs setup
|
||||
require 'nvim-autopairs'.setup()
|
||||
|
||||
-- nvim-tree setup
|
||||
require 'nvim-tree'.setup()
|
||||
|
||||
-- bufferline setup
|
||||
require 'bufferline'.setup()
|
||||
|
||||
end)
|
Loading…
Add table
Add a link
Reference in a new issue