This repository has been archived on 2024-12-15. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/lua/plugins.lua

136 lines
3.3 KiB
Lua
Raw Normal View History

2022-02-20 11:10:47 +00:00
local fn = vim.fn
2022-02-21 14:15:15 +00:00
-- boostrap packer
2022-02-22 08:27:45 +00:00
local install_path = fn.stdpath('data') .. '/site/pack/packer/opt/packer.nvim'
2022-02-20 11:10:47 +00:00
local packer_bootstrap
if fn.empty(fn.glob(install_path)) > 0 then
2022-02-22 08:27:45 +00:00
packer_bootstrap = fn.system({
'git', 'clone', 'https://github.com/wbthomason/packer.nvim',
install_path
})
2022-02-20 11:10:47 +00:00
end
2022-02-21 14:15:15 +00:00
-- run PackerSync everytime plugins.lua is updated
vim.cmd([[
2022-02-20 11:10:47 +00:00
augroup packer_user_config
autocmd!
autocmd BufWritePost plugins.lua source <afile> | PackerSync
augroup end
]])
2022-02-21 14:15:15 +00:00
vim.cmd([[packadd packer.nvim]])
-- initialize plugins
2022-02-20 11:10:47 +00:00
return require('packer').startup(function(use)
2022-02-22 08:27:45 +00:00
-- let packer manage itself
use({'wbthomason/packer.nvim', opt = true})
2022-02-21 14:15:15 +00:00
2022-02-22 08:27:45 +00:00
-- theme
2022-02-21 14:15:15 +00:00
use("ishan9299/nvim-solarized-lua")
-- commenting
use("tpope/vim-commentary")
2022-02-22 08:27:45 +00:00
-- session handling
use('tpope/vim-obsession')
use('dhruvasagar/vim-prosession')
-- status line
use {
'nvim-lualine/lualine.nvim',
requires = {'kyazdani42/nvim-web-devicons', opt = true},
config = function() require('lualine').setup() end
}
-- tabline
use {
'kdheepak/tabline.nvim',
config = function()
require'tabline'.setup {
enable = true,
options = {show_filename_only = true}
}
end,
requires = {
{'hoob3rt/lualine.nvim'},
{'kyazdani42/nvim-web-devicons', opt = true}
}
}
-- blankline
use({
"lukas-reineke/indent-blankline.nvim",
config = function()
require("indent_blankline").setup {
char = "",
2022-02-24 06:57:25 +00:00
buftype_exclude = {"terminal", "help", "nofile"},
filetype_exclude = {'help', 'packer'},
show_trailing_blankline_indent = false
2022-02-22 08:27:45 +00:00
}
end
})
-- git
use('tpope/vim-fugitive')
use({
'lewis6991/gitsigns.nvim',
requires = {'nvim-lua/plenary.nvim'},
config = function() require('gitsigns').setup() end
})
-- autocompletion
use({
"ms-jpq/coq_nvim",
branch = "coq",
requires = {{'ms-jpq/coq.artifacts', branch = 'artifacts'}}
})
2022-02-21 14:15:15 +00:00
-- highlight current symbol
2022-02-22 07:45:55 +00:00
use({"RRethy/vim-illuminate"})
2022-02-21 14:15:15 +00:00
2022-02-22 08:27:45 +00:00
-- language server
use({
"neovim/nvim-lspconfig",
config = function() require("plugins.lspconfig") end
})
2022-02-21 14:15:15 +00:00
use('williamboman/nvim-lsp-installer')
2022-02-22 08:27:45 +00:00
-- treesitter
use({
'nvim-treesitter/nvim-treesitter',
config = function() require('plugins.treesitter') end,
run = ':TSUpdate'
})
2022-02-21 14:15:15 +00:00
2022-02-22 08:27:45 +00:00
-- Telescope
use({
'nvim-telescope/telescope.nvim',
requires = {{'nvim-lua/plenary.nvim'}},
config = function() require('plugins.telescope') end
})
2022-02-24 06:57:25 +00:00
use({'nvim-telescope/telescope-fzf-native.nvim', run = 'make'})
2022-02-21 14:15:15 +00:00
2022-02-22 07:46:12 +00:00
-- automatic pairs
use({"Raimondi/delimitMate"})
2022-02-21 15:46:37 +00:00
-- markdown preview
use({'iamcco/markdown-preview.nvim'})
-- terminal
use({
"akinsho/nvim-toggleterm.lua",
config = function()
2022-02-22 08:27:45 +00:00
require("toggleterm").setup({size = 32, open_mapping = [[<F4>]]})
end
2022-02-21 15:46:37 +00:00
})
2022-02-21 18:54:49 +00:00
-- buffer closing
2022-02-22 08:27:45 +00:00
use({"sar/bbye.nvim"})
2022-02-21 18:54:49 +00:00
2022-02-21 18:55:01 +00:00
-- ansible filetype
use({"pearofducks/ansible-vim"})
2022-02-22 08:27:45 +00:00
if packer_bootstrap then require('packer').sync() end
2022-02-21 14:15:15 +00:00
end)