nvim config stolen from @Lukacms
This commit is contained in:
84
nvim/lua/plugins/ui.lua
Normal file
84
nvim/lua/plugins/ui.lua
Normal file
@@ -0,0 +1,84 @@
|
||||
return {
|
||||
{
|
||||
"hoob3rt/lualine.nvim",
|
||||
opts = function()
|
||||
local colors = require("highlights").colors
|
||||
|
||||
local mode_highlight = function(highlight)
|
||||
return {
|
||||
a = { bg = highlight, fg = colors.eclipse, gui = "bold" },
|
||||
b = { bg = colors.eclipse, fg = highlight },
|
||||
c = { bg = colors.nero, fg = colors.light_grey },
|
||||
}
|
||||
end
|
||||
|
||||
local theme = {
|
||||
normal = mode_highlight(colors.picton_blue),
|
||||
insert = mode_highlight(colors.straw),
|
||||
visual = mode_highlight(colors.glabe_green),
|
||||
}
|
||||
|
||||
local diagnostics = {
|
||||
"diagnostics",
|
||||
sources = { "nvim_diagnostic" },
|
||||
color_error = colors.sunset_orange,
|
||||
color_warn = colors.equator,
|
||||
color_info = colors.mountain_meadow,
|
||||
color_hint = colors.light_grey,
|
||||
symbols = { error = " ", warn = " ", info = " ", hint = " " },
|
||||
}
|
||||
|
||||
local winbar_filename = {
|
||||
"filename",
|
||||
path = 1,
|
||||
shorting_target = 20,
|
||||
}
|
||||
|
||||
require("lualine").setup({
|
||||
tabline = {
|
||||
lualine_x = { require("tabline").tabline_tabs },
|
||||
},
|
||||
winbar = { lualine_c = { winbar_filename } },
|
||||
inactive_winbar = { lualine_c = { winbar_filename } },
|
||||
status_line = {
|
||||
lualine_a = { "mode" },
|
||||
lualine_b = { "branch", diagnostics },
|
||||
lualine_c = { "filename" },
|
||||
lualine_x = { "encoding", "fileformat" },
|
||||
lualine_y = { "filetype" },
|
||||
lualine_z = { "location", "progress" },
|
||||
},
|
||||
|
||||
options = {
|
||||
theme = theme,
|
||||
disabled_filetypes = { "packer", "neo-tree" },
|
||||
ignore_focus = { "neo-tree" },
|
||||
globalstatus = true,
|
||||
},
|
||||
extensions = {},
|
||||
})
|
||||
end,
|
||||
dependencies = { { "nvim-tree/nvim-web-devicons" } },
|
||||
},
|
||||
{
|
||||
"keklleo/tabline.nvim",
|
||||
opts = { enable = false },
|
||||
dependencies = {
|
||||
{ "hoob3rt/lualine.nvim" },
|
||||
{ "nvim-tree/nvim-web-devicons" },
|
||||
},
|
||||
},
|
||||
|
||||
{ "nvim-tree/nvim-web-devicons", lazy = true },
|
||||
|
||||
{ "norcalli/nvim-colorizer.lua", opts = { "*" } },
|
||||
|
||||
{ "luukvbaal/stabilize.nvim" },
|
||||
|
||||
{
|
||||
"windwp/nvim-autopairs",
|
||||
config = function(plugin, opts)
|
||||
require("nvim-autopairs").setup()
|
||||
end,
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user