feat(nvim): enable vimwiki

mandlm 2024-07-27 22:22:59 +02:00
parent 1e7b654477
commit 28d85c3926
Signed by: mandlm
GPG Key ID: 4AA25D647AA54CC7
3 changed files with 24 additions and 4 deletions

View File

@ -81,7 +81,7 @@
lsp-status-nvim
rustaceanvim
neodev-nvim
null-ls-nvim
none-ls-nvim
lsp_lines-nvim
lsp-inlayhints-nvim
@ -92,6 +92,9 @@
# neorg
neorg
neorg-telescope
# vim-wiki
vimwiki
];
withNodeJs = true;
@ -102,8 +105,8 @@
terraform-ls
tflint
bash-language-server
prettierd
nodePackages.yaml-language-server
nodePackages.prettier
nodePackages.eslint_d
nodePackages.typescript-language-server
nodePackages.typescript
@ -128,6 +131,9 @@
#clipboard
xclip
#vimwiki
vimwiki-markdown
];
extraLuaPackages = luaPackages: [
@ -164,6 +170,7 @@
${builtins.readFile ./neorg.lua }
${builtins.readFile ./illuminate.lua }
${builtins.readFile ./wilder.lua }
${builtins.readFile ./vimwiki.lua }
vim.g.gitblame_date_format = "%r"

View File

@ -161,8 +161,9 @@ vim.g.rustaceanvim = {
local null_ls = require("null-ls")
null_ls.setup({
sources = {
null_ls.builtins.formatting.prettier,
null_ls.builtins.diagnostics.tsc,
null_ls.builtins.formatting.prettierd.with({
extra_filetypes = { "vimwiki" },
}),
},
on_attach = on_attach,
})

12
neovim/vimwiki.lua Normal file
View File

@ -0,0 +1,12 @@
vim.g.vimwiki_list = {
{
path = "~/vimwiki",
syntax = "markdown",
ext = ".md",
path_html = "~/vimwiki_html",
custom_wiki2html = "vimwiki_markdown",
}
}
-- disable global markdown hijacking
vim.g.vimwiki_global_ext = 0