Make proj use the new project command line tool
parent
1a9103ebee
commit
6b70e64f84
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
#!/usr/bin/env bash
|
||||
bat -pf `project path "$1"`/README.md
|
Loading…
Reference in New Issue