dotfiles

Config files from my daily system
Index Commits Files Refs README
commit 3e0a709a00152685e58ba11c998434dbdb39419d
parent 846e15494b084dafe33aa4c62575327846d663ce
Author: klewer-martin <martin.cachari@gmail.com>
Date:   Mon,  1 Feb 2021 20:06:01 -0300

Updated nvim & zsh config files;

Diffstat:
M.config/nvim/init.vim | 2++
M.zshrc | 23++++++++++++++++++-----
2 files changed, 20 insertions(+), 5 deletions(-)
diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim
@@ -34,6 +34,8 @@
     set shiftwidth=4
     set incsearch
     set smartcase
+    set noshowmode
+    highlight VertSplit cterm=NONE
 
 " Key remaps
     let mapleader ='\'
diff --git a/.zshrc b/.zshrc
@@ -16,14 +16,16 @@ zstyle :compinstall filename '/home/mk/.zshrc'
 autoload -Uz compinit
 compinit
 
-
-# This enables autocomplete for dotfiles (hidden in unix like OSs)
 _comp_options+=(globdots)
 
-
 # Add my personal scripts folder to path
 PATH="$PATH:/home/mk/scripts"
 
+# Set nvim as default editor
+export EDITOR=/usr/bin/nvim
+
+# Set neovim as default editor
+set preview_images_method ueberzug
 
 # aliases; probably gonna export them to a file in a future
 alias ls='ls --color=auto'
@@ -34,7 +36,8 @@ alias grep='grep --color=auto'
 alias v='nvim'
 alias vim='nvim'
 alias sv='sudo nvim'
-
+alias r='ranger'
+alias xclip='xclip -selection clipboard'
 
 # this part sets a nice colored bash like prompt;
 autoload -U colors && colors
@@ -45,13 +48,23 @@ PS1="%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[magenta]%}%M %{$fg[blu
 # If not running interactively, don't do anything
 [[ $- != *i* ]] && return
 
-
 # starts the x server (because I don't use a disply manager)
 if [[ -z "$DISPLAY" ]] && [[ $(tty) = /dev/tty1 ]]; then
  startx
 logout
 fi
 
+# Use lf to switch directories and bind it to ctrl-o
+lfcd () {
+    tmp="$(mktemp)"
+    lf -last-dir-path="$tmp" "$@"
+    if [ -f "$tmp" ]; then
+        dir="$(cat "$tmp")"
+        rm -f "$tmp" >/dev/null
+        [ -d "$dir" ] && [ "$dir" != "$(pwd)" ] && cd "$dir"
+    fi
+}
+bindkey -s '^o' 'lfcd\n'
 
 # this fix my keybord in terminal; (I use st)
 autoload -Uz up-line-or-beginning-search