diff options
Diffstat (limited to 'dot-config/nvim/init.lua')
| -rw-r--r-- | dot-config/nvim/init.lua | 30 |
1 files changed, 28 insertions, 2 deletions
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" |
