Almost rewrote my entire config
This commit is contained in:
parent
47d704ad01
commit
c5b355601e
51 changed files with 973 additions and 870 deletions
dotfiles/neovim/lua/my/plugins
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue