69 lines
1.8 KiB
Lua
69 lines
1.8 KiB
Lua
vim.cmd [[packadd packer.nvim]]
|
|
|
|
return require('packer').startup(function(use)
|
|
-- Packer can manage itself
|
|
use 'wbthomason/packer.nvim'
|
|
|
|
-- External dependencies management
|
|
use "williamboman/mason.nvim"
|
|
|
|
-- Gruvbox theme
|
|
use "sainnhe/gruvbox-material"
|
|
|
|
-- A way saner buffer closing implementation
|
|
use "ojroques/nvim-bufdel"
|
|
|
|
-- Directory tree
|
|
use {
|
|
"nvim-neo-tree/neo-tree.nvim",
|
|
branch = "v2.x",
|
|
requires = {
|
|
"nvim-lua/plenary.nvim",
|
|
"kyazdani42/nvim-web-devicons",
|
|
"MunifTanjim/nui.nvim",
|
|
},
|
|
config = function() require("neo-tree").setup({
|
|
default_component_configs = {
|
|
window = {
|
|
position = "left",
|
|
width = 64,
|
|
},
|
|
},
|
|
}) end,
|
|
}
|
|
|
|
-- Tabs
|
|
use {
|
|
"akinsho/bufferline.nvim", tag = "v2.*", requires = "kyazdani42/nvim-web-devicons",
|
|
config = function() require("bufferline").setup({
|
|
options = {
|
|
close_command = "BufDel %d",
|
|
right_mouse_command = "BufDel %d",
|
|
offsets = {
|
|
{
|
|
filetype = "neo-tree",
|
|
text = "Files",
|
|
highlight = "Directory",
|
|
text_align = "left",
|
|
}
|
|
},
|
|
separator_style = "slant",
|
|
}
|
|
}) end,
|
|
}
|
|
|
|
-- Terminal
|
|
use {
|
|
"akinsho/toggleterm.nvim", tag = "v2.*",
|
|
config = function() require("toggleterm").setup({
|
|
open_mapping = [[<c-\>]],
|
|
persist_size = false,
|
|
shade_terminals = false,
|
|
hide_numbers = false,
|
|
winbar = {
|
|
enabled = false,
|
|
},
|
|
}) end,
|
|
}
|
|
end)
|