2021-11-25 22:10:31 +01:00
|
|
|
return require('packer').startup(function()
|
2021-11-26 01:27:00 +01:00
|
|
|
|
2021-11-25 22:10:31 +01:00
|
|
|
-- Packer can manage itself as an optional plugin
|
2023-07-27 17:40:14 +02:00
|
|
|
use {'wbthomason/packer.nvim', opt = true }
|
|
|
|
|
|
|
|
use { 'weilbith/nvim-code-action-menu', cmd = 'CodeActionMenu' }
|
2021-11-25 22:10:31 +01:00
|
|
|
|
|
|
|
-- Fuzzy finder
|
|
|
|
use {
|
|
|
|
'nvim-telescope/telescope.nvim',
|
|
|
|
requires = {{'nvim-lua/popup.nvim'}, {'nvim-lua/plenary.nvim'}}
|
|
|
|
}
|
|
|
|
|
2023-07-25 18:25:24 +02:00
|
|
|
use 'nvim-treesitter/nvim-treesitter'
|
|
|
|
|
2021-11-26 01:27:00 +01:00
|
|
|
use {
|
2023-02-24 22:45:49 +01:00
|
|
|
'nvim-tree/nvim-tree.lua',
|
|
|
|
requires = 'nvim-tree/nvim-web-devicons',
|
2021-11-26 01:27:00 +01:00
|
|
|
config = function() require'nvim-tree'.setup {
|
2022-11-16 01:11:34 +01:00
|
|
|
create_in_closed_folder = false,
|
2021-12-26 12:08:52 +01:00
|
|
|
disable_netrw = true,
|
|
|
|
hijack_netrw = true,
|
2022-11-16 01:11:34 +01:00
|
|
|
respect_buf_cwd = true,
|
2021-12-26 12:08:52 +01:00
|
|
|
open_on_tab = false,
|
|
|
|
hijack_cursor = false,
|
|
|
|
update_cwd = false,
|
|
|
|
diagnostics = {
|
2023-02-24 22:45:49 +01:00
|
|
|
enable = true,
|
2021-12-26 12:08:52 +01:00
|
|
|
icons = {
|
|
|
|
hint = "",
|
|
|
|
info = "",
|
|
|
|
warning = "",
|
|
|
|
error = "",
|
|
|
|
}
|
|
|
|
},
|
|
|
|
update_focused_file = {
|
|
|
|
enable = false,
|
|
|
|
update_cwd = false,
|
|
|
|
ignore_list = {}
|
|
|
|
},
|
|
|
|
system_open = {
|
|
|
|
cmd = nil,
|
|
|
|
args = {}
|
|
|
|
},
|
|
|
|
filters = {
|
|
|
|
dotfiles = false,
|
|
|
|
custom = {}
|
|
|
|
},
|
2022-11-16 01:11:34 +01:00
|
|
|
actions = {
|
|
|
|
open_file = {
|
|
|
|
window_picker = {
|
|
|
|
enable = false,
|
|
|
|
exclude = {
|
|
|
|
filetype = { 'notify', 'packer', 'qf' },
|
|
|
|
buftype = { 'terminal' }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
quit_on_open = false,
|
|
|
|
resize_window = false
|
|
|
|
}
|
|
|
|
},
|
|
|
|
renderer = {
|
|
|
|
indent_markers = {
|
|
|
|
enable = true
|
|
|
|
},
|
|
|
|
add_trailing = true,
|
|
|
|
group_empty = true,
|
|
|
|
highlight_opened_files = "all",
|
|
|
|
highlight_git = true,
|
|
|
|
root_folder_modifier = ':~',
|
2023-05-16 01:22:20 +02:00
|
|
|
special_files = { 'README.md', 'Makefile', 'MAKEFILE' }
|
2022-11-16 01:11:34 +01:00
|
|
|
},
|
2021-12-26 12:08:52 +01:00
|
|
|
view = {
|
|
|
|
hide_root_folder = false,
|
|
|
|
mappings = {
|
|
|
|
custom_only = false,
|
|
|
|
list = {}
|
2023-02-24 22:45:49 +01:00
|
|
|
},
|
|
|
|
float = {
|
|
|
|
enable = true,
|
|
|
|
quit_on_focus_loss = true,
|
|
|
|
open_win_config = {
|
|
|
|
relative = "editor",
|
|
|
|
border = "rounded",
|
|
|
|
width = 30,
|
|
|
|
height = 30,
|
|
|
|
row = 1,
|
|
|
|
col = 1,
|
|
|
|
}
|
2021-12-26 12:08:52 +01:00
|
|
|
}
|
2021-11-26 01:27:00 +01:00
|
|
|
}
|
|
|
|
} end
|
2022-11-16 01:11:34 +01:00
|
|
|
}
|
2021-11-26 01:27:00 +01:00
|
|
|
|
2021-11-25 22:10:31 +01:00
|
|
|
-- LSP and completion
|
|
|
|
use { 'neovim/nvim-lspconfig' }
|
|
|
|
use { 'nvim-lua/completion-nvim' }
|
|
|
|
|
|
|
|
-- Lua development
|
|
|
|
use { 'tjdevries/nlua.nvim' }
|
|
|
|
|
|
|
|
|
|
|
|
-- Vim dispatch
|
|
|
|
use { 'tpope/vim-dispatch' }
|
|
|
|
|
|
|
|
-- Fugitive for Git
|
|
|
|
use { 'tpope/vim-fugitive' }
|
|
|
|
|
|
|
|
-- Airline status bar
|
|
|
|
use { 'vim-airline/vim-airline' }
|
|
|
|
use { 'vim-airline/vim-airline-themes' }
|
|
|
|
|
|
|
|
use { 'cespare/vim-toml' }
|
|
|
|
use { 'folke/trouble.nvim' }
|
2023-09-24 01:19:07 +02:00
|
|
|
use { 'hrsh7th/nvim-cmp' }
|
2021-11-25 22:10:31 +01:00
|
|
|
use { 'jacoborus/tender.vim' }
|
|
|
|
use { 'RRethy/vim-illuminate' }
|
|
|
|
use { 'rust-lang/rust.vim' }
|
|
|
|
use { 'vim-scripts/DrawIt' }
|
2022-06-11 16:39:13 +02:00
|
|
|
use { 'gleam-lang/gleam.vim' }
|
2021-11-25 22:10:31 +01:00
|
|
|
|
|
|
|
end)
|