2023-03-10 14:58:22 +00:00
|
|
|
vim.cmd [[packadd packer.nvim]]
|
|
|
|
|
|
|
|
return require('packer').startup(function(use)
|
|
|
|
-- Packer can manage itself
|
|
|
|
use 'wbthomason/packer.nvim'
|
|
|
|
|
|
|
|
use {
|
|
|
|
'nvim-telescope/telescope.nvim', tag = '0.1.0',
|
|
|
|
-- or , branch = '0.1.x',
|
|
|
|
requires = { 'nvim-lua/plenary.nvim' }
|
|
|
|
}
|
|
|
|
|
|
|
|
use {
|
|
|
|
'nvim-telescope/telescope-fzf-native.nvim',
|
|
|
|
run = 'make',
|
|
|
|
cond = vim.fn.executable 'make' == 1
|
|
|
|
}
|
|
|
|
|
|
|
|
use {
|
|
|
|
'rose-pine/neovim',
|
|
|
|
as = 'rose-pine',
|
|
|
|
}
|
|
|
|
|
|
|
|
use('nvim-treesitter/nvim-treesitter', { run = ':TSUpdate' })
|
|
|
|
use 'nvim-treesitter/playground'
|
|
|
|
|
|
|
|
-- Harpoon is fun
|
|
|
|
use 'ThePrimeagen/harpoon'
|
|
|
|
|
|
|
|
-- mmm
|
|
|
|
use 'mbbill/undotree'
|
|
|
|
|
|
|
|
-- git
|
|
|
|
use 'tpope/vim-fugitive'
|
|
|
|
use 'lewis6991/gitsigns.nvim'
|
|
|
|
|
2023-03-19 06:49:58 +00:00
|
|
|
use {
|
|
|
|
'nvim-lualine/lualine.nvim',
|
|
|
|
after = 'rose-pine',
|
|
|
|
} -- Fancier statusline
|
|
|
|
|
|
|
|
use 'numToStr/Comment.nvim' -- "gc" to comment visual regions/lines
|
2023-03-10 14:58:22 +00:00
|
|
|
|
2023-03-19 06:49:58 +00:00
|
|
|
use 'windwp/nvim-ts-autotag' -- autoclose html tags
|
2023-03-10 14:58:22 +00:00
|
|
|
|
|
|
|
use {
|
|
|
|
'VonHeikemen/lsp-zero.nvim',
|
|
|
|
requires = {
|
|
|
|
-- LSP Support
|
2023-03-19 06:49:58 +00:00
|
|
|
{ 'neovim/nvim-lspconfig' }, -- Required
|
|
|
|
{ 'williamboman/mason.nvim' }, -- Optional
|
2023-03-10 14:58:22 +00:00
|
|
|
{ 'williamboman/mason-lspconfig.nvim' }, -- Optional
|
|
|
|
|
|
|
|
-- Autocompletion
|
2023-03-19 06:49:58 +00:00
|
|
|
{ 'hrsh7th/nvim-cmp' }, -- Required
|
|
|
|
{ 'hrsh7th/cmp-nvim-lsp' }, -- Required
|
|
|
|
{ 'hrsh7th/cmp-buffer' }, -- Optional
|
|
|
|
{ 'hrsh7th/cmp-path' }, -- Optional
|
2023-03-10 14:58:22 +00:00
|
|
|
{ 'saadparwaiz1/cmp_luasnip' }, -- Optional
|
2023-03-19 06:49:58 +00:00
|
|
|
{ 'hrsh7th/cmp-nvim-lua' }, -- Optional
|
2023-03-10 14:58:22 +00:00
|
|
|
|
|
|
|
-- Snippets
|
2023-03-19 06:49:58 +00:00
|
|
|
{ 'L3MON4D3/LuaSnip' }, -- Required
|
2023-03-10 14:58:22 +00:00
|
|
|
{ 'rafamadriz/friendly-snippets' }, -- Optional
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
use {
|
|
|
|
"folke/which-key.nvim",
|
|
|
|
config = function()
|
|
|
|
vim.o.timeout = true
|
|
|
|
vim.o.timeoutlen = 300
|
|
|
|
require("which-key").setup {
|
|
|
|
-- your configuration comes here
|
|
|
|
-- or leave it empty to use the default settings
|
|
|
|
-- refer to the configuration section below
|
|
|
|
}
|
|
|
|
end
|
|
|
|
}
|
|
|
|
|
|
|
|
use({
|
|
|
|
'Wansmer/treesj',
|
|
|
|
requires = { 'nvim-treesitter' },
|
|
|
|
})
|
|
|
|
end)
|