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
|
# Install packages
|
||||||
home.packages = with pkgs;
|
home.packages = with pkgs;
|
||||||
[ gcc tree-sitter ] ++ # Basic dev tools
|
[ 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
|
(with ocamlPackages; [ ocaml opam dune_3 dune-release merlin ocaml-lsp odoc ocamlformat utop ]) ++ # OCaml
|
||||||
[ python3 ] ++ # I guess.....
|
[ python3 ] ++ # I guess.....
|
||||||
[ grim slurp wl-clipboard jq (callPackage ./pkgs/xdg-terminal-exec/xdg-terminal-exec.nix {}) blueman ] ++ # Basic utilities
|
[ grim slurp wl-clipboard jq (callPackage ./pkgs/xdg-terminal-exec/xdg-terminal-exec.nix {}) blueman ] ++ # Basic utilities
|
||||||
|
|
@ -95,6 +95,10 @@ in
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
programs.pandoc = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
# Configure notifications
|
# Configure notifications
|
||||||
services.dunst = {
|
services.dunst = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
||||||
|
|
@ -74,6 +74,23 @@ plugins = {
|
||||||
end
|
end
|
||||||
},
|
},
|
||||||
"lervag/vimtex",
|
"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',
|
-- 'nvim-lualine/lualine.nvim',
|
||||||
-- dependencies = { 'nvim-tree/nvim-web-devicons' }
|
-- dependencies = { 'nvim-tree/nvim-web-devicons' }
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue