nvim lualine for tabline, drop bufferline
This commit is contained in:
+21
-17
@@ -223,7 +223,7 @@ require("lazy").setup({
|
|||||||
options = { theme = "auto", globalstatus = false },
|
options = { theme = "auto", globalstatus = false },
|
||||||
extensions = { "fugitive" },
|
extensions = { "fugitive" },
|
||||||
sections = {
|
sections = {
|
||||||
lualine_a = { "mode" },
|
lualine_a = { { "mode", color = { bg = "goldenrod" } } },
|
||||||
lualine_b = { "branch" },
|
lualine_b = { "branch" },
|
||||||
lualine_c = {
|
lualine_c = {
|
||||||
{
|
{
|
||||||
@@ -238,12 +238,10 @@ require("lazy").setup({
|
|||||||
{
|
{
|
||||||
noice_status.command.get,
|
noice_status.command.get,
|
||||||
cond = noice_status.command.has,
|
cond = noice_status.command.has,
|
||||||
color = { fg = "#ff9e64" },
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
noice_status.mode.get,
|
noice_status.mode.get,
|
||||||
cond = noice_status.mode.has,
|
cond = noice_status.mode.has,
|
||||||
color = { fg = "#ff9e64" },
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
lualine_y = { "filetype", "progress" },
|
lualine_y = { "filetype", "progress" },
|
||||||
@@ -265,19 +263,25 @@ require("lazy").setup({
|
|||||||
lualine_y = { "filetype", "progress" },
|
lualine_y = { "filetype", "progress" },
|
||||||
lualine_z = { "location" },
|
lualine_z = { "location" },
|
||||||
},
|
},
|
||||||
})
|
tabline = {
|
||||||
end,
|
lualine_a = {
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"akinsho/nvim-bufferline.lua",
|
"buffers",
|
||||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
symbols = { alternate_file = "" },
|
||||||
config = function()
|
buffers_color = {
|
||||||
require("bufferline").setup({ options = { diagnostics = "nvim_lsp" } })
|
-- Same values as the general color option can be used here.
|
||||||
local map = vim.keymap.set
|
active = { bg = "goldenrod" }, -- Color for active buffer.
|
||||||
map("n", "<M-K>", "<cmd>BufferLineCyclePrev<cr>", { noremap = true, silent = true })
|
-- inactive = { bg = "#009688" }, -- Color for inactive buffer.
|
||||||
map("n", "<M-J>", "<cmd>BufferLineCycleNext<cr>", { noremap = true, silent = true })
|
},
|
||||||
map("n", "<M-P>", "<cmd>BufferLineMovePrev<cr>", { noremap = true, silent = true })
|
},
|
||||||
map("n", "<M-N>", "<cmd>BufferLineMoveNext<cr>", { noremap = true, silent = true })
|
},
|
||||||
|
lualine_b = {},
|
||||||
|
lualine_c = {},
|
||||||
|
lualine_x = {},
|
||||||
|
lualine_y = {},
|
||||||
|
lualine_z = { "tabs" },
|
||||||
|
},
|
||||||
|
})
|
||||||
end,
|
end,
|
||||||
}, -- git related plugins
|
}, -- git related plugins
|
||||||
{
|
{
|
||||||
@@ -393,8 +397,8 @@ require("lazy").setup({
|
|||||||
highlight = { keyword = "bg", pattern = [[<(KEYWORDS)\s*]] },
|
highlight = { keyword = "bg", pattern = [[<(KEYWORDS)\s*]] },
|
||||||
search = { pattern = [[\b(KEYWORDS)\b]] },
|
search = { pattern = [[\b(KEYWORDS)\b]] },
|
||||||
colors = {
|
colors = {
|
||||||
error = { "#E15030" },
|
error = { "#ba1a1a" },
|
||||||
warning = { "#FBBF24" },
|
warning = { "#FFC107" },
|
||||||
info = { "#91BED0" },
|
info = { "#91BED0" },
|
||||||
hint = { "#10B981" },
|
hint = { "#10B981" },
|
||||||
default = { "#91D0C1" },
|
default = { "#91D0C1" },
|
||||||
|
|||||||
Reference in New Issue
Block a user