Compare commits

...

6 Commits

Author SHA1 Message Date
1290a8b561
nvim: disable autopairs fly mode
rip
2023-07-10 17:56:00 -04:00
de1e3e5f56
nvim: update typst stuff
typst got updated and now it has TYPST_ROOT.
pretty useful
2023-07-10 13:05:58 -04:00
18d2ffdd4b
.profile: fix CARGO_HOME typo 2023-07-10 12:14:59 -04:00
d562ac5f99
cleanup: add node repl history 2023-07-10 12:14:23 -04:00
2883030476
fish: add chat qutebrowser profile 2023-07-10 12:13:55 -04:00
fa4f9f9d93
nvim: switch to pyright server 2023-07-10 09:36:49 -04:00
7 changed files with 20 additions and 26 deletions

View File

@ -97,8 +97,8 @@ blender
audacity
syncthing
inkscape
python-lsp-server
python-lsp-black
pyright
python-black
typescript
typescript-language-server
bash-language-server

View File

@ -55,6 +55,7 @@ end
# listenbrainz
function lstb; qbprof lstb; end
function work; qbprof work; end
function chat; qbprof chat; end
# git stuff
abbr -a -- gs git status

View File

@ -23,7 +23,7 @@ source $XDG_CONFIG_HOME/nvim/vimspector.vim
" bracket closing
Plug 'jiangmiao/auto-pairs'
let g:AutoPairsShortcutToggle = "@@"
let g:AutoPairsFlyMode = 1
let g:AutoPairsFlyMode = 0
" improved error list
Plug 'folke/trouble.nvim'

View File

@ -48,22 +48,7 @@ end
-- settings per server (overrides defaults)
local servers = {
pylsp = {
settings = {
pylsp = {
plugins = {
pydocstyle = {
enabled = true,
convention = "numpy",
addIgnore = {"D100", "D101", "D102", "D103" ,"D105"}
},
black = {
enabled = true,
}
}
}
}
},
pyright = {},
clangd = {},
tsserver = {},
bashls = {},

View File

@ -1,5 +1,5 @@
snippet problem "template for problem notes" bi
#import "../templates/problems.typ": template, source_code, status
#import "/templates/problems.typ": template, source_code, status, lref
#show: template.with(
problem_url: "$1",
title: "$2",
@ -9,7 +9,7 @@ snippet problem "template for problem notes" bi
endsnippet
snippet sfd "template for lecture notes" bi
#import "../../../templates/sfd.typ": template
#import "/templates/sfd.typ": template, lref
#show: template.with(
lecture_url: "$1",
title: "$2",
@ -18,7 +18,7 @@ snippet sfd "template for lecture notes" bi
endsnippet
snippet contest "template for contest problems" bi
#import "../../templates/contest.typ": template, source_code, status
#import "/templates/contest.typ": template, source_code, status, lref
#show: template.with(
title: "$1",
stat: "${2:incomplete}",
@ -27,7 +27,7 @@ snippet contest "template for contest problems" bi
endsnippet
snippet algs "template for compsci notes" bi
#import "../templates/algs.typ": template, source_code
#import "/templates/algs.typ": template, source_code, lref
#show: template.with(
title: "$1",
)
@ -35,7 +35,7 @@ snippet algs "template for compsci notes" bi
endsnippet
snippet math_prob "template for math problems" bi
#import "../../../templates/math_prob.typ": template
#import "/templates/math_prob.typ": template, lref
#show: template.with(
title: "$1",
)
@ -43,7 +43,7 @@ snippet math_prob "template for math problems" bi
endsnippet
snippet proj "template for project documents" bi
#import "../../templates/proj.typ": template
#import "/templates/proj.typ": template, lref
#show: template.with(
title: "$1",
)
@ -58,6 +58,10 @@ snippet link "link" w
#link("${1}")[${2}]
endsnippet
snippet lref "refer to another knowledge base doc" w
#lref("/${1}")[${2}]
endsnippet
snippet fig "create new figure" bi
#figure(
image("fig/`!v expand("%:r")`/$1.svg"),

View File

@ -22,6 +22,7 @@ rm -rf \
~/.electron-gyp \
~/.yarn \
~/.yarnrc \
~/.node_repl_history \
~/.vimspector.log
# ipython supports XDG_CONFIG just not by default

View File

@ -31,7 +31,7 @@ export TERMINFO_DIRS="$XDG_DATA_HOME"/terminfo:/usr/share/terminfo
# go
export GOPATH="$XDG_DATA_HOME"/go
# cargo
export CARGI_HOME="$XDG_DATA_HOME/cargo"
export CARGO_HOME="$XDG_DATA_HOME/cargo"
# npm
export npm_config_userconfig=$XDG_CONFIG_HOME/npm/config
export npm_config_cache=$XDG_CACHE_HOME/npm
@ -69,6 +69,9 @@ else
. "$XDG_CONFIG_HOME"/dot_profile
fi
# Typst root
export TYPST_ROOT="$HOME/nt"
# Add .local/bin to path
export PATH="$PATH":~/.local/bin
export PATH="$PATH":~/.local/bin/deskutils