2022-11-01 17:34:57 +01:00
|
|
|
return require('packer').startup(function()
|
|
|
|
-- automatic rebuild on plugins.lua change
|
|
|
|
vim.cmd([[
|
|
|
|
augroup packer_user_config
|
|
|
|
autocmd!
|
|
|
|
autocmd BufWritePost plugins.lua source <afile> | PackerCompile
|
|
|
|
augroup end
|
|
|
|
]])
|
|
|
|
|
|
|
|
use 'wbthomason/packer.nvim'
|
|
|
|
use 'RRethy/nvim-base16'
|
|
|
|
use 'tpope/vim-commentary'
|
|
|
|
use {
|
|
|
|
'nvim-lualine/lualine.nvim',
|
|
|
|
requires = { 'kyazdani42/nvim-web-devicons', opt = true },
|
|
|
|
config = function()
|
|
|
|
require('lualine').setup()
|
|
|
|
vim.o.showmode = false
|
|
|
|
end
|
|
|
|
}
|
|
|
|
use {
|
|
|
|
'lewis6991/gitsigns.nvim',
|
|
|
|
config = function()
|
|
|
|
require('gitsigns').setup()
|
|
|
|
end
|
|
|
|
}
|
|
|
|
use {
|
|
|
|
'junegunn/goyo.vim',
|
|
|
|
config = function()
|
|
|
|
vim.keymap.set('n', '<leader>f', ':lua goyo_toggle()<cr>:Goyo<cr>')
|
|
|
|
end
|
|
|
|
}
|
|
|
|
|
|
|
|
-- completion
|
|
|
|
use 'hrsh7th/nvim-cmp'
|
|
|
|
use 'hrsh7th/cmp-buffer'
|
|
|
|
use 'hrsh7th/cmp-path'
|
|
|
|
use 'hrsh7th/cmp-cmdline'
|
|
|
|
use 'saadparwaiz1/cmp_luasnip'
|
|
|
|
|
|
|
|
-- snippets
|
|
|
|
use 'L3MON4D3/LuaSnip'
|
|
|
|
use 'rafamadriz/friendly-snippets'
|
|
|
|
|
2022-11-29 13:23:33 +01:00
|
|
|
-- emmet
|
|
|
|
use 'mattn/emmet-vim'
|
|
|
|
|
2022-11-01 17:34:57 +01:00
|
|
|
-- LSP
|
|
|
|
use 'neovim/nvim-lspconfig'
|
2022-11-29 13:25:43 +01:00
|
|
|
|
|
|
|
-- LSP, DAP, linters and formatters
|
|
|
|
-- use 'jose-elias-alvarez/null-ls.nvim'
|
|
|
|
use {
|
|
|
|
'dense-analysis/ale',
|
|
|
|
config = function()
|
|
|
|
vim.cmd [[ g:ale_sign_column_always = 1 ]]
|
|
|
|
end
|
|
|
|
}
|
|
|
|
|
|
|
|
-- management for LSP, DAP, linters and formatters
|
2022-11-01 17:34:57 +01:00
|
|
|
use {
|
|
|
|
'williamboman/mason.nvim',
|
|
|
|
config = function()
|
2022-11-29 13:25:43 +01:00
|
|
|
require('mason').setup({
|
|
|
|
ui = {
|
|
|
|
icons = {
|
|
|
|
package_installed = "✓",
|
|
|
|
package_pending = "➜",
|
|
|
|
package_uninstalled = "✗"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
2022-11-01 17:34:57 +01:00
|
|
|
end
|
|
|
|
}
|
|
|
|
use 'williamboman/mason-lspconfig.nvim'
|
|
|
|
|
|
|
|
end)
|