1
1
Fork 0

begin neovim config

This commit is contained in:
Gaiety 2026-04-03 18:47:46 -06:00
parent 6e25dfe3b5
commit 26e7ef412d
6 changed files with 20 additions and 0 deletions

View file

@ -8,3 +8,6 @@ ln -sf "$(pwd)/.zshrc" ~/.zshrc
echo "config.ghostty"
ln -sf "$(pwd)/config.ghostty" ~/.config/ghostty/config.ghostty
echo "neovim"
ln -sf "$(pwd)/nvim" ~/.config/nvim

3
nvim/init.lua Normal file
View file

@ -0,0 +1,3 @@
require('options')
require('keys')
require('highlighting')

View file

@ -0,0 +1,2 @@
vim.cmd('syntax enable')
vim.cmd('filetype plugin indent on')

3
nvim/lua/keys.lua Normal file
View file

@ -0,0 +1,3 @@
-- Leader key
vim.g.mapleader = ' ' -- Space as the leader key
vim.api.nvim_set_keymap('n', '<Leader>w', ':w<CR>', { noremap = true, silent = true })

8
nvim/lua/options.lua Normal file
View file

@ -0,0 +1,8 @@
vim.o.number = true
vim.o.relativenumber = true
vim.o.tabstop = 2
vim.o.shiftwidth = 2
vim.o.expandtab = true
vim.o.smartindent = true
vim.o.cursorline = true
vim.o.termguicolors = true

1
nvim/nvim Symbolic link
View file

@ -0,0 +1 @@
/home/gaiety/dotfiles/nvim