-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathui.lua
More file actions
94 lines (84 loc) · 1.92 KB
/
ui.lua
File metadata and controls
94 lines (84 loc) · 1.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
return {
{
"folke/noice.nvim",
opts = function(_, opts)
opts.routes = opts.routes or {}
table.insert(opts.routes, {
filter = {
event = "notify",
kind = "info",
any = {
{ find = "Neo%-tree INFO] Toggling hidden files" },
{ find = "No information available" },
},
},
opts = { skip = true },
})
-- Enable border on notify box
-- opts.presets.lsp_doc_border = true
end,
},
{
"rcarriga/nvim-notify",
opts = {
timeout = 10000,
},
},
-- bufferline
{
"akinsho/bufferline.nvim",
keys = {
{ "<Tab>", "<Cmd>BufferLineCycleNext<CR>", desc = "Next tab" },
{ "<S-Tab>", "<Cmd>BufferLineCyclePrev<CR>", desc = "Prev tab" },
},
opts = {
options = {
mode = "buffers",
show_buffer_close_icons = false,
show_close_icon = false,
},
},
},
-- statusline
{
"nvim-lualine/lualine.nvim",
event = "VeryLazy",
opts = {
options = {
theme = "solarized_dark",
},
},
},
-- filename
{
"b0o/incline.nvim",
event = "VeryLazy",
priority = 1200,
config = function()
require("incline").setup({
window = {
margin = { vertical = 0, horizontal = 1 },
winhighlight = {
Normal = "Normal",
NormalNC = "Normal",
},
},
hide = {
cursorline = true,
},
render = function(props)
local filename = vim.fn.fnamemodify(vim.api.nvim_buf_get_name(props.buf), ":t")
if vim.bo[props.buf].modified then
filename = "[+]" .. filename
end
local icon, color = require("nvim-web-devicons").get_icon_color(filename)
return {
{ icon, guifg = color },
{ " " },
{ filename },
}
end,
})
end,
},
}