Format neovim config with stylua using new stylua.toml config

This commit is contained in:
2022-01-22 12:10:28 +03:00
parent 1a29e2858a
commit 8b75b3b1ea
10 changed files with 324 additions and 317 deletions

View File

@@ -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 = {},
},
})