Configuration files for my GNU/Linux installation.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
dotfiles/nvim/.config/nvim/lua/evim/packer.lua

93 lines
2.0 KiB

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()
vim.cmd [[packadd packer.nvim]]
return require("packer").startup(function(use)
-- Core
use "wbthomason/packer.nvim"
use("nvim-treesitter/nvim-treesitter", { run = ":TSUpdate" })
use {
"nvim-telescope/telescope.nvim", tag = "0.1.1",
requires = { { "nvim-lua/plenary.nvim" } }
}
use {
"numToStr/Comment.nvim",
config = function()
require("Comment").setup()
end
}
-- Themes
use "savq/melange-nvim"
use "chriskempson/base16-vim"
use "navarasu/onedark.nvim"
-- LSP
use {
"VonHeikemen/lsp-zero.nvim",
branch = "v2.x",
requires = {
-- LSP Support
{ "neovim/nvim-lspconfig" }, -- Required
{
-- Optional
"williamboman/mason.nvim",
run = function()
pcall(vim.cmd, "MasonUpdate")
end,
},
{ "williamboman/mason-lspconfig.nvim" }, -- Optional
-- Autocompletion
{ "hrsh7th/nvim-cmp" }, -- Required
{ "hrsh7th/cmp-nvim-lsp" }, -- Required
{ "L3MON4D3/LuaSnip" }, -- Required
}
}
use "jose-elias-alvarez/null-ls.nvim"
use "MunifTanjim/prettier.nvim"
-- Misc
-- use "vimsence/vimsence"
use "andweeb/presence.nvim"
-- use {
-- "nvim-lualine/lualine.nvim",
-- requires = { "nvim-tree/nvim-web-devicons", opt = true }
-- }
use {
"folke/todo-comments.nvim",
requires = "nvim-lua/plenary.nvim",
config = function()
require("todo-comments").setup({})
end
}
use {
"windwp/nvim-autopairs",
config = function() require("nvim-autopairs").setup {} end
}
use {
"lewis6991/gitsigns.nvim",
config = function()
require('gitsigns').setup()
end
}
-- Lang stuff / cool stuff
use "lervag/vimtex"
if packer_bootstrap then
require("packer").sync()
end
end)