nvim things

This commit is contained in:
Ale 2024-09-27 07:58:21 +02:00
parent 26542a0fa5
commit 675a8a928f
4 changed files with 80 additions and 72 deletions

View file

@ -8,6 +8,7 @@ return {
formatters_by_ft = {
lua = { "stylua" },
rust = { "rustfmt", lsp_format = "fallback" },
gleam = { "gleam format --stdin" },
},
},
}

View file

@ -1,56 +1,54 @@
return {
{
'nvim-lualine/lualine.nvim',
config = function()
local colors_insert = {
line_background = '#282a36',
line_foreground = '#f8f8f2',
line_midtone = '#44475a',
pink = '#ff79c6',
ourple = '#bd93f9'
}
return {
{
"nvim-lualine/lualine.nvim",
config = function()
local colors_insert = {
line_background = "#282a36",
line_foreground = "#f8f8f2",
line_midtone = "#44475a",
pink = "#ff79c6",
ourple = "#bd93f9",
}
local cake_theme_dracula = {
insert = {
a = { fg = colors_insert.line_background, bg = colors_insert.pink },
b = { fg = colors_insert.line_foreground, bg = colors_insert.line_background },
z = { fg = colors_insert.line_foreground, bg = colors_insert.line_background }
},
normal = {
a = { fg = colors_insert.line_background, bg = colors_insert.ourple },
b = { fg = colors_insert.fg, bg = colors_insert.line_background },
z = { fg = colors_insert.fg, bg = colors_insert.line_background }
},
visual = {
},
replace = {
}
}
local cake_theme_dracula = {
insert = {
a = { fg = colors_insert.line_background, bg = colors_insert.pink },
b = { fg = colors_insert.line_foreground, bg = colors_insert.line_background },
z = { fg = colors_insert.line_foreground, bg = colors_insert.line_background },
},
normal = {
a = { fg = colors_insert.line_background, bg = colors_insert.ourple },
require('lualine').setup {
options = {
theme = cake_theme_dracula,
disabled_filetypes = {
statusline = {
"neo-tree",
"dashboard"
}
},
section_separators = "",
component_separators = "",
b = { fg = colors_insert.fg, bg = colors_insert.line_background },
z = { fg = colors_insert.fg, bg = colors_insert.line_background },
},
visual = {},
replace = {},
}
require("lualine").setup({
options = {
theme = cake_theme_dracula,
disabled_filetypes = {
statusline = {
"neo-tree",
"dashboard",
},
},
section_separators = "",
component_separators = "",
},
sections = {
lualine_a = { "mode" },
lualine_b = { "filename", "location" },
lualine_c = {},
lualine_x = {},
lualine_y = {},
lualine_z = { "diff", "branch" },
},
})
end,
dependencies = { { "nvim-tree/nvim-web-devicons" } },
},
sections = {
lualine_a = {'mode'},
lualine_b = {'filename', 'location'},
lualine_c = {},
lualine_x = {},
lualine_y = {},
lualine_z = {'diff','branch'}
}
}
end,
dependencies = {{'nvim-tree/nvim-web-devicons'}},
}
}

View file

@ -7,16 +7,25 @@ return {
configs.setup({
auto_install = false,
ensure_installed = {
"c", "rust", "lua",
"vim", "vimdoc", "markdown",
"javascript", "typescript", "python",
"html", "astro", "tsx",
"gleam", "bash"
"c",
"rust",
"lua",
"vim",
"vimdoc",
"markdown",
"javascript",
"typescript",
"python",
"html",
"astro",
"tsx",
"gleam",
"bash",
},
sync_install = false,
highlight = { enable = true },
indent = { enable = true },
})
end
}
end,
},
}