Format neovim config with stylua using new stylua.toml config
This commit is contained in:
@@ -1,46 +1,46 @@
|
||||
local lualine = require("lualine")
|
||||
|
||||
local branch = {
|
||||
"branch",
|
||||
icons_enabled = true,
|
||||
icon = "",
|
||||
"branch",
|
||||
icons_enabled = true,
|
||||
icon = "",
|
||||
}
|
||||
|
||||
local diagnostics = {
|
||||
"diagnostics",
|
||||
sections = { "error", "warn" },
|
||||
symbols = { error = " ", warn = " " },
|
||||
colored = false,
|
||||
update_in_insert = false,
|
||||
always_visible = true,
|
||||
"diagnostics",
|
||||
sections = { "error", "warn" },
|
||||
symbols = { error = " ", warn = " " },
|
||||
colored = false,
|
||||
update_in_insert = false,
|
||||
always_visible = true,
|
||||
}
|
||||
|
||||
local mode = {
|
||||
"mode",
|
||||
"mode",
|
||||
}
|
||||
|
||||
local filetype = {
|
||||
"filetype",
|
||||
"filetype",
|
||||
}
|
||||
|
||||
local location = function()
|
||||
local line, column = unpack(vim.api.nvim_win_get_cursor(0))
|
||||
local line, column = unpack(vim.api.nvim_win_get_cursor(0))
|
||||
|
||||
return "Ln " .. line .. ", Col " .. column
|
||||
return "Ln " .. line .. ", Col " .. column
|
||||
end
|
||||
|
||||
lualine.setup({
|
||||
options = {
|
||||
disabled_filetypes = { "NvimTree" },
|
||||
component_separators = { left = "", right = "" },
|
||||
section_separators = { left = "", right = "" },
|
||||
},
|
||||
sections = {
|
||||
lualine_a = { branch, diagnostics },
|
||||
lualine_b = { mode },
|
||||
lualine_c = {},
|
||||
lualine_x = { location },
|
||||
lualine_y = { "encoding", filetype },
|
||||
lualine_z = {},
|
||||
},
|
||||
options = {
|
||||
disabled_filetypes = { "NvimTree" },
|
||||
component_separators = { left = "", right = "" },
|
||||
section_separators = { left = "", right = "" },
|
||||
},
|
||||
sections = {
|
||||
lualine_a = { branch, diagnostics },
|
||||
lualine_b = { mode },
|
||||
lualine_c = {},
|
||||
lualine_x = { location },
|
||||
lualine_y = { "encoding", filetype },
|
||||
lualine_z = {},
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user