diff --git a/.chezmoiversion b/.chezmoiversion new file mode 100644 index 0000000..e7a1fa2 --- /dev/null +++ b/.chezmoiversion @@ -0,0 +1 @@ +2.52.1 diff --git a/home/private_dot_config/nvim/init.lua b/home/private_dot_config/nvim/init.lua new file mode 100644 index 0000000..3832d77 --- /dev/null +++ b/home/private_dot_config/nvim/init.lua @@ -0,0 +1 @@ +require("settings") diff --git a/home/private_dot_config/nvim/lua/settings.lua b/home/private_dot_config/nvim/lua/settings.lua new file mode 100644 index 0000000..0de4e2c --- /dev/null +++ b/home/private_dot_config/nvim/lua/settings.lua @@ -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 diff --git a/home/private_dot_config/zsh/alias.zsh b/home/private_dot_config/zsh/alias.zsh index e8f6dc9..0fbd3dd 100644 --- a/home/private_dot_config/zsh/alias.zsh +++ b/home/private_dot_config/zsh/alias.zsh @@ -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"