2023-05-21 14:02:07 +00:00
|
|
|
return {
|
|
|
|
{
|
|
|
|
"sainnhe/gruvbox-material",
|
|
|
|
config = function(_, _)
|
|
|
|
vim.o.termguicolors = true
|
|
|
|
vim.g.background = "dark"
|
|
|
|
vim.cmd("colorscheme gruvbox-material")
|
|
|
|
end
|
|
|
|
},
|
2023-07-12 03:42:17 +00:00
|
|
|
{
|
|
|
|
"lukas-reineke/indent-blankline.nvim",
|
|
|
|
main = "indent_blankline",
|
|
|
|
opts = {
|
|
|
|
show_current_context = true,
|
|
|
|
show_current_context_start = true,
|
|
|
|
},
|
|
|
|
},
|
2023-07-12 03:41:09 +00:00
|
|
|
{
|
|
|
|
"famiu/bufdelete.nvim",
|
|
|
|
lazy = false,
|
|
|
|
keys = {
|
|
|
|
{ "<F3>", "<cmd>Bdelete<CR>", mode = "n" },
|
|
|
|
},
|
|
|
|
},
|
2023-05-21 14:02:07 +00:00
|
|
|
{
|
|
|
|
"karb94/neoscroll.nvim",
|
2023-05-22 14:33:21 +00:00
|
|
|
enabled = full_feature,
|
2023-05-21 14:02:07 +00:00
|
|
|
main = "neoscroll",
|
|
|
|
opts = { },
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"akinsho/bufferline.nvim",
|
2023-05-22 14:33:21 +00:00
|
|
|
enabled = full_feature,
|
2023-05-21 14:02:07 +00:00
|
|
|
main = "bufferline",
|
|
|
|
opts = {
|
|
|
|
options = {
|
|
|
|
numbers = "both",
|
|
|
|
diagnostics = "nvim_lsp",
|
|
|
|
separator_style = "slant",
|
|
|
|
offsets = {
|
|
|
|
{
|
|
|
|
filetype = "NvimTree",
|
|
|
|
text = "File Explorer",
|
|
|
|
text_align = "center",
|
|
|
|
separator = true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
hover = {
|
|
|
|
delay = 200,
|
|
|
|
reveal = { "close" },
|
|
|
|
},
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"nvim-lualine/lualine.nvim",
|
2023-05-22 14:33:21 +00:00
|
|
|
enabled = full_feature,
|
2023-05-21 14:02:07 +00:00
|
|
|
dependencies = {
|
|
|
|
"nvim-tree/nvim-web-devicons"
|
|
|
|
},
|
|
|
|
main = "lualine",
|
|
|
|
opts = { },
|
|
|
|
init = function(_)
|
|
|
|
vim.o.mousemoveevent = true
|
|
|
|
end,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"nvim-tree/nvim-tree.lua",
|
2023-05-22 14:33:21 +00:00
|
|
|
enabled = full_feature,
|
2023-05-21 14:02:07 +00:00
|
|
|
dependencies = {
|
|
|
|
"nvim-tree/nvim-web-devicons"
|
|
|
|
},
|
|
|
|
main = "nvim-tree",
|
|
|
|
opts = { },
|
|
|
|
lazy = false,
|
|
|
|
keys = {
|
|
|
|
{ "<leader>t", "<cmd>NvimTreeFocus<CR>", mode = "n" },
|
|
|
|
},
|
|
|
|
init = function(_)
|
|
|
|
vim.g.loaded_netrw = 1
|
|
|
|
vim.g.loaded_netrwPlugin = 1
|
2023-07-12 03:50:36 +00:00
|
|
|
|
|
|
|
vim.api.nvim_create_autocmd("QuitPre", {
|
|
|
|
callback = function()
|
|
|
|
local invalid_win = {}
|
|
|
|
local wins = vim.api.nvim_list_wins()
|
|
|
|
for _, w in ipairs(wins) do
|
|
|
|
local bufname = vim.api.nvim_buf_get_name(vim.api.nvim_win_get_buf(w))
|
|
|
|
if bufname:match("NvimTree_") ~= nil then
|
|
|
|
table.insert(invalid_win, w)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
if #invalid_win == #wins - 1 then
|
|
|
|
-- Should quit, so we close all invalid windows.
|
|
|
|
for _, w in ipairs(invalid_win) do vim.api.nvim_win_close(w, true) end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
})
|
2023-05-21 14:02:07 +00:00
|
|
|
end,
|
|
|
|
}
|
|
|
|
}
|