1
Fork 0

Almost rewrote my entire config

This commit is contained in:
Matei Adriel 2022-12-27 20:45:43 +01:00
commit c5b355601e
51 changed files with 973 additions and 870 deletions
dotfiles/neovim/lua/my/plugins

View file

@ -1,23 +1,28 @@
local M = {}
local env = require("my.helpers.env")
function M.setup()
require('lualine').setup({
theme = vim.g.lualineTheme,
local M = {
"nvim-lualine/lualine.nvim",
event = "VeryLazy",
cond = env.vscode.not_active() and env.neovide.not_active(),
}
function M.config()
require("lualine").setup({
theme = "auto",
options = {
section_separators = { left = '', right = '' },
component_separators = { left = '', right = '' }
component_separators = "",
section_separators = { left = "", right = "" },
},
sections = {
lualine_a = { 'mode' },
lualine_b = { 'branch', 'diff', 'diagnostics' },
lualine_c = { 'filename' },
lualine_x = {},
-- lualine_y = {'encoding', 'fileformat', 'filetype'},
lualine_y = { 'filetype' },
lualine_z = { 'location' }
lualine_a = { "branch" },
lualine_b = { "filename" },
lualine_c = { "filetype" },
lualine_x = { "diagnostics" },
lualine_y = {},
lualine_z = {},
},
-- Integration with other plugins
extensions = { "nvim-tree" }
extensions = { "nvim-tree" },
})
end