updatet nvim config f.e. homescreen

This commit is contained in:
liph22
2025-12-20 21:01:44 +01:00
parent 381dda3e7a
commit 11c0f0a7e1
6 changed files with 248 additions and 49 deletions

View File

@@ -1,7 +1,6 @@
{ {
"Comment.nvim": { "branch": "master", "commit": "e30b7f2008e52442154b66f7c519bfd2f1e32acb" }, "Comment.nvim": { "branch": "master", "commit": "e30b7f2008e52442154b66f7c519bfd2f1e32acb" },
"LuaSnip": { "branch": "master", "commit": "fb525166ccc30296fb3457441eb979113de46b00" }, "LuaSnip": { "branch": "master", "commit": "fb525166ccc30296fb3457441eb979113de46b00" },
"alpha-nvim": { "branch": "main", "commit": "3979b01cb05734331c7873049001d3f2bb8477f4" },
"barbecue": { "branch": "main", "commit": "cd7e7da622d68136e13721865b4d919efd6325ed" }, "barbecue": { "branch": "main", "commit": "cd7e7da622d68136e13721865b4d919efd6325ed" },
"catppuccin": { "branch": "main", "commit": "ce8d176faa4643e026e597ae3c31db59b63cef09" }, "catppuccin": { "branch": "main", "commit": "ce8d176faa4643e026e597ae3c31db59b63cef09" },
"cmp-buffer": { "branch": "main", "commit": "b74fab3656eea9de20a9b8116afa3cfc4ec09657" }, "cmp-buffer": { "branch": "main", "commit": "b74fab3656eea9de20a9b8116afa3cfc4ec09657" },
@@ -12,6 +11,7 @@
"cmp-tabnine": { "branch": "main", "commit": "c0167cdc86c15e782c5461ee62aebee89231c2ed" }, "cmp-tabnine": { "branch": "main", "commit": "c0167cdc86c15e782c5461ee62aebee89231c2ed" },
"cmp_luasnip": { "branch": "master", "commit": "98d9cb5c2c38532bd9bdb481067b20fea8f32e90" }, "cmp_luasnip": { "branch": "master", "commit": "98d9cb5c2c38532bd9bdb481067b20fea8f32e90" },
"conform.nvim": { "branch": "master", "commit": "328c2f1dda56f933d3337a1316e1020ba30ba6aa" }, "conform.nvim": { "branch": "master", "commit": "328c2f1dda56f933d3337a1316e1020ba30ba6aa" },
"dashboard-nvim": { "branch": "master", "commit": "0775e567b6c0be96d01a61795f7b64c1758262f6" },
"diffview.nvim": { "branch": "main", "commit": "4516612fe98ff56ae0415a259ff6361a89419b0a" }, "diffview.nvim": { "branch": "main", "commit": "4516612fe98ff56ae0415a259ff6361a89419b0a" },
"dressing.nvim": { "branch": "master", "commit": "2d7c2db2507fa3c4956142ee607431ddb2828639" }, "dressing.nvim": { "branch": "master", "commit": "2d7c2db2507fa3c4956142ee607431ddb2828639" },
"flash.nvim": { "branch": "main", "commit": "fcea7ff883235d9024dc41e638f164a450c14ca2" }, "flash.nvim": { "branch": "main", "commit": "fcea7ff883235d9024dc41e638f164a450c14ca2" },

View File

@@ -0,0 +1,128 @@
return {
{
"nvimdev/dashboard-nvim",
event = "VimEnter",
dependencies = {
"nvim-tree/nvim-web-devicons",
"epwalsh/obsidian.nvim",
"ibhagwan/fzf-lua",
},
config = function()
require("dashboard").setup({
theme = "doom",
config = {
header = {
[[ ]],
[[ ]],
[[ ]],
[[ ]],
[[  ]],
[[ ████ ██████ █████ ██ ]],
[[ ███████████ █████  ]],
[[ █████████ ███████████████████ ███ ███████████ ]],
[[ █████████ ███ █████████████ █████ ██████████████ ]],
[[ █████████ ██████████ █████████ █████ █████ ████ █████ ]],
[[ ███████████ ███ ███ █████████ █████ █████ ████ █████ ]],
[[ ██████ █████████████████████ ████ █████ █████ ████ ██████ ]],
[[ ]],
[[ ]],
[[ ]],
},
center = {
{
icon = " ",
icon_hl = "Title",
desc = "New File ",
desc_hl = "String",
key = "n",
key_hl = "Number",
action = "enew",
},
{
icon = " ",
icon_hl = "Title",
desc = "Find File ",
desc_hl = "String",
key = "f",
key_hl = "Number",
action = "Telescope find_files",
},
{
icon = " ",
icon_hl = "Title",
desc = "Recent Files ",
desc_hl = "String",
key = "r",
key_hl = "Number",
action = "Telescope oldfiles",
},
{
icon = " ",
icon_hl = "Title",
desc = "Find Word ",
desc_hl = "String",
key = "g",
key_hl = "Number",
action = "Telescope live_grep",
},
{
icon = " ",
icon_hl = "Title",
desc = "Obsidian Notes ",
desc_hl = "String",
key = "o",
key_hl = "Number",
action = "ObsidianQuickSwitch",
},
-- {
-- icon = " ",
-- icon_hl = "Title",
-- desc = "Projects (SPC fp) ", -- Note: shows keymap
-- desc_hl = "String",
-- key = "p",
-- key_hl = "Number",
-- action = "Telescope projections", -- Will lazy-load when pressed
-- },
{
icon = " ",
icon_hl = "Title",
desc = "Config ",
desc_hl = "String",
key = "c",
key_hl = "Number",
action = "edit ~/.config/nvim/init.lua",
},
{
icon = " ",
icon_hl = "Title",
desc = "Lazy ",
desc_hl = "String",
key = "l",
key_hl = "Number",
action = "Lazy",
},
{
icon = " ",
icon_hl = "Title",
desc = "Quit ",
desc_hl = "String",
key = "q",
key_hl = "Number",
action = "quit",
},
},
footer = function()
local stats = require("lazy").stats()
local ms = (math.floor(stats.startuptime * 100 + 0.5) / 100)
return {
"",
"⚡ Neovim loaded " .. stats.loaded .. "/" .. stats.count .. " plugins in " .. ms .. "ms",
}
end,
},
})
end,
},
}

View File

@@ -1,14 +1,85 @@
return { return {
{ {
"ibhagwan/fzf-lua", "ibhagwan/fzf-lua",
-- optional for icon support
dependencies = { "nvim-tree/nvim-web-devicons" }, dependencies = { "nvim-tree/nvim-web-devicons" },
-- or if using mini.icons/mini.nvim
-- dependencies = { "nvim-mini/mini.icons" },
---@module "fzf-lua" ---@module "fzf-lua"
---@type fzf-lua.Config|{} ---@type fzf-lua.Config|{}
---@diagnostics disable: missing-fields ---@diagnostics disable: missing-fields
opts = {}, config = function()
require("fzf-lua").setup({
-- Use Telescope-like defaults
"telescope",
winopts = {
height = 0.85,
width = 0.80,
row = 0.35,
col = 0.50,
border = "rounded",
preview = {
layout = "flex",
flip_columns = 120,
vertical = "down:45%",
horizontal = "right:50%",
},
},
files = {
prompt = "Files ",
git_icons = true,
file_icons = true,
color_icons = true,
},
grep = {
prompt = "Rg ",
input_prompt = "Grep For ",
git_icons = true,
file_icons = true,
color_icons = true,
},
})
end,
---@diagnostics enable: missing-fields ---@diagnostics enable: missing-fields
keys = {
-- Files
{ "<leader>ff", "<cmd>FzfLua files<cr>", desc = "Find Files" },
{ "<leader>fr", "<cmd>FzfLua oldfiles<cr>", desc = "Recent Files" },
{ "<C-p>", "<cmd>FzfLua files<cr>", desc = "Find Files" },
-- Search
{ "<leader>fg", "<cmd>FzfLua live_grep<cr>", desc = "Live Grep" },
{ "<leader>fw", "<cmd>FzfLua grep_cword<cr>", desc = "Grep Word" },
{ "<leader>fW", "<cmd>FzfLua grep_cWORD<cr>", desc = "Grep WORD" },
-- Buffers
{ "<leader>fb", "<cmd>FzfLua buffers<cr>", desc = "Buffers" },
-- { "<leader><leader>", "<cmd>FzfLua buffers<cr>", desc = "Buffers" },
-- Git
{ "<leader>gC", "<cmd>FzfLua git_commits<cr>", desc = "Git Commits" },
{ "<leader>gR", "<cmd>FzfLua git_files<cr>", desc = "Git Files" },
{ "<leader>gS", "<cmd>FzfLua git_status<cr>", desc = "Git Status" },
-- LSP
{ "<leader>ld", "<cmd>FzfLua lsp_document_symbols<cr>", desc = "Document Symbols" },
{ "<leader>lw", "<cmd>FzfLua lsp_workspace_symbols<cr>", desc = "Workspace Symbols" },
{ "<leader>lr", "<cmd>FzfLua lsp_references<cr>", desc = "References" },
{ "<leader>la", "<cmd>FzfLua lsp_code_actions<cr>", desc = "Code Actions" },
-- Diagnostics
{ "<leader>lD", "<cmd>FzfLua diagnostics_document<cr>", desc = "Document Diagnostics" },
{ "<leader>lW", "<cmd>FzfLua diagnostics_workspace<cr>", desc = "Workspace Diagnostics" },
-- Help
{ "<leader>fh", "<cmd>FzfLua help_tags<cr>", desc = "Help Tags" },
{ "<leader>fc", "<cmd>FzfLua commands<cr>", desc = "Commands" },
{ "<leader>fk", "<cmd>FzfLua keymaps<cr>", desc = "Keymaps" },
-- Misc
{ "<leader>f:", "<cmd>FzfLua command_history<cr>", desc = "Command History" },
{ "<leader>fm", "<cmd>FzfLua marks<cr>", desc = "Marks" },
},
}, },
} }

View File

@@ -35,5 +35,5 @@ return {
desc = "Quickfix List (Trouble)", desc = "Quickfix List (Trouble)",
}, },
}, },
} },
} }