From 5b16ff8886cbac9a7adf741f519b20537c74be3c Mon Sep 17 00:00:00 2001 From: DMcP89 Date: Thu, 30 May 2024 16:37:27 -0400 Subject: [PATCH] Adding neovim lua file --- .config/nvim/init.lua | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .config/nvim/init.lua diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua new file mode 100644 index 0000000..feb4803 --- /dev/null +++ b/.config/nvim/init.lua @@ -0,0 +1,23 @@ +-- Set nocompatible +vim.o.compatible = false + +-- Colors +vim.cmd('syntax enable') +vim.cmd('colorscheme slate') + +-- UI +vim.o.number = false -- line numbers +vim.o.relativenumber = true -- relative line numbers +vim.o.showcmd = true -- show command in bottom bar +vim.o.cursorline = true -- highlight current line +vim.o.wildmenu = true -- visual autocomplete for command menu +vim.o.lazyredraw = true -- redraw only when we need to. +vim.o.showmatch = true -- highlight matching [{()}] +vim.o.incsearch = true -- search as characters are entered +vim.o.hlsearch = true -- highlight matches +vim.o.expandtab = true -- expand tabs into spaces +vim.o.tabstop = 4 -- tabs equal 4 spaces +vim.o.shiftwidth = 4 -- >> or << commands shift lines 4 spaces + +vim.cmd('filetype indent on') -- load filetype-specific indent files +