Compare commits

...

7 commits

Author SHA1 Message Date
LilleAila
fedbee3a30
snippets/luasnip: fix formatting 2025-01-12 12:48:44 +01:00
LilleAila
607373645f
Merge remote-tracking branch 'upstream/main' into luasnip-setupOpts 2025-01-12 11:40:57 +01:00
LilleAila
c59f8922b2
snippets/luasnip: add whitespace, organize options
Co-authored-by: diniamo <55629891+diniamo@users.noreply.github.com>
2025-01-12 11:39:41 +01:00
LilleAila
9818d19937
snippets/luasnip: revert adding lazy event 2025-01-12 09:58:55 +01:00
raf
a5a5aba34a
Merge pull request #548 from LilleAila/markdown-prettier-formatter
Some checks are pending
Set up binary cache / cachix (default) (push) Waiting to run
Set up binary cache / cachix (maximal) (push) Waiting to run
Set up binary cache / cachix (nix) (push) Waiting to run
Validate flake & check documentation / Validate Flake Documentation (docs) (push) Waiting to run
Validate flake & check documentation / Validate Flake Documentation (docs-html) (push) Waiting to run
Validate flake & check documentation / Validate Flake Documentation (docs-json) (push) Waiting to run
Validate flake & check documentation / Validate Flake Documentation (docs-manpages) (push) Waiting to run
Validate flake & check documentation / Validate hyperlinks in documentation sources (push) Waiting to run
Validate flake & check formatting / Validate Flake (push) Waiting to run
Validate flake & check formatting / Formatting via Alejandra (push) Waiting to run
Build and deploy documentation / Check latest commit (push) Waiting to run
Build and deploy documentation / publish (push) Blocked by required conditions
Check for typos in the source tree / check-typos (push) Waiting to run
languages/markdown: add prettierd formatter
2025-01-11 17:36:01 +03:00
LilleAila
983a81c96c
languages/markdown: add prettierd to changelog 2025-01-11 15:32:35 +01:00
LilleAila
6e98b894b7
languages/markdown: add prettierd formatter 2025-01-11 12:48:41 +01:00
3 changed files with 18 additions and 3 deletions

View file

@ -52,4 +52,4 @@
- Remove `vim.notes.obsidian.setupOpts.dir`, which was set by default. Fixes
issue with setting the workspace directory.
- Add `vim.snippets.luasnip.setupOpts`, which was previously missing.
- Add a trigger event for luasnip lazy-loading
- Add `"prettierd"` as a formatter option in `vim.languages.markdown.format.type`.

View file

@ -46,6 +46,18 @@
)
'';
};
prettierd = {
package = pkgs.prettierd;
nullConfig = ''
table.insert(
ls_sources,
null_ls.builtins.formatting.prettierd.with({
filetypes = ${expToLua (concatLists [cfg.format.extraFiletypes ["markdown"]])},
command = "${cfg.format.package}/bin/prettierd",
})
)
'';
};
};
in {
options.vim.languages.markdown = {

View file

@ -11,10 +11,13 @@ in {
vim = {
lazy.plugins.luasnip = {
package = "luasnip";
event = "BufEnter";
after = cfg.loaders;
lazy = true;
setupModule = "luasnip";
inherit (cfg) setupOpts;
after = cfg.loaders;
};
startPlugins = cfg.providers;
autocomplete.nvim-cmp = {