dotfiles/.config/nvim/lua/plugins.lua

111 lines
2.6 KiB
Lua
Raw Normal View History

2021-09-22 15:48:15 +02:00
-- require("impatient")
2021-09-22 12:18:25 +02:00
-- This part auto-installs Packer if it's not present
-- Largely inspired by https://github.com/wbthomason/packer.nvim#bootstrapping
local fn = vim.fn
local g = vim.g
2022-01-18 14:10:24 +01:00
-- Install packer if it isn't present
2021-09-22 12:18:25 +02:00
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})
vim.cmd [[ packadd packer.nvim ]]
2021-09-22 12:18:25 +02:00
end
require('packer').startup(function(use)
2021-09-22 12:18:25 +02:00
use "wbthomason/packer.nvim"
-- Improves boot times
-- use {"lewis6991/impatient.nvim", rocks = 'mpack'}
2022-01-18 14:10:24 +01:00
-- Fuzzy search engine
use {
"ctrlpvim/ctrlp.vim",
setup = [[require('config.ctrlp')]]
}
-- Git client
use {
"tpope/vim-fugitive",
config = [[require('config.fugitive')]]
}
-- Shortcuts for commenting out code
2021-09-22 12:18:25 +02:00
use "tpope/vim-commentary"
2022-01-18 14:10:24 +01:00
-- Shortcuts for surrounding pieces of text
2021-09-22 12:18:25 +02:00
use "tpope/vim-surround"
2022-01-18 14:10:24 +01:00
-- Shows ctags in a sidebar
use {
"majutsushi/tagbar",
config = [[require('config.tagbar')]]
}
-- Shows git diff markers
use {
"airblade/vim-gitgutter",
config = [[require('config.gitgutter')]]
}
2021-09-22 12:18:25 +02:00
use "hynek/vim-python-pep8-indent"
use "michaeljsmith/vim-indent-object"
2022-01-18 14:10:24 +01:00
-- File explorer
use {
"preservim/nerdtree",
config = [[require('config.nerdtree')]]
}
2021-09-22 12:18:25 +02:00
use "jiangmiao/auto-pairs"
2022-01-18 14:10:24 +01:00
-- Align text
2021-09-22 12:18:25 +02:00
use "godlygeek/tabular"
2022-01-18 14:10:24 +01:00
-- Automatically load a .editorconfig file if found
2021-09-22 12:18:25 +02:00
use "editorconfig/editorconfig-vim"
2022-01-18 14:10:24 +01:00
-- Pre-configured LSP stuff
use {
"neovim/nvim-lspconfig",
config = [[require('config.lspconfig')]]
}
2021-09-22 12:18:25 +02:00
2022-01-18 14:10:24 +01:00
-- Beautiful treesitter-compatible theme
use {
"marko-cerovac/material.nvim",
config = function()
vim.cmd("colorscheme material")
-- color material
nmap("<leader>c", [[<Cmd>lua require('material.functions').toggle_style()<CR>]])
end
2021-10-14 14:41:19 +02:00
}
2022-01-18 14:10:24 +01:00
-- Autocomplete engine
use {
"ms-jpq/coq_nvim",
branch = "coq",
config = [[require('config.coq')]]
2021-10-14 14:41:19 +02:00
}
2022-01-18 14:10:24 +01:00
-- Better syntax highlighting
use {
"nvim-treesitter/nvim-treesitter",
run = ":TSUpdate",
config = [[require('config.treesitter')]]
2021-10-14 14:41:19 +02:00
}
2022-01-18 14:10:24 +01:00
-- Toggleable terminals
use {
"akinsho/nvim-toggleterm.lua",
config = [[require('config.toggleterm')]]
}
-- LaTeX editing
use "lervag/vimtex"
if packer_bootstrap then
require('packer').sync()
end
2022-01-18 14:10:24 +01:00
end)