home | switch default editor to lvim
This commit is contained in:
parent
cedfa3d41a
commit
d3ad4f0013
5 changed files with 7 additions and 5 deletions
|
|
@ -8,6 +8,7 @@ alias l="ls -l"
|
||||||
alias df="df -h -x squashfs"
|
alias df="df -h -x squashfs"
|
||||||
alias du="du -h"
|
alias du="du -h"
|
||||||
alias neofetch="fastfetch"
|
alias neofetch="fastfetch"
|
||||||
|
alias vi="${EDITOR}"
|
||||||
if [ -x /home/don/.local/bin/dotdrop ]
|
if [ -x /home/don/.local/bin/dotdrop ]
|
||||||
then
|
then
|
||||||
alias dotdrop="/home/don/.local/bin/dotdrop -c ~/.dotfiles/config.yaml"
|
alias dotdrop="/home/don/.local/bin/dotdrop -c ~/.dotfiles/config.yaml"
|
||||||
|
|
|
||||||
|
|
@ -108,7 +108,7 @@ then
|
||||||
LESS="-Rs"
|
LESS="-Rs"
|
||||||
EXINIT="set wrapmargin=8 sh=$SHELL sw=4 report=2 tabstop=8"
|
EXINIT="set wrapmargin=8 sh=$SHELL sw=4 report=2 tabstop=8"
|
||||||
export EXINIT EDITOR PAGER LESS
|
export EXINIT EDITOR PAGER LESS
|
||||||
EDITOR=vi
|
EDITOR=lvim
|
||||||
if [ -x /usr/bin/vim ]
|
if [ -x /usr/bin/vim ]
|
||||||
then
|
then
|
||||||
EDITOR=vim
|
EDITOR=vim
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@
|
||||||
core = {
|
core = {
|
||||||
user = "Don Harper";
|
user = "Don Harper";
|
||||||
email = "duck@duckland.org";
|
email = "duck@duckland.org";
|
||||||
editor = "${pkgs.neovim}/bin/nvim";
|
editor = "${pkgs.lunarvim}/bin/lvim";
|
||||||
};
|
};
|
||||||
safe = {
|
safe = {
|
||||||
directory = "*";
|
directory = "*";
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,11 @@
|
||||||
home.packages = with pkgs; [ liquidprompt ];
|
home.packages = with pkgs; [ liquidprompt ];
|
||||||
xdg.configFile."liquidpromptrc".text = ''
|
xdg.configFile."liquidpromptrc".text = ''
|
||||||
source ~/.config/liquidprompt.theme
|
source ~/.config/liquidprompt.theme
|
||||||
|
LOCAL_RCFILE=$HOME/.config/liquidpromptrc.local
|
||||||
|
LP_ALWAYS_DISPLAY_VALUES=1
|
||||||
LP_BATTERY_THRESHOLD=75
|
LP_BATTERY_THRESHOLD=75
|
||||||
LP_DISABLED_VCS_PATH=""
|
LP_DISABLED_VCS_PATH=""
|
||||||
|
LP_DISPLAY_VALUES_AS_PERCENTS=1
|
||||||
LP_ENABLE_BATT=1
|
LP_ENABLE_BATT=1
|
||||||
LP_ENABLE_BZR=0
|
LP_ENABLE_BZR=0
|
||||||
LP_ENABLE_DIRSTACK=0
|
LP_ENABLE_DIRSTACK=0
|
||||||
|
|
@ -33,13 +36,11 @@
|
||||||
LP_LOAD_THRESHOLD=0.60
|
LP_LOAD_THRESHOLD=0.60
|
||||||
LP_PATH_KEEP=2
|
LP_PATH_KEEP=2
|
||||||
LP_PATH_LENGTH=35
|
LP_PATH_LENGTH=35
|
||||||
LP_PERCENTS_ALWAYS=1
|
|
||||||
LP_RUNTIME_THRESHOLD=2
|
LP_RUNTIME_THRESHOLD=2
|
||||||
LP_TEMP_THRESHOLD=60
|
LP_TEMP_THRESHOLD=60
|
||||||
LP_TIME_ANALOG=0
|
LP_TIME_ANALOG=0
|
||||||
LP_TIME_FORMAT="%_I:%M %p"
|
LP_TIME_FORMAT="%_I:%M %p"
|
||||||
LP_USER_ALWAYS=1
|
LP_USER_ALWAYS=1
|
||||||
LOCAL_RCFILE=$HOME/.config/liquidpromptrc.local
|
|
||||||
[ -f "$LOCAL_RCFILE" ] && source "$LOCAL_RCFILE"
|
[ -f "$LOCAL_RCFILE" ] && source "$LOCAL_RCFILE"
|
||||||
'';
|
'';
|
||||||
xdg.configFile."liquidprompt.theme".text = ''
|
xdg.configFile."liquidprompt.theme".text = ''
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
{
|
{
|
||||||
programs.neovim = {
|
programs.neovim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
defaultEditor = true;
|
defaultEditor = false;
|
||||||
viAlias = true;
|
viAlias = true;
|
||||||
vimAlias = true;
|
vimAlias = true;
|
||||||
vimdiffAlias = true;
|
vimdiffAlias = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue