Compare commits

...

4 Commits

6 changed files with 37 additions and 1 deletions

View File

@ -116,6 +116,10 @@ highlight GitGutterAdd ctermfg=green
highlight GitGutterChange ctermfg=yellow highlight GitGutterChange ctermfg=yellow
highlight GitGutterDelete ctermfg=red highlight GitGutterDelete ctermfg=red
" fancy picker stuff
source $XDG_CONFIG_HOME/nvim/telescope.vim
call plug#end() call plug#end()
source $XDG_CONFIG_HOME/nvim/color.vim source $XDG_CONFIG_HOME/nvim/color.vim

View File

@ -38,6 +38,7 @@ local on_attach = function(client, bufnr)
buf_set_keymap('n', 'gs', '<cmd>lua vim.lsp.buf.signature_help()<CR>', opts) buf_set_keymap('n', 'gs', '<cmd>lua vim.lsp.buf.signature_help()<CR>', opts)
buf_set_keymap('n', 'gt', '<cmd>lua vim.lsp.buf.type_definition()<CR>', opts) buf_set_keymap('n', 'gt', '<cmd>lua vim.lsp.buf.type_definition()<CR>', opts)
buf_set_keymap('n', '<space>rn', '<cmd>lua vim.lsp.buf.rename()<CR>', opts) buf_set_keymap('n', '<space>rn', '<cmd>lua vim.lsp.buf.rename()<CR>', opts)
buf_set_keymap('n', '<space>ss', '<cmd>lua vim.lsp.buf.workspace_symbol()<CR>', opts)
buf_set_keymap('n', 'gr', '<cmd>lua vim.lsp.buf.references()<CR>', opts) buf_set_keymap('n', 'gr', '<cmd>lua vim.lsp.buf.references()<CR>', opts)
buf_set_keymap('n', '<space>e', '<cmd>lua vim.lsp.diagnostic.show_line_diagnostics()<CR>', opts) buf_set_keymap('n', '<space>e', '<cmd>lua vim.lsp.diagnostic.show_line_diagnostics()<CR>', opts)
buf_set_keymap('n', '[d', '<cmd>lua vim.lsp.diagnostic.goto_prev()<CR>', opts) buf_set_keymap('n', '[d', '<cmd>lua vim.lsp.diagnostic.goto_prev()<CR>', opts)

View File

@ -0,0 +1,9 @@
Plug 'nvim-telescope/telescope.nvim', { 'branch': '0.1.x' }
Plug 'nvim-lua/plenary.nvim', { 'branch': '0.1.x' }
nnoremap <leader>ef <cmd>Telescope find_files<cr>
nnoremap <leader>eg <cmd>Telescope live_grep<cr>
nnoremap <leader>em <cmd>Telescope buffers<cr>
nnoremap <leader>eh <cmd>Telescope help_tags<cr>
nnoremap <leader>es <cmd>Telescope lsp_document_symbols<cr>
nnoremap <leader>eb <cmd>Telescope keymaps<cr>

View File

@ -1,5 +1,6 @@
snippet problem "template for problem notes" bi snippet problem "template for problem notes" bi
#import "/templates/problems.typ": template, source_code, status, lref #import "/templates/problems.typ": template, source_code, status, lref
#import "/templates/libs.typ": *
#show: template.with( #show: template.with(
problem_url: "$1", problem_url: "$1",
title: "$2", title: "$2",
@ -10,6 +11,7 @@ endsnippet
snippet index "template for index documents" bi snippet index "template for index documents" bi
#import "/templates/index.typ": template, lref #import "/templates/index.typ": template, lref
#import "/templates/libs.typ": *
#show: template.with( #show: template.with(
title: "$1", title: "$1",
) )
@ -18,6 +20,7 @@ endsnippet
snippet sfd "template for lecture notes" bi snippet sfd "template for lecture notes" bi
#import "/templates/sfd.typ": template, lref #import "/templates/sfd.typ": template, lref
#import "/templates/libs.typ": *
#show: template.with( #show: template.with(
lecture_url: "$1", lecture_url: "$1",
title: "$2", title: "$2",
@ -27,6 +30,8 @@ endsnippet
snippet chem "template for chemistry notes" bi snippet chem "template for chemistry notes" bi
#import "/templates/chem.typ": template, lref, chem, gaz, liq, sol, aq #import "/templates/chem.typ": template, lref, chem, gaz, liq, sol, aq
#import "/templates/libs.typ": *
#show: template.with( #show: template.with(
title: "$1", title: "$1",
) )
@ -42,6 +47,7 @@ endsnippet
snippet contest "template for contest problems" bi snippet contest "template for contest problems" bi
#import "/templates/contest.typ": template, source_code, status, lref #import "/templates/contest.typ": template, source_code, status, lref
#import "/templates/libs.typ": *
#show: template.with( #show: template.with(
title: "$1", title: "$1",
stat: "${2:incomplete}", stat: "${2:incomplete}",
@ -51,6 +57,7 @@ endsnippet
snippet algs "template for compsci notes" bi snippet algs "template for compsci notes" bi
#import "/templates/algs.typ": template, source_code, lref #import "/templates/algs.typ": template, source_code, lref
#import "/templates/libs.typ": *
#show: template.with( #show: template.with(
title: "$1", title: "$1",
) )
@ -59,6 +66,7 @@ endsnippet
snippet general "general template" bi snippet general "general template" bi
#import "/templates/general.typ": template, lref #import "/templates/general.typ": template, lref
#import "/templates/libs.typ": *
#show: template.with( #show: template.with(
title: "$1", title: "$1",
) )
@ -67,6 +75,7 @@ endsnippet
snippet math_prob "template for math problems" bi snippet math_prob "template for math problems" bi
#import "/templates/math_prob.typ": template, lref #import "/templates/math_prob.typ": template, lref
#import "/templates/libs.typ": *
#show: template.with( #show: template.with(
title: "$1", title: "$1",
) )
@ -75,6 +84,7 @@ endsnippet
snippet math_notes "template for math notes" bi snippet math_notes "template for math notes" bi
#import "/templates/math_notes.typ": template, lref #import "/templates/math_notes.typ": template, lref
#import "/templates/libs.typ": *
#show: template.with( #show: template.with(
title: "$1", title: "$1",
) )
@ -83,6 +93,7 @@ endsnippet
snippet proj "template for project documents" bi snippet proj "template for project documents" bi
#import "/templates/proj.typ": template, lref #import "/templates/proj.typ": template, lref
#import "/templates/libs.typ": *
#show: template.with( #show: template.with(
title: "$1", title: "$1",
) )
@ -114,3 +125,13 @@ snippet figp "create new image figure" bi
caption: [$2], caption: [$2],
) <$1> ) <$1>
endsnippet endsnippet
snippet tabl "create new tablex table" bi
#figure(
tablef(columns: $1,
$0
),
caption: [$2],
kind: table,
) <$3>
endsnippet

View File

@ -87,6 +87,7 @@ export PATH="$PATH":~/.local/bin/pyinstantref
export PATH="$PATH":"$XDG_DATA_HOME"/npm/bin export PATH="$PATH":"$XDG_DATA_HOME"/npm/bin
export PATH="$PATH":"$XDG_DATA_HOME"/go/bin export PATH="$PATH":"$XDG_DATA_HOME"/go/bin
export PATH="$PATH":"$XDG_DATA_HOME"/cargo/bin
# cppman can't set it itself for some reason # cppman can't set it itself for some reason
export MANPATH="$MANPATH":~/.cache/cppman/ export MANPATH="$MANPATH":~/.cache/cppman/

View File

@ -7,7 +7,7 @@
# config.bind(",fL", "hint links userscript fixlink.sh -t") # config.bind(",fL", "hint links userscript fixlink.sh -t")
# #
REDDIT="reddit.baby" REDDIT="old.reddit.com"
TWITTER="nitter.net" TWITTER="nitter.net"
# genius lyrics # genius lyrics
GENIUS="sing.whatever.social" GENIUS="sing.whatever.social"