nvim_lazy_second_style
"/home/yossef/notes/git/nvims/nvim_lazy_second_style.md"
path: git/nvims/nvim_lazy_second_style.md
- **fileName**: nvim_lazy_second_style
- **Created on**: 2025-03-23 14:32:17
nvim config lazy second style from typecrift course
Neovim Keymap Configuration
General Keybindings
<leader>e
: OpensLex
(file explorer)
This bindsvim.keymap.set('n', '<leader>e', ':Lex 30<CR>', { noremap = true, silent = true })
<leader>e
to open Lex with a width of 30 columns.
Custom Mappings
-
Y
: Copies from the cursor to the end of the line (likeD
andC
)vim.keymap.set('n', 'Y', 'y
-
Move between split windows
vim.keymap.set('n', '<C-h>', '<C-w>h', { noremap = true }) vim.keymap.set('n', '<C-l>', '<C-w>l', { noremap = true }) vim.keymap.set('n', '<C-j>', '<C-w>j', { noremap = true }) vim.keymap.set('n', '<C-k>', '<C-w>k', { noremap = true })
These mappings allow you to navigate between windows using
Ctrl + h/j/k/l
. -
Resize windows
vim.keymap.set('n', '<C-Up>', ':resize +2<CR>', { noremap = true }) vim.keymap.set('n', '<C-Down>', ':resize -2<CR>', { noremap = true }) vim.keymap.set('n', '<C-Left>', ':vertical resize -2<CR>', { noremap = true }) vim.keymap.set('n', '<C-Right>', ':vertical resize +2<CR>', { noremap = true })
These allow you to resize splits easily with
Ctrl + Arrow keys
.
Plugins
Here’s a breakdown of the key plugins integrated with this setup:
-
telescope.nvim: Fuzzy finder for files, buffers, and more
vim.keymap.set('n', '<leader>ff', ':Telescope find_files<CR>', { noremap = true, silent = true }) vim.keymap.set('n', '<leader>fg', ':Telescope live_grep<CR>', { noremap = true, silent = true }) vim.keymap.set('n', '<leader>fb', ':Telescope buffers<CR>', { noremap = true, silent = true })
-
nvim-tree (disabled by default): File explorer alternative
-- Disabled in NvChad config
-
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)
-
null-ls/none-ls: Formatting and linting
require('null-ls').setup({})
-
plenary.nvim: Utility library (dependency for telescope and harpoon)
continue:./LazyNvim_anmited.md
before:./nvim_jap_config.md
, { noremap = true })
- Move between split windows
{{CODE_BLOCK_3}}
These mappings allow you to navigate between windows using `Ctrl + h/j/k/l`.
- Resize windows
{{CODE_BLOCK_4}}
These allow you to resize splits easily with `Ctrl + Arrow keys`.
## Plugins
Here’s a breakdown of the key plugins integrated with this setup:
- **telescope.nvim**: Fuzzy finder for files, buffers, and more
{{CODE_BLOCK_5}}
- **nvim-tree** (disabled by default): File explorer alternative
{{CODE_BLOCK_6}}
- **harpoon**: Quick file navigation
{{CODE_BLOCK_7}}
- **null-ls/none-ls**: Formatting and linting
{{CODE_BLOCK_8}}
- **plenary.nvim**: Utility library (dependency for telescope and harpoon)
**continue**:[[./LazyNvim_anmited.md]]
**before**:[[./nvim_jap_config.md]]