added auto-pandoc; still doesn't work lol
This commit is contained in:
parent
d464c17af4
commit
619994c5cb
6
home.nix
6
home.nix
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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' }
|
||||
|
|
|
|||
Loading…
Reference in a new issue