Make proj use the new project command line tool

arch
kalle 2022-10-13 17:58:48 +02:00
parent 1a9103ebee
commit 6b70e64f84
3 changed files with 8 additions and 5 deletions

View File

@ -3,13 +3,14 @@
[[ $- != *i* ]] && return
# Add ~/bin and ~/bin/scripts to my path
export PATH=$PATH:$HOME/bin/:$HOME/bin/scripts/
export PATH=$PATH:$HOME/bin/:$HOME/bin/scripts/:$HOME/.cargo/bin
NEOVIDE_COMMAND="env WINIT_UNIX_BACKEND=x11 neovide --multigrid"
# Set editor to neovim.
alias neovide=$NEOVIDE_COMMAND
export EDITOR=$NEOVIDE_COMMAND
alias edit=$NEOVIDE_COMMAND
export EDITOR="$NEOVIDE_COMMAND --nofork"
# Prompt stuff
#
@ -123,8 +124,8 @@ function cdl() {
# Functions
function cd-projects {
dir=$(find ~/Projects -maxdepth 3 -type d | fzf)
cd "$dir"
project_name=`project list | fzf --preview="proj_preview {}"`
cd "`project path "$project_name"`"
}
# Aliases

View File

@ -53,7 +53,7 @@ local rt_config = {
},
}
require('rust-tools').setup(rt_config)
require('rust-tools').setup()
-- LSP Diagnostics Options Setup
local sign = function(opts)

2
scripts/proj_preview Executable file
View File

@ -0,0 +1,2 @@
#!/usr/bin/env bash
bat -pf `project path "$1"`/README.md