begin neovim config
This commit is contained in:
parent
6e25dfe3b5
commit
26e7ef412d
6 changed files with 20 additions and 0 deletions
|
|
@ -8,3 +8,6 @@ ln -sf "$(pwd)/.zshrc" ~/.zshrc
|
||||||
|
|
||||||
echo "config.ghostty"
|
echo "config.ghostty"
|
||||||
ln -sf "$(pwd)/config.ghostty" ~/.config/ghostty/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
3
nvim/init.lua
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
require('options')
|
||||||
|
require('keys')
|
||||||
|
require('highlighting')
|
||||||
2
nvim/lua/highlighting.lua
Normal file
2
nvim/lua/highlighting.lua
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
vim.cmd('syntax enable')
|
||||||
|
vim.cmd('filetype plugin indent on')
|
||||||
3
nvim/lua/keys.lua
Normal file
3
nvim/lua/keys.lua
Normal 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
8
nvim/lua/options.lua
Normal 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
1
nvim/nvim
Symbolic link
|
|
@ -0,0 +1 @@
|
||||||
|
/home/gaiety/dotfiles/nvim
|
||||||
Loading…
Add table
Reference in a new issue