From f0850bf2a4fc06f2b741889bb8a21703563d8e6b Mon Sep 17 00:00:00 2001 From: kat witch Date: Wed, 1 Sep 2021 01:02:23 +0100 Subject: [PATCH] new dev env vim plugins --- config/users/kat/dev/vim/default.nix | 3 +++ config/users/kat/dev/vim/init.vim | 19 +++++++++++++++++++ 2 files changed, 22 insertions(+) diff --git a/config/users/kat/dev/vim/default.nix b/config/users/kat/dev/vim/default.nix index d70c49cb..d05c634c 100644 --- a/config/users/kat/dev/vim/default.nix +++ b/config/users/kat/dev/vim/default.nix @@ -38,7 +38,10 @@ in source ${cocvim} ''; plugins = with pkgs.vimPlugins; [ + neorg + nvim-base16 nvim-treesitter + nvim-ts-rainbow coc-yaml coc-git coc-css diff --git a/config/users/kat/dev/vim/init.vim b/config/users/kat/dev/vim/init.vim index 4c70d86e..80cf058d 100644 --- a/config/users/kat/dev/vim/init.vim +++ b/config/users/kat/dev/vim/init.vim @@ -9,5 +9,24 @@ require'nvim-treesitter.configs'.setup { indent = { enable = true, }, + rainbow = { + enable = true, + extended_mode = true, -- Also highlight non-bracket delimiters like html tags, boolean or table: lang -> boolean + max_file_lines = nil, -- Do not enable for files with more than n lines, int + } } + require('neorg').setup { + -- Tell Neorg what modules to load + load = { + ["core.defaults"] = {}, -- Load all the default modules + ["core.norg.concealer"] = {}, -- Allows for use of icons + ["core.norg.dirman"] = { -- Manage your directories with Neorg + config = { + workspaces = { + my_workspace = "~/neorg" + } + } + } + }, + } EOF