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

180 lines
4.1 KiB
Lua
Raw Normal View History

2022-11-08 01:05:38 +00:00
-- Ensure packer in installed
local ensure_packer = function()
2022-11-10 19:49:34 +00:00
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
2022-11-08 01:05:38 +00:00
end
local packer_bootstrap = ensure_packer()
-- Actual plugins
local use = require("packer").use
require("packer").startup(function()
2022-11-10 19:49:34 +00:00
-- Packer package manager
use("wbthomason/packer.nvim")
2022-11-08 23:03:55 +00:00
2022-11-10 19:49:34 +00:00
-- OneDark color scheme
use("navarasu/onedark.nvim")
2022-11-08 01:05:38 +00:00
2022-11-10 19:49:34 +00:00
-- LSP Stuff
use({
"williamboman/mason.nvim",
"williamboman/mason-lspconfig.nvim",
"neovim/nvim-lspconfig",
})
2022-11-08 01:05:38 +00:00
2022-11-10 19:49:34 +00:00
-- Autocomplete
use("hrsh7th/cmp-nvim-lsp")
use("hrsh7th/cmp-buffer")
use("hrsh7th/cmp-path")
use("hrsh7th/cmp-cmdline")
use("hrsh7th/nvim-cmp")
2022-11-13 04:11:33 +00:00
use("saadparwaiz1/cmp_luasnip")
use("L3MON4D3/LuaSnip")
2022-11-08 01:05:38 +00:00
2022-11-10 19:49:34 +00:00
-- Treesitter
use("nvim-treesitter/nvim-treesitter")
2022-11-08 01:05:38 +00:00
2022-11-10 19:49:34 +00:00
-- Telescope
use {
'nvim-telescope/telescope.nvim', tag = '0.1.0',
requires = { { 'nvim-lua/plenary.nvim' } }
}
2022-11-10 19:49:34 +00:00
-- nvim-tree (File Explorer)
use {
'nvim-tree/nvim-tree.lua',
requires = {
'nvim-tree/nvim-web-devicons', -- file icons
},
tag = 'nightly'
}
2022-11-10 19:49:34 +00:00
-- ToggleTerm
use { "akinsho/toggleterm.nvim", tag = '*', config = function()
require("toggleterm").setup()
end }
2022-11-10 19:49:34 +00:00
-- Which key for command suggestions
use {
"folke/which-key.nvim",
}
-- Comments
use {
'numToStr/Comment.nvim',
config = function()
require('Comment').setup()
end
}
-- Git signs
use {
'lewis6991/gitsigns.nvim',
config = function()
require('gitsigns').setup()
end
}
-- Show indent guides
use {
'lukas-reineke/indent-blankline.nvim',
config = function()
require("indent_blankline").setup {
show_current_context = true,
show_current_context_start = true,
}
end
}
2022-11-13 02:41:25 +00:00
-- lualine statusline
use {
'nvim-lualine/lualine.nvim',
requires = { 'kyazdani42/nvim-web-devicons', opt = true },
2022-11-14 23:36:57 +00:00
config = function()
2022-11-13 02:41:25 +00:00
require("lualine").setup {
}
end
}
2022-11-14 23:36:57 +00:00
-- Test runner Stuff
use {
"nvim-neotest/neotest",
requires = {
"nvim-lua/plenary.nvim",
"nvim-treesitter/nvim-treesitter",
"nvim-neotest/neotest-python",
},
config = function()
require('neotest').setup {
adapters = {
require("neotest-python")({
dap = { justMyCode = false },
}),
},
}
end
}
2022-11-18 08:10:53 +00:00
-- Log file syntax highlighting
use('mtdl9/vim-log-highlighting')
2022-11-14 23:36:57 +00:00
-- Debugging
use('mfussenegger/nvim-dap') -- Main debugging plugin
use {
'rcarriga/nvim-dap-ui',
requires = { "mfussenegger/nvim-dap" },
config = function()
require('dapui').setup()
end
} -- Better debugging UI
use {
'theHamsta/nvim-dap-virtual-text',
config = function()
require("nvim-dap-virtual-text").setup()
end
} -- Virtual text for nvim-dap
2022-11-18 12:36:04 +00:00
-- Tab
use {
'romgrk/barbar.nvim',
2022-11-23 12:01:14 +00:00
requires = { 'kyazdani42/nvim-web-devicons' },
}
use {
"nvim-neorg/neorg",
run = ":Neorg sync-parsers", -- This is the important bit!
config = function()
require("neorg").setup {
load = {
["core.defaults"] = {}
}
}
end,
2022-11-18 12:36:04 +00:00
}
2022-11-14 23:36:57 +00:00
2022-11-25 20:34:58 +00:00
-- See hex colors
use {
"norcalli/nvim-colorizer.lua",
config = function ()
require'colorizer'.setup()
end
}
2022-11-14 23:36:57 +00:00
2022-11-10 19:49:34 +00:00
-- Automatically set up configuration after cloning packer.nvim
if packer_bootstrap then
require("packer").sync()
end
end)