dotfiles/neovim/.config/nvim/lua/warrenhood/plugins.lua

57 lines
1.2 KiB
Lua
Raw Normal View History

2022-11-08 01:05:38 +00:00
-- Ensure packer in installed
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()
-- Actual plugins
local use = require("packer").use
require("packer").startup(function()
2022-11-08 23:03:55 +00:00
-- Packer package manager
use("wbthomason/packer.nvim")
-- OneDark color scheme
use("navarasu/onedark.nvim")
-- LSP Stuff
2022-11-08 01:05:38 +00:00
use({
2022-11-08 23:03:55 +00:00
"williamboman/mason.nvim",
2022-11-08 01:05:38 +00:00
"williamboman/mason-lspconfig.nvim",
2022-11-08 23:03:55 +00:00
"neovim/nvim-lspconfig",
2022-11-08 01:05:38 +00:00
})
-- Autocomplete
use("hrsh7th/cmp-nvim-lsp")
use("hrsh7th/cmp-buffer")
use("hrsh7th/cmp-path")
use("hrsh7th/cmp-cmdline")
use("hrsh7th/nvim-cmp")
use("hrsh7th/cmp-vsnip")
use("hrsh7th/vim-vsnip")
-- Treesitter
2022-11-08 01:05:38 +00:00
use("nvim-treesitter/nvim-treesitter")
-- Telescope
use {
'nvim-telescope/telescope.nvim', tag = '0.1.0',
requires = { { 'nvim-lua/plenary.nvim' } }
}
2022-11-08 01:05:38 +00:00
-- Automatically set up configuration after cloning packer.nvim
if packer_bootstrap then
require("packer").sync()
end
end)