Compare commits
4 Commits
beb1900871
...
f86c799de7
Author | SHA1 | Date | |
---|---|---|---|
f86c799de7 | |||
f066082b30 | |||
4d0123e3bc | |||
eab94f3433 |
@ -116,6 +116,10 @@ highlight GitGutterAdd ctermfg=green
|
||||
highlight GitGutterChange ctermfg=yellow
|
||||
highlight GitGutterDelete ctermfg=red
|
||||
|
||||
" fancy picker stuff
|
||||
|
||||
source $XDG_CONFIG_HOME/nvim/telescope.vim
|
||||
|
||||
call plug#end()
|
||||
|
||||
source $XDG_CONFIG_HOME/nvim/color.vim
|
||||
|
@ -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', '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>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', '<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)
|
||||
|
9
src/.config/nvim/telescope.vim
Normal file
9
src/.config/nvim/telescope.vim
Normal 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>
|
@ -1,5 +1,6 @@
|
||||
snippet problem "template for problem notes" bi
|
||||
#import "/templates/problems.typ": template, source_code, status, lref
|
||||
#import "/templates/libs.typ": *
|
||||
#show: template.with(
|
||||
problem_url: "$1",
|
||||
title: "$2",
|
||||
@ -10,6 +11,7 @@ endsnippet
|
||||
|
||||
snippet index "template for index documents" bi
|
||||
#import "/templates/index.typ": template, lref
|
||||
#import "/templates/libs.typ": *
|
||||
#show: template.with(
|
||||
title: "$1",
|
||||
)
|
||||
@ -18,6 +20,7 @@ endsnippet
|
||||
|
||||
snippet sfd "template for lecture notes" bi
|
||||
#import "/templates/sfd.typ": template, lref
|
||||
#import "/templates/libs.typ": *
|
||||
#show: template.with(
|
||||
lecture_url: "$1",
|
||||
title: "$2",
|
||||
@ -27,6 +30,8 @@ endsnippet
|
||||
|
||||
snippet chem "template for chemistry notes" bi
|
||||
#import "/templates/chem.typ": template, lref, chem, gaz, liq, sol, aq
|
||||
#import "/templates/libs.typ": *
|
||||
|
||||
#show: template.with(
|
||||
title: "$1",
|
||||
)
|
||||
@ -42,6 +47,7 @@ endsnippet
|
||||
|
||||
snippet contest "template for contest problems" bi
|
||||
#import "/templates/contest.typ": template, source_code, status, lref
|
||||
#import "/templates/libs.typ": *
|
||||
#show: template.with(
|
||||
title: "$1",
|
||||
stat: "${2:incomplete}",
|
||||
@ -51,6 +57,7 @@ endsnippet
|
||||
|
||||
snippet algs "template for compsci notes" bi
|
||||
#import "/templates/algs.typ": template, source_code, lref
|
||||
#import "/templates/libs.typ": *
|
||||
#show: template.with(
|
||||
title: "$1",
|
||||
)
|
||||
@ -59,6 +66,7 @@ endsnippet
|
||||
|
||||
snippet general "general template" bi
|
||||
#import "/templates/general.typ": template, lref
|
||||
#import "/templates/libs.typ": *
|
||||
#show: template.with(
|
||||
title: "$1",
|
||||
)
|
||||
@ -67,6 +75,7 @@ endsnippet
|
||||
|
||||
snippet math_prob "template for math problems" bi
|
||||
#import "/templates/math_prob.typ": template, lref
|
||||
#import "/templates/libs.typ": *
|
||||
#show: template.with(
|
||||
title: "$1",
|
||||
)
|
||||
@ -75,6 +84,7 @@ endsnippet
|
||||
|
||||
snippet math_notes "template for math notes" bi
|
||||
#import "/templates/math_notes.typ": template, lref
|
||||
#import "/templates/libs.typ": *
|
||||
#show: template.with(
|
||||
title: "$1",
|
||||
)
|
||||
@ -83,6 +93,7 @@ endsnippet
|
||||
|
||||
snippet proj "template for project documents" bi
|
||||
#import "/templates/proj.typ": template, lref
|
||||
#import "/templates/libs.typ": *
|
||||
#show: template.with(
|
||||
title: "$1",
|
||||
)
|
||||
@ -114,3 +125,13 @@ snippet figp "create new image figure" bi
|
||||
caption: [$2],
|
||||
) <$1>
|
||||
endsnippet
|
||||
|
||||
snippet tabl "create new tablex table" bi
|
||||
#figure(
|
||||
tablef(columns: $1,
|
||||
$0
|
||||
),
|
||||
caption: [$2],
|
||||
kind: table,
|
||||
) <$3>
|
||||
endsnippet
|
||||
|
@ -87,6 +87,7 @@ export PATH="$PATH":~/.local/bin/pyinstantref
|
||||
|
||||
export PATH="$PATH":"$XDG_DATA_HOME"/npm/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
|
||||
export MANPATH="$MANPATH":~/.cache/cppman/
|
||||
|
@ -7,7 +7,7 @@
|
||||
# config.bind(",fL", "hint links userscript fixlink.sh -t")
|
||||
#
|
||||
|
||||
REDDIT="reddit.baby"
|
||||
REDDIT="old.reddit.com"
|
||||
TWITTER="nitter.net"
|
||||
# genius lyrics
|
||||
GENIUS="sing.whatever.social"
|
||||
|
Loading…
x
Reference in New Issue
Block a user