1
Fork 0
This commit is contained in:
Matei Adriel 2022-11-14 01:16:10 +01:00
parent 7c61e64fa8
commit 01ee066c62
20 changed files with 182 additions and 657 deletions
dotfiles/neovim/ftplugin

View file

@ -1,11 +1,9 @@
local A = require("my.plugins.arpeggio")
print("Initializing nix keybinds...")
-- Use _ug_ to fetchgit stuff
A.chordSilent("n", "ug",
":lua require('my.helpers.update-nix-fetchgit').update()<CR>",
{ settings = "b" })
-- Use _<leader>lg_ to fetchgit stuff
vim.keymap.set("n", "<leader>lg", function()
require("my.helpers").saveCursor(function()
vim.cmd(":%!update-nix-fetchgit")
end)
end, { buffer = true, desc = "Update all fetchgit calls" })
-- Idk why this isn't here by default
vim.api.nvim_buf_set_option(0, "commentstring", "# %s")