90 lines
2.4 KiB
Lua
90 lines
2.4 KiB
Lua
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'
|
|
|
|
use {
|
|
'nvim-lualine/lualine.nvim',
|
|
after = 'rose-pine',
|
|
} -- Fancier statusline
|
|
|
|
use 'numToStr/Comment.nvim' -- "gc" to comment visual regions/lines
|
|
|
|
use 'windwp/nvim-ts-autotag' -- autoclose html tags
|
|
|
|
use {
|
|
'VonHeikemen/lsp-zero.nvim',
|
|
requires = {
|
|
-- LSP Support
|
|
{ 'neovim/nvim-lspconfig' }, -- Required
|
|
{ 'williamboman/mason.nvim' }, -- Optional
|
|
{ 'williamboman/mason-lspconfig.nvim' }, -- Optional
|
|
|
|
-- Autocompletion
|
|
{ 'hrsh7th/nvim-cmp' }, -- Required
|
|
{ 'hrsh7th/cmp-nvim-lsp' }, -- Required
|
|
{ 'hrsh7th/cmp-buffer' }, -- Optional
|
|
{ 'hrsh7th/cmp-path' }, -- Optional
|
|
{ 'saadparwaiz1/cmp_luasnip' }, -- Optional
|
|
{ 'hrsh7th/cmp-nvim-lua' }, -- Optional
|
|
|
|
-- Snippets
|
|
{ 'L3MON4D3/LuaSnip' }, -- Required
|
|
{ 'rafamadriz/friendly-snippets' }, -- Optional
|
|
}
|
|
}
|
|
|
|
use {
|
|
'simrat39/rust-tools.nvim',
|
|
after = 'lsp-zero.nvim'
|
|
}
|
|
|
|
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)
|