organizing a little bit
This commit is contained in:
70
lua/plugins/ui.lua
Normal file
70
lua/plugins/ui.lua
Normal file
@ -0,0 +1,70 @@
|
||||
return {
|
||||
{
|
||||
"nvim-telescope/telescope.nvim",
|
||||
dependencies = { "nvim-lua/plenary.nvim" },
|
||||
},
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
build = ":TSUpdate",
|
||||
},
|
||||
{ "mbbill/undotree" },
|
||||
{ "tpope/vim-fugitive" },
|
||||
{
|
||||
"nvim-tree/nvim-tree.lua",
|
||||
version = "*",
|
||||
dependencies = {
|
||||
"nvim-tree/nvim-web-devicons",
|
||||
},
|
||||
cmd = {
|
||||
"NvimTreeToggle",
|
||||
},
|
||||
opts = {
|
||||
update_focused_file = { enable = true },
|
||||
filters = {
|
||||
dotfiles = true,
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"rmagatti/auto-session",
|
||||
lazy = false,
|
||||
opts = {
|
||||
suppressed_dirs = { "~/", "~/Downloads", "/" },
|
||||
post_restore_cmds = {
|
||||
function()
|
||||
-- Restore nvim-tree after a session is restored
|
||||
local nvim_tree_api = require("nvim-tree.api")
|
||||
nvim_tree_api.tree.open()
|
||||
nvim_tree_api.tree.change_root(vim.fn.getcwd())
|
||||
nvim_tree_api.tree.reload()
|
||||
end,
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"nvim-lualine/lualine.nvim",
|
||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
||||
opts = {
|
||||
options = {
|
||||
theme = "jellybeans",
|
||||
sections = {
|
||||
lualine_a = { "mode" },
|
||||
lualine_b = { "branch", "diff", "diagnostics" },
|
||||
lualine_c = { "filename" },
|
||||
lualine_x = {
|
||||
{
|
||||
require("lazy.status"),
|
||||
cond = require("lazy.status").has_updates,
|
||||
color = { fg = "#ff9e64" },
|
||||
},
|
||||
"encoding",
|
||||
"fileformat",
|
||||
"filetype",
|
||||
},
|
||||
lualine_y = { "progress" },
|
||||
lualine_z = { "location" },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
Reference in New Issue
Block a user