Compare commits

...

3 Commits

6 changed files with 37 additions and 9 deletions

View File

@ -35,6 +35,7 @@
gpgSigningKey = "4AA25D647AA54CC7"; gpgSigningKey = "4AA25D647AA54CC7";
gpgSSHKeys = [ "1F937AC8F77ED74CE24EAAE79B5601F73C6D115F" ]; gpgSSHKeys = [ "1F937AC8F77ED74CE24EAAE79B5601F73C6D115F" ];
theme = "dark"; theme = "dark";
vimwikiPath = "~/vimwiki";
}; };
}; };
"mmandl@NB11313" = home-manager.lib.homeManagerConfiguration { "mmandl@NB11313" = home-manager.lib.homeManagerConfiguration {
@ -55,6 +56,7 @@
gpgSigningKey = "088ED38F036C7AF2"; gpgSigningKey = "088ED38F036C7AF2";
gpgSSHKeys = [ "AEB2BF3FF9CF9529E9A3C6F1A202D21686FF9278" ]; gpgSSHKeys = [ "AEB2BF3FF9CF9529E9A3C6F1A202D21686FF9278" ];
theme = "dark"; theme = "dark";
vimwikiPath = "~/vimwiki";
}; };
}; };
}; };

View File

@ -1,4 +1,4 @@
{ pkgs, theme, ... }: { pkgs, theme, vimwikiPath, ... }:
{ {
# symlink for a stable path # symlink for a stable path
home.file.".vscode-extensions/vscode-lldb".source = pkgs.vscode-extensions.vadimcn.vscode-lldb; home.file.".vscode-extensions/vscode-lldb".source = pkgs.vscode-extensions.vadimcn.vscode-lldb;
@ -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: [
@ -137,8 +143,6 @@
extraConfig = '' extraConfig = ''
lua << EOF lua << EOF
vim.o.guifont = "DejaVu Sans Mono:h10"
${builtins.readFile ./keymaps.lua } ${builtins.readFile ./keymaps.lua }
${builtins.readFile ./options.lua } ${builtins.readFile ./options.lua }
${builtins.readFile ./commands.lua } ${builtins.readFile ./commands.lua }
@ -156,8 +160,10 @@
${builtins.readFile ./nvim-cmp.lua } ${builtins.readFile ./nvim-cmp.lua }
${builtins.readFile ./telescope.lua } ${builtins.readFile ./telescope.lua }
do
local vim_theme = "${theme}";
${builtins.readFile ./themes.lua } ${builtins.readFile ./themes.lua }
vim.opt.background = '${theme}' end
${builtins.readFile ./project-nvim.lua } ${builtins.readFile ./project-nvim.lua }
${builtins.readFile ./dap.lua } ${builtins.readFile ./dap.lua }
@ -165,6 +171,11 @@
${builtins.readFile ./illuminate.lua } ${builtins.readFile ./illuminate.lua }
${builtins.readFile ./wilder.lua } ${builtins.readFile ./wilder.lua }
do
local vimwiki_path = "${vimwikiPath}"
${builtins.readFile ./vimwiki.lua }
end
vim.g.gitblame_date_format = "%r" vim.g.gitblame_date_format = "%r"
require("nvim-autopairs").setup({}) require("nvim-autopairs").setup({})

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,
}) })

View File

@ -1 +1,2 @@
vim.cmd("colorscheme solarized") vim.cmd("colorscheme solarized")
vim.opt.background = vim_theme

12
neovim/vimwiki.lua Normal file
View File

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

View File

@ -7,5 +7,6 @@
gs = "git status"; gs = "git status";
gd = "git diff"; gd = "git diff";
k = "kubectl"; k = "kubectl";
ww = "nvim -c VimwikiIndex";
}; };
} }