added auto-pandoc; still doesn't work lol

This commit is contained in:
vorboyvo 2024-02-13 09:04:53 -05:00
parent d464c17af4
commit 619994c5cb
2 changed files with 23 additions and 2 deletions

View file

@ -21,7 +21,7 @@ in
# Install packages
home.packages = with pkgs;
[ gcc tree-sitter ] ++ # Basic dev tools
[ texliveFull ] ++ # TeX distribution
[ texliveFull ] ++ # Typesetting
(with ocamlPackages; [ ocaml opam dune_3 dune-release merlin ocaml-lsp odoc ocamlformat utop ]) ++ # OCaml
[ python3 ] ++ # I guess.....
[ grim slurp wl-clipboard jq (callPackage ./pkgs/xdg-terminal-exec/xdg-terminal-exec.nix {}) blueman ] ++ # Basic utilities
@ -95,6 +95,10 @@ in
enable = true;
};
programs.pandoc = {
enable = true;
};
# Configure notifications
services.dunst = {
enable = true;

View file

@ -70,10 +70,27 @@ plugins = {
lazy = false,
priority = 1000,
config = function()
require 'nordic' .load()
require'nordic'.load()
end
},
"lervag/vimtex",
{
'jghauser/auto-pandoc.nvim',
dependencies = { 'nvim-lua/plenary.nvim' },
ft = "markdown",
config = function()
vim.api.nvim_create_autocmd("BufEnter", {
pattern = "*.md",
callback = function()
vim.keymap.set("n", "go", function()
require("auto-pandoc").run_pandoc()
end, { silent = true, buffer = 0 })
end,
group = vim.api.nvim_create_augroup("setAutoPandocKeymap", {}),
desc = "Set keymap for auto-pandoc",
})
end
},
-- {
-- 'nvim-lualine/lualine.nvim',
-- dependencies = { 'nvim-tree/nvim-web-devicons' }