dotfiles/lua/plugins.lua

154 lines
4.2 KiB
Lua
Raw Normal View History

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
use {'wbthomason/packer.nvim', opt = true}
-- Fuzzy finder
use {
'nvim-telescope/telescope.nvim',
requires = {{'nvim-lua/popup.nvim'}, {'nvim-lua/plenary.nvim'}}
}
2021-11-26 01:27:00 +01:00
vim.cmd('source ~/.config/nvim/lua/nvim-tree-config.vim')
use {
'kyazdani42/nvim-tree.lua',
requires = 'kyazdani42/nvim-web-devicons',
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,
open_on_setup = false,
ignore_ft_on_setup = {},
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,
git = {
ignore = true
},
diagnostics = {
enable = false,
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 = ':~',
special_files = { 'README.md', 'Makefile', 'MAKEFILE' },
icons = {
padding = ' ',
symlink_arrow = ' >> ',
show = {
git = true,
file = true,
folder = true,
folder_arrow = true
},
glyphs = {
default = '',
symlink = '',
git = {
unstaged = "",
staged = "",
unmerged = "-",
renamed = "",
untracked = "",
deleted = "",
ignored = ""
},
folder = {
arrow_open = "-",
arrow_closed = "|",
default = "",
open = "",
empty = "",
empty_open = "",
symlink = "",
symlink_open = "",
}
}
}
},
2021-12-26 12:08:52 +01:00
view = {
width = 30,
hide_root_folder = false,
side = 'left',
mappings = {
custom_only = false,
list = {}
}
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' }
-- Fugitive for Git
use { 'ray-x/lsp_signature.nvim' }
-- Airline status bar
use { 'vim-airline/vim-airline' }
use { 'vim-airline/vim-airline-themes' }
use { 'cespare/vim-toml' }
use { 'folke/trouble.nvim' }
use { 'glepnir/lspsaga.nvim' }
use { 'hrsh7th/nvim-compe' }
use { 'jacoborus/tender.vim' }
use { 'RRethy/vim-illuminate' }
use { 'rust-lang/rust.vim' }
use { 'scrooloose/nerdtree' }
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)