diff --git a/neovim/default.nix b/neovim/default.nix index 31feeac..79d2cd9 100644 --- a/neovim/default.nix +++ b/neovim/default.nix @@ -8,6 +8,7 @@ { imports = [ ./lsp.nix + ./notes.nix ./modules/commands.nix @@ -40,15 +41,6 @@ autoGroups.BigFileOptimizer = { }; autoCmd = [ - { - event = [ "User" ]; - pattern = [ "WikiBufferInitialized" ]; - callback = helpers.mkRaw '' - function() - vim.diagnostic.disable(0) - end - ''; - } { event = "BufReadPost"; pattern = [ @@ -91,8 +83,6 @@ ]; globals = { - wiki_global_load = 0; - wiki_root = "~/wiki"; neo_tree_remove_legacy_commands = 1; mapleader = " "; }; @@ -209,10 +199,6 @@ } ]; - plugins.markview = { - enable = true; - }; - plugins.nvim-osc52 = { enable = true; package = pkgs.vimPlugins.nvim-osc52; @@ -484,10 +470,8 @@ ]; extraPlugins = with pkgs.vimPlugins; [ - wiki-vim telescope-ui-select-nvim vim-snippets - markdown-preview-nvim vim-just ltex_extra-nvim vim-wakatime diff --git a/neovim/notes.nix b/neovim/notes.nix new file mode 100644 index 0000000..c231a46 --- /dev/null +++ b/neovim/notes.nix @@ -0,0 +1,28 @@ +{ helpers, pkgs, ... }: +{ + autoCmd = [ + { + event = [ "User" ]; + pattern = [ "WikiBufferInitialized" ]; + callback = helpers.mkRaw '' + function() + vim.diagnostic.disable(0) + end + ''; + } + ]; + + globals = { + wiki_global_load = 0; + wiki_root = "~/wiki"; + }; + + plugins.markview = { + enable = true; + }; + + extraPlugins = with pkgs.vimPlugins; [ + wiki-vim + markdown-preview-nvim + ]; +}