try out vimwiki

This commit is contained in:
Kopatz
2025-10-06 22:04:11 +02:00
parent 691f7eb601
commit 6e331666e0
7 changed files with 35 additions and 11 deletions

View File

@@ -36,16 +36,16 @@
keymaps = [
# Global
# Default mode is "" which means normal-visual-op
#{
# key = "<leader>x";
# action = "<CMD>NvimTreeToggle<CR>";
# options.desc = "Toggle NvimTree";
#}
{
key = "<leader>x";
action = "<CMD>Neotree toggle<CR>";
options.desc = "Toggle Neotree";
action = "<CMD>NvimTreeToggle<CR>";
options.desc = "Toggle NvimTree";
}
#{
# key = "<leader>x";
# action = "<CMD>Neotree toggle<CR>";
# options.desc = "Toggle Neotree";
#}
{
key = "<leader>p";
action = "<CMD>PasteImg<CR>";

View File

@@ -22,8 +22,8 @@ let
./lsp.nix
./images.nix
./none-ls.nix
#./nvim-tree.nix
./neo-tree.nix
./nvim-tree.nix
#./neo-tree.nix
./telescope.nix
./toggleterm.nix
./treesitter.nix
@@ -35,6 +35,7 @@ let
./hop.nix
./colorizer.nix
./surround.nix
./vimwiki.nix
]);
merged =
builtins.foldl' (acc: elem: lib.recursiveUpdate acc elem) { } configs;

View File

@@ -1,3 +1,8 @@
{
plugins.render-markdown.enable = true;
plugins.render-markdown = {
enable = true;
settings = {
file_types = [ "markdown" "vimwiki"];
};
};
}

View File

@@ -5,6 +5,7 @@
enable = true;
window.width = 30;
filesystem.followCurrentFile.enabled = true;
filesystem.bindToCwd = true;
sourceSelector = {
#statusline = true;
winbar = true;

View File

@@ -3,6 +3,9 @@
treesitter = {
enable = true;
nixGrammars = true;
languageRegister = {
markdown = "vimwiki";
};
settings = {
indent.enable = true;
highlight = {

View File

@@ -0,0 +1,14 @@
{
plugins.vimwiki = {
enable = true;
settings = {
list = [
{
ext = ".md";
path = "/synced/default/vimwiki/";
syntax = "markdown";
}
];
};
};
}

View File

@@ -55,7 +55,7 @@
xdg.desktopEntries = {
notes = {
name = "Notes";
exec = "kitty nvim /synced/default/notes.md";
exec = "kitty -d /synced/default/vimwiki nvim /synced/default/vimwiki/index.md";
icon = "nvim";
type = "Application";
categories = [ "Utility" "TextEditor" ];