feat(nvim): enable vimwiki

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

View File

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