From 9a8f6c83f465a346ce6ca8af0a9596cfcf00e2b4 Mon Sep 17 00:00:00 2001 From: Alessandro Date: Tue, 6 Feb 2024 09:35:56 +0100 Subject: [PATCH] CPP vim config / switch exa to eza --- lvim/config.lua | 4 ++++ ohmyzsh | 2 +- zshrc | 4 +++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/lvim/config.lua b/lvim/config.lua index 7107e43..d1a9bc6 100644 --- a/lvim/config.lua +++ b/lvim/config.lua @@ -16,6 +16,10 @@ vim.opt.tabstop = 4 vim.opt.softtabstop = 4 vim.opt.shiftwidth = 4 +vim.api.nvim_create_autocmd("FileType", { + pattern = "cpp", + command = "setlocal shiftwidth=2 tabstop=2" +}) -- keymappings [view all the defaults by pressing Lk] lvim.leader = "space" -- add your own keymapping diff --git a/ohmyzsh b/ohmyzsh index 6d48309..80c114c 160000 --- a/ohmyzsh +++ b/ohmyzsh @@ -1 +1 @@ -Subproject commit 6d48309cd7da1b91038cf08be7865fb5bb9bc5ea +Subproject commit 80c114cb3a64044ea50b623f96a35bc022db5e8d diff --git a/zshrc b/zshrc index 4190cf4..a15a555 100644 --- a/zshrc +++ b/zshrc @@ -103,6 +103,7 @@ source $ZSH/oh-my-zsh.sh # For a full list of active aliases, run `alias`. # # Example aliases +alias sshh='fast-ssh' # alias zshconfig="mate ~/.zshrc" # alias ohmyzsh="mate ~/.oh-my-zsh" alias open='~/.local/bin/open.sh' @@ -120,12 +121,13 @@ alias grep='rg' alias du='dust' # ls -alias ls='exa --icons' +alias ls='eza --icons=always' alias l='ls -lb' alias l1='ls -1' alias ll='ls -lab' alias lb='ls -lb --reverse --sort=size' alias lr='ls -R' +alias lt='ls -T' alias lg='ls -l --group-directories-first' # git