Compare commits

...

2 Commits

Author SHA1 Message Date
Michel 955240b790 feat: minor changes 2023-10-16 10:47:37 +02:00
Michel 0ae89e817e feat(lualine): update to current LazyVim setup 2023-10-16 10:47:00 +02:00
3 changed files with 8 additions and 13 deletions

View File

@ -8,7 +8,7 @@ local opt = vim.opt
opt.autowrite = false
opt.clipboard = ""
opt.foldlevelstart = 3
opt.foldlevelstart = 5
opt.foldexpr = "nvim_treesitter#foldexpr()"
opt.foldmethod = "expr"
opt.tabstop = 8

View File

@ -1,5 +1,7 @@
vim.o.background = "dark"
local Util = require("lazyvim.util")
return {
{
"LazyVim/LazyVim",
@ -48,13 +50,9 @@ return {
opts.sections = {
lualine_a = { "mode" },
lualine_b = {
Util.lualine.root_dir(),
{ "filetype", icon_only = true, separator = "", padding = { left = 1, right = 0 } },
{
"filename",
path = 1,
separator = "",
symbols = { modified = "", readonly = "", unnamed = "" },
},
{ Util.lualine.pretty_path() },
},
lualine_c = {
{
@ -68,14 +66,11 @@ return {
},
},
lualine_x = opts.sections.lualine_x,
lualine_z = opts.sections.lualine_y,
lualine_y = {
{ "fileformat", separator = "", padding = { left = 1, right = 0 } },
"encoding",
},
lualine_z = {
"progress",
{ "location", padding = { left = 0, right = 1 } },
},
}
end,
},

View File

@ -6,9 +6,9 @@ return {
-- add a keymap to browse plugin files
-- stylua: ignore
{
"<leader>fp",
"<leader>fC",
function() require("telescope.builtin").find_files({ cwd = require("lazy.core.config").options.root }) end,
desc = "Find Plugin File",
desc = "Find LazyVim Config File",
},
},