dotfiles-pub/common/nvim/lua/cc/packer.lua

140 lines
2.9 KiB
Lua
Raw Normal View History

2023-05-26 03:48:59 +00:00
vim.cmd("packadd packer.nvim")
local packer = require("packer")
return packer.startup(function(use)
use("wbthomason/packer.nvim")
2023-06-13 04:24:08 +00:00
-- {{{ color scheme
use("owozsh/amora")
-- }}}
-- {{{ treesitter
2023-05-26 03:48:59 +00:00
use(
"nvim-treesitter/nvim-treesitter",
{run = ":TSUpdate"}
)
2023-06-13 04:24:08 +00:00
use("nvim-treesitter/playground")
use("nvim-treesitter/nvim-treesitter-context")
2023-06-13 04:24:08 +00:00
use("windwp/nvim-ts-autotag")
use("m-demare/hlargs.nvim")
-- }}}
2023-05-26 03:48:59 +00:00
2023-06-13 04:24:08 +00:00
-- {{{ lsp
2023-05-26 03:48:59 +00:00
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
},
})
2023-06-13 04:24:08 +00:00
use("jose-elias-alvarez/null-ls.nvim")
use("MunifTanjim/prettier.nvim")
2023-07-10 03:47:42 +00:00
--use("ray-x/lsp_signature.nvim")
2023-06-13 04:24:08 +00:00
-- }}}
2023-05-26 03:48:59 +00:00
2023-06-13 04:24:08 +00:00
-- {{{ misc
use({
"tpope/vim-fugitive",
config = function()
vim.keymap.set("n", "<leader>gs", vim.cmd.Git)
end
})
2023-05-26 03:48:59 +00:00
use("lukas-reineke/indent-blankline.nvim")
2023-06-13 04:24:08 +00:00
use({
"ntpeters/vim-better-whitespace",
config = function()
vim.g.better_whitespace_enable = true
vim.g.strip_whitespace_on_save = true
end
})
use({
"andweeb/presence.nvim",
config = function()
vim.g.presence_buttons = false
end
})
use({
"NvChad/nvim-colorizer.lua",
config = function()
require("colorizer").setup()
end
})
2023-07-10 03:47:42 +00:00
--[[use({
2023-06-13 04:24:08 +00:00
"yamatsum/nvim-cursorline",
config = function()
require("nvim-cursorline").setup({
cursorline = {
enable = false,
},
cursorword = {
enable = true,
},
})
end
2023-07-10 03:47:42 +00:00
})--]]
2023-06-13 04:24:08 +00:00
use({
"windwp/nvim-autopairs",
config = function()
require("nvim-autopairs").setup()
end
})
use("jghauser/mkdir.nvim")
use({
"kylechui/nvim-surround",
config = function()
require("nvim-surround").setup()
end
})
-- }}}
-- {{{ ui
use({
"nvim-telescope/telescope.nvim",
tag = "0.1.1",
requires = {
{"nvim-lua/plenary.nvim"},
},
})
use({
"mbbill/undotree",
config = function()
vim.keymap.set("n", "<leader>u", vim.cmd.UndotreeToggle)
end
})
2023-05-26 03:48:59 +00:00
use("romgrk/barbar.nvim")
use("nvim-tree/nvim-tree.lua")
use("nvim-lualine/lualine.nvim")
2023-06-13 04:24:08 +00:00
use({
"folke/which-key.nvim",
config = function()
vim.o.timeout = true
vim.o.timeoutlen = 300
require("which-key").setup()
end
})
-- }}}
-- this is only here to shut up the message on startup
require("barbar").setup({
icons = {
filetype = {
enabled = false,
},
},
})
2023-05-26 03:48:59 +00:00
end)