astro_nvim
"/home/yossef/notes/git/nvims/astro_nvim.md"
path: git/nvims/astro_nvim.md
- **fileName**: astro_nvim
- **Created on**: 2025-03-23 15:20:53
AstroNvim Configuration Documentation
This document explains the setup, structure, key features, and custom tweaks in my AstroNvim configuration.
📁 Directory Structure
lua/
: Core configuration and plugin setups.lua/core/
: General settings, keymaps, and UI tweaks.lua/plugins/
: Plugin configurations and custom plugins.lua/alpha_themes/
: Custom dashboard themes.
init.lua
: Entry point loading configs and plugins.lazy-lock.json
: Ensures consistent plugin versions.
🔧 Custom Keybindings
Window Navigation
vim.keymap.set('n', '<C-h>', '<C-w>h', { noremap = true })
vim.keymap.set('n', '<C-j>', '<C-w>j', { noremap = true })
vim.keymap.set('n', '<C-k>', '<C-w>k', { noremap = true })
vim.keymap.set('n', '<C-l>', '<C-w>l', { noremap = true })
File Explorer
vim.keymap.set('n', '<leader>e', ':Lex 30<CR>', { noremap = true, silent = true })
🔥 Plugin Setup
Core Plugins
-
telescope.nvim: Fuzzy finder
vim.keymap.set('n', '<leader>ff', ':Telescope find_files<CR>', { noremap = true }) vim.keymap.set('n', '<leader>fg', ':Telescope live_grep<CR>', { noremap = true }) vim.keymap.set('n', '<leader>fb', ':Telescope buffers<CR>', { noremap = true })
-
harpoon: Quick file navigation
local harpoon = require('harpoon') vim.keymap.set('n', '<leader>a', function() harpoon:list():add() end) vim.keymap.set('n', '<leader>h', function() harpoon.ui:toggle_quick_menu() end)
-
lsp-zero: Simplifies LSP setup
local lsp = require('lsp-zero').preset({}) lsp.setup()
UI Enhancements
- nvim-web-devicons: File icons
require('nvim-web-devicons').setup()
- dashboard.nvim: Custom dashboard
require('dashboard').setup({ theme = 'hyper' })
⚡ Performance Optimizations
- Lazy-load non-essential plugins
- Use
:Lazy profile
to analyze startup time
continue:./chad_nvim.md
before:./LazyNvim_anmited.md