From 5dc89fe9789701abbe4a73c2998d397a6d7d964c Mon Sep 17 00:00:00 2001 From: José Juan Loeza Sierra Date: Fri, 7 Nov 2025 23:42:52 -0800 Subject: replace lazyvim with custom config --- dot-config/nvim/init.lua | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) (limited to 'dot-config/nvim/init.lua') diff --git a/dot-config/nvim/init.lua b/dot-config/nvim/init.lua index 2514f9e..ad65bbd 100644 --- a/dot-config/nvim/init.lua +++ b/dot-config/nvim/init.lua @@ -1,2 +1,28 @@ --- bootstrap lazy.nvim, LazyVim and your plugins -require("config.lazy") +-- General +vim.g.mapleader = " " + +vim.o.undofile = true -- Persistant undo + +-- UI +vim.o.cmdheight = 0 -- Puts Lualine at very bottom +vim.o.cursorline = true -- Current line highlighting +vim.o.number = true -- Show line numbers +vim.o.relativenumber = true -- Relative line numbers +vim.o.signcolumn = "yes" -- Always show signcolumn (less flicker) +vim.o.splitbelow = true -- Horizontal splits will be below +vim.o.splitright = true -- Vertical splits will be to the right +vim.o.termguicolors = true -- Enable 24-bit RGB color in TUI +vim.o.winborder = "single" -- Use border in floating windows + +-- Editing +vim.o.autoindent = true -- Use auto indent +vim.o.expandtab = true -- Convert tabs to spaces +vim.o.ignorecase = true -- Ignore case during search +vim.o.incsearch = true -- Show search matches while typing +vim.o.shiftwidth = 2 -- Use this number of spaces for indentation +vim.o.smartindent = true -- Make indenting smart +vim.o.tabstop = 2 -- Show tab as this number of spaces + +-- TODO: consider not using clipboard for all operations +-- see :h clipboard +vim.opt.clipboard = "unnamedplus" -- cgit v1.3