minor changes xx

This commit is contained in:
Solomon Laing 2022-11-29 15:59:39 +10:30
parent 673c758ecb
commit a89525b90f
2 changed files with 9 additions and 1 deletions

View File

@ -143,6 +143,8 @@ cmd setbg "$1"
cmd bulkrename $vidir
# Bindings
map <esc> :quit
map <c-f> $lf -remote "send $id select '$(fzf)'"
map J $lf -remote "send $id cd $(sed -e 's/\s*#.*//' -e '/^$/d' -e 's/^\S*\s*//' ${XDG_CONFIG_HOME:-$HOME/.config}/shell/bm-dirs | fzf)"
map gg top

View File

@ -90,7 +90,6 @@ local m_mappings = {
local mappings = {
a = { "<cmd>Lspsaga code_action<cr>", "Action" },
c = { "<cmd>Bdelete<cr>", "Close Buffer" },
C = { "<cmd>w! | !compiler %<cr>", "Compile File" },
H = { "<cmd>split<cr>", "split" },
h = { "<cmd>lua vim.lsp.buf.hover()<CR>", "Hover" },
n = { "<cmd>NvimTreeToggle<cr>", "Explorer" },
@ -103,6 +102,13 @@ local mappings = {
["/"] = { '<cmd>lua require("Comment.api").toggle.linewise.current()<CR>', "Comment" },
["'"] = { "<cmd>close<CR>", "Close split" },
C = {
name = "Compiler",
c = { "<cmd>w! | !compiler %<cr>", "Compile File" },
b = { "<cmd>w! | !pandoc % -t beamer -o presentation.pdf<cr>", "Beamer Presentation" },
},
b = {
name = "Buffer",
b = { "<cmd>Telescope buffers<cr>", "Telescope" },