fix(nvim): nvim theme
This commit is contained in:
parent
cc586564bf
commit
81ed3b521c
@ -1,32 +1,11 @@
|
|||||||
return {
|
return {
|
||||||
"ellisonleao/gruvbox.nvim",
|
"sainnhe/gruvbox-material",
|
||||||
|
lazy = false,
|
||||||
priority = 1000,
|
priority = 1000,
|
||||||
config = function()
|
config = function()
|
||||||
require("gruvbox").setup({
|
-- Optionally configure and load the colorscheme
|
||||||
terminal_colors = true, -- add neovim terminal colors
|
-- directly inside the plugin declaration.
|
||||||
undercurl = true,
|
vim.g.gruvbox_material_enable_italic = true
|
||||||
underline = true,
|
vim.cmd.colorscheme("gruvbox-material")
|
||||||
bold = true,
|
|
||||||
italic = {
|
|
||||||
strings = true,
|
|
||||||
emphasis = true,
|
|
||||||
comments = true,
|
|
||||||
operators = false,
|
|
||||||
folds = true,
|
|
||||||
},
|
|
||||||
strikethrough = true,
|
|
||||||
invert_selection = false,
|
|
||||||
invert_signs = false,
|
|
||||||
invert_tabline = false,
|
|
||||||
invert_intend_guides = false,
|
|
||||||
inverse = true, -- invert background for search, diffs, statuslines and errors
|
|
||||||
contrast = "", -- can be "hard", "soft" or empty string
|
|
||||||
palette_overrides = {},
|
|
||||||
overrides = {},
|
|
||||||
dim_inactive = false,
|
|
||||||
transparent_mode = false,
|
|
||||||
})
|
|
||||||
vim.o.background = "dark"
|
|
||||||
vim.cmd("colorscheme gruvbox")
|
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
@ -42,6 +42,16 @@ return {
|
|||||||
-- Or, specify all three
|
-- Or, specify all three
|
||||||
Outline = { event = "BufWinLeave", text = "symbols-outline", align = "right" },
|
Outline = { event = "BufWinLeave", text = "symbols-outline", align = "right" },
|
||||||
},
|
},
|
||||||
|
custom_buffer_name = function(bufnr)
|
||||||
|
local filetype = vim.api.nvim_buf_get_option(bufnr, "filetype")
|
||||||
|
if filetype == "markdown" and vim.b[bufnr].obsidian_note then
|
||||||
|
local note = vim.b[bufnr].obsidian_note
|
||||||
|
return note.title
|
||||||
|
or table.concat(note.aliases, ", ")
|
||||||
|
or vim.fn.fnamemodify(vim.api.nvim_buf_get_name(bufnr), ":t:r")
|
||||||
|
end
|
||||||
|
return vim.fn.fnamemodify(vim.api.nvim_buf_get_name(bufnr), ":t")
|
||||||
|
end,
|
||||||
},
|
},
|
||||||
version = "^1.0.0", -- optional: only update when a new 1.x version is released
|
version = "^1.0.0", -- optional: only update when a new 1.x version is released
|
||||||
}
|
}
|
||||||
|
@ -4,32 +4,33 @@ return {
|
|||||||
config = function()
|
config = function()
|
||||||
require("lualine").setup({
|
require("lualine").setup({
|
||||||
options = {
|
options = {
|
||||||
theme = "iceberg_dark",
|
icons_enabled = true, -- Включить иконки
|
||||||
component_separators = "",
|
theme = "gruvbox-material",
|
||||||
section_separators = { left = "", right = "" },
|
component_separators = { left = " ", right = " " },
|
||||||
|
section_separators = { left = " ", right = " " },
|
||||||
|
disabled_filetypes = { -- Отключить lualine для определённых типов файлов
|
||||||
|
statusline = {},
|
||||||
|
winbar = {},
|
||||||
|
},
|
||||||
|
-- always_divide_middle = true,
|
||||||
|
globalstatus = true, -- Один статусбар для всех окон
|
||||||
},
|
},
|
||||||
sections = {
|
sections = {
|
||||||
lualine_a = { { "mode", separator = { left = "" }, right_padding = 2 } },
|
lualine_a = { "mode" }, -- Режим (Normal, Insert, etc.)
|
||||||
lualine_b = { "filename", "branch" },
|
lualine_b = { "branch", "diagnostics" }, -- Git и диагностика
|
||||||
lualine_c = {
|
lualine_c = { "filename" }, -- Имя файла
|
||||||
"%=", --[[ add your center compoentnts here in place of this comment ]]
|
lualine_x = { "fileformat", "filetype" }, -- Кодировка, формат, тип файла
|
||||||
},
|
lualine_y = { "progress" }, -- Прогресс в файле
|
||||||
lualine_x = {},
|
lualine_z = { "location" }, -- Положение курсора
|
||||||
lualine_y = { "filetype", "progress" },
|
|
||||||
lualine_z = {
|
|
||||||
{ "location", separator = { right = "" }, left_padding = 2 },
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
inactive_sections = {
|
inactive_sections = {
|
||||||
lualine_a = { "filename" },
|
lualine_a = {},
|
||||||
lualine_b = {},
|
lualine_b = {},
|
||||||
lualine_c = {},
|
lualine_c = { "filename" },
|
||||||
lualine_x = {},
|
lualine_x = { "location" },
|
||||||
lualine_y = {},
|
lualine_y = {},
|
||||||
lualine_z = { "location" },
|
lualine_z = {},
|
||||||
},
|
},
|
||||||
tabline = {},
|
|
||||||
extensions = {},
|
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
@ -58,7 +58,9 @@ return {
|
|||||||
local api = require("nvim-tree.api")
|
local api = require("nvim-tree.api")
|
||||||
vim.keymap.set("n", "<leader>e", api.tree.toggle, { desc = "[E]xplorer" })
|
vim.keymap.set("n", "<leader>e", api.tree.toggle, { desc = "[E]xplorer" })
|
||||||
vim.keymap.set("n", "<leader>E", function()
|
vim.keymap.set("n", "<leader>E", function()
|
||||||
|
-- api.tree.open() -- Просто открываем дерево
|
||||||
api.tree.find_file({ open = true, focus = true })
|
api.tree.find_file({ open = true, focus = true })
|
||||||
|
-- api.tree.find_file({ focus = true })
|
||||||
end, { desc = "Focus file in [E]xplorer" })
|
end, { desc = "Focus file in [E]xplorer" })
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user