Modified Neovim config, removed excess Emacs files in lisp folder

This commit is contained in:
lulusilly 2025-08-26 22:07:55 -04:00
parent 3c0a6da426
commit a4df65ee70
3 changed files with 31 additions and 12 deletions

View file

@ -1,10 +1,13 @@
-- ===================================
-- | General Neovim Configuration |
-- ===================================
-- I won't lie to you, I vibecoded the boilerplate for this stuff.
-- Aside from Emacs, I don't really like having to configure my editors
-- very much. Basic understanding of the config is all I really prioritize.
vim.opt.number = true -- Show line numbers
vim.opt.relativenumber = true -- Show relative line numbers
vim.opt.tabstop = 4 -- A tab is 4 spaces
vim.opt.shiftwidth = 4 -- Indent is 4 spaces
vim.opt.tabstop = 2 -- A tab is 2 spaces
vim.opt.shiftwidth = 2 -- Indent is 2 spaces
vim.opt.expandtab = true -- Use spaces instead of tabs
vim.opt.termguicolors = true -- Enable terminal colors
vim.opt.scrolloff = 8 -- Lines above/below cursor
@ -67,7 +70,6 @@ require("lazy").setup({
-- Treesitter configuration.
require("nvim-treesitter.configs").setup({
highlight = { enable = true },
-- auto_install = false,
-- You can specify languages to install with `ensure_installed`.
-- e.g., ensure_installed = { "lua", "python", "javascript" },
})
@ -98,6 +100,25 @@ require('mini.pairs').setup({})
-- Keymaps are custom commands mapped to a specific key combination.
-- The "<leader>" prefix will be replaced with your leader key, which is "space".
-- Split creation keymaps
vim.keymap.set('n', '<leader>sv', ':vsplit<CR>', { desc = 'Create a vertical split' })
vim.keymap.set('n', '<leader>ss', ':split<CR>', { desc = 'Create a horizontal split' })
-- Buffer navigation
-- <leader>bh/j/k/l to navigate between buffers
vim.keymap.set('n', '<leader>bh', ':bprev<CR>', { desc = 'Go to previous buffer' })
vim.keymap.set('n', '<leader>bl', ':bnext<CR>', { desc = 'Go to next buffer' })
-- The following mappings are less common, but fulfill your request.
vim.keymap.set('n', '<leader>bj', ':bnext<CR>', { desc = 'Go to next buffer' })
vim.keymap.set('n', '<leader>bk', ':bprev<CR>', { desc = 'Go to previous buffer' })
-- Split navigation
-- <leader>sh/j/k/l to move between splits
vim.keymap.set('n', '<leader>sh', '<C-w>h', { desc = 'Move to left split' })
vim.keymap.set('n', '<leader>sj', '<C-w>j', { desc = 'Move to split below' })
vim.keymap.set('n', '<leader>sk', '<C-w>k', { desc = 'Move to split above' })
vim.keymap.set('n', '<leader>sl', '<C-w>l', { desc = 'Move to right split' })
-- Normal mode keymaps
-- Save the current file.
vim.keymap.set('n', '<leader>w', ':w<CR>', { desc = 'Save file' })
@ -119,5 +140,3 @@ vim.keymap.set('n', '<leader>e', ':NvimTreeToggle<CR>', { desc = 'Toggle file tr
-- Select the entire file content.
vim.keymap.set('n', '<leader>a', 'ggVG', { desc = 'Select entire file' })
-- You can add more keymaps here as you get more comfortable!