little bit overhaul here and there :))

This commit is contained in:
2026-03-21 15:55:58 +01:00
parent 37e4ba19f8
commit 650ef78405
19 changed files with 601 additions and 428 deletions

View File

@@ -3,7 +3,7 @@
-- All configuration lives in lua/config/ and lua/plugins/
-- Leader keys must be set before lazy loads any plugin
vim.g.mapleader = ' '
vim.g.mapleader = ' '
vim.g.maplocalleader = ' '
vim.g.have_nerd_font = false
@@ -16,8 +16,12 @@ require 'config.autocmds'
local lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim'
if not (vim.uv or vim.loop).fs_stat(lazypath) then
local out = vim.fn.system {
'git', 'clone', '--filter=blob:none', '--branch=stable',
'https://github.com/folke/lazy.nvim.git', lazypath,
'git',
'clone',
'--filter=blob:none',
'--branch=stable',
'https://github.com/folke/lazy.nvim.git',
lazypath,
}
if vim.v.shell_error ~= 0 then
error('Error cloning lazy.nvim:\n' .. out)
@@ -28,23 +32,22 @@ vim.opt.rtp:prepend(lazypath)
-- Load all plugin specs from lua/plugins/*.lua and lua/plugins/extras/*.lua
require('lazy').setup({
{ import = 'plugins' },
{ import = 'plugins.extras' },
}, {
ui = {
icons = vim.g.have_nerd_font and {} or {
cmd = '',
config = '🛠',
event = '📅',
ft = '📂',
init = '',
keys = '🗝',
plugin = '🔌',
cmd = '',
config = '🛠',
event = '📅',
ft = '📂',
init = '',
keys = '🗝',
plugin = '🔌',
runtime = '💻',
require = '🌙',
source = '📄',
start = '🚀',
task = '📌',
lazy = '💤 ',
source = '📄',
start = '🚀',
task = '📌',
lazy = '💤 ',
},
},
})