Added neovim dotfiles
This commit is contained in:
parent
d1d4dc8c0c
commit
173643186e
1
.chezmoiversion
Normal file
1
.chezmoiversion
Normal file
@ -0,0 +1 @@
|
||||
2.52.1
|
1
home/private_dot_config/nvim/init.lua
Normal file
1
home/private_dot_config/nvim/init.lua
Normal file
@ -0,0 +1 @@
|
||||
require("settings")
|
33
home/private_dot_config/nvim/lua/settings.lua
Normal file
33
home/private_dot_config/nvim/lua/settings.lua
Normal file
@ -0,0 +1,33 @@
|
||||
-- Line numbers
|
||||
vim.opt.number = true
|
||||
vim.opt.relativenumber = true
|
||||
|
||||
-- Cursor
|
||||
vim.opt.cursorline = true
|
||||
vim.opt.colorcolumn = "80"
|
||||
|
||||
-- "I like good colors!"
|
||||
-- https://youtube.com/watch?v=w7i4amO_zaE&t=1438
|
||||
vim.opt.termguicolors = true
|
||||
|
||||
-- Don't wrap the lines
|
||||
vim.opt.wrap = false
|
||||
|
||||
-- Make sure to have at least 8 line above/below the cursor
|
||||
vim.opt.scrolloff = 8
|
||||
|
||||
-- Disable swapfile and backup but enable undofile
|
||||
-- https://github.com/ThePrimeagen/init.lua/blob/ba51e03a/lua/theprimeagen/set.lua#L15
|
||||
vim.opt.swapfile = false
|
||||
vim.opt.backup = false
|
||||
vim.opt.undodir = os.getenv("HOME") .. "/.cache/nvim/undodir"
|
||||
os.execute("mkdir -p " .. vim.api.nvim_get_option("undodir"))
|
||||
vim.opt.undofile = true
|
||||
|
||||
-- Indenting stuff
|
||||
-- https://github.com/ThePrimeagen/init.lua/blob/ba51e03a/lua/theprimeagen/set.lua#L6
|
||||
vim.opt.tabstop = 4
|
||||
vim.opt.softtabstop = 4
|
||||
vim.opt.shiftwidth = 4
|
||||
vim.opt.expandtab = true
|
||||
vim.opt.smartindent = true
|
@ -1,5 +1,7 @@
|
||||
alias ls="ls --color --group-directories-first"
|
||||
alias l="ls -l --almost-all --human-readable"
|
||||
|
||||
alias grep='grep --color=auto'
|
||||
|
||||
alias vi="nvim"
|
||||
alias vim="nvim"
|
||||
|
Loading…
x
Reference in New Issue
Block a user