1
Fork 0
satellite/dotfiles/neovim/ftplugin/nix.lua
Matei Adriel 01ee066c62 Backup
2022-11-14 01:16:10 +01:00

10 lines
329 B
Lua

-- 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")