diff --git a/lua/core/keymaps.lua b/lua/core/keymaps.lua index d529019..9242faf 100644 --- a/lua/core/keymaps.lua +++ b/lua/core/keymaps.lua @@ -36,12 +36,16 @@ end, {silent = true}) vim.keymap.set("n", "", ":NvimTreeToggle") vim.keymap.set("n", "ft", ":NvimTreeToggle") --- y: telescope -local telescope = require "telescope.builtin" -vim.keymap.set("n", "", function() telescope.find_files {} end) -vim.keymap.set("n", "", function() telescope.git_files {} end) -vim.keymap.set("n", "", function() telescope.buffers {} end) -vim.keymap.set({ "n", "i" }, "", function() telescope.registers {} end) +-- d: telescope +local telescope_builtin = require("telescope.builtin") +vim.keymap.set("n", "df", function() telescope_builtin.find_files {} end) +vim.keymap.set("n", "", function() telescope_builtin.find_files {} end) +vim.keymap.set("n", "dg", function() telescope_builtin.git_files {} end) +vim.keymap.set("n", "", function() telescope_builtin.git_files {} end) +vim.keymap.set("n", "db", function() telescope_builtin.buffers {} end) +vim.keymap.set("n", "dc", function() telescope_builtin.colorscheme {} end) +vim.keymap.set("n", "dr", function() telescope_builtin.registers {} end) +vim.keymap.set({ "n", "i" }, "", function() telescope_builtin.registers {} end) -- w: window vim.keymap.set("n", "w1", "o") vim.keymap.set("n", "wx", ":x") diff --git a/snippets/agda.snippets b/snippets/agda.snippets index e44c425..8b9fe1f 100644 --- a/snippets/agda.snippets +++ b/snippets/agda.snippets @@ -1,51 +1,44 @@ +# Misc snippet -> → - +snippet |-> + ↦ +snippet :: + ∷ snippet all ∀ - snippet exist ∃ - snippet nexist ∄ - snippet void ∅ - -snippet mem +snippet in ∈ - -snippet nmem +snippet nin ∉ - snippet neg ¬ - -snippet :: - ∷ - +snippet end + ∎ snippet == ≡ - +snippet /== + ≡ +snippet \< + ⟨ +snippet \> + ⟩ snippet <= ≤ - snippet >= ≥ - -snippet end - ∎ - snippet times × - snippet div ÷ - snippet top ⊤ - snippet bot ⊥ diff --git a/snippets/tex.snippets b/snippets/tex.snippets index cf3de46..20c8160 100644 --- a/snippets/tex.snippets +++ b/snippets/tex.snippets @@ -22,7 +22,7 @@ snippet fr "\frac {} {}" bA snippet img "\includegraphics ..." bA \begin{align*} - \includegraphics[height=8cm]{$1} + \includegraphics[height=$1]{$2} \end{align*} $0