From c0944fc2d93ef35098296750ab2d11858f61e2a6 Mon Sep 17 00:00:00 2001 From: Anish L Date: Tue, 2 Aug 2022 21:24:53 +1000 Subject: [PATCH] add scnvim --- users/profiles/nvim/default.nix | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/users/profiles/nvim/default.nix b/users/profiles/nvim/default.nix index 3a00875c..5c72bd9d 100644 --- a/users/profiles/nvim/default.nix +++ b/users/profiles/nvim/default.nix @@ -78,6 +78,16 @@ let sha256 = "ZV0vPYiZI5/3Isw2l7rrLuiO+kA9G0vrA6OxHFkLTFw="; }; }; + scnvim = pkgs.vimUtils.buildVimPluginFrom2Nix { + pname = "scnvim"; + version = "2022-06-04"; + src = pkgs.fetchFromGitHub { + owner = "davidgranstrom"; + repo = "scnvim"; + rev = "746cc0db820d02a9c36b8f9ba2eac9725fa73107"; + sha256 = "kvSwS6FNUY2Ue84NhWLLcm0ldLMSp4WqQ7s6TUoX6Cc="; + }; + }; }; my-python-packages = python-packages: with python-packages; [ @@ -271,6 +281,7 @@ in let g:vimwiki_list = [{ 'path': '~/kitaab/vimwiki', 'auto_tags': 1, 'auto_diary_index': 1, 'auto_generate_links': 1 }] let g:sync_taskwarrior = 0 let g:zettel_format = "%y%m%d-%H%M" + let g:vimwiki_list = [{'path': '~/kitaab/vimwiki', 'nested_syntaxes': {'python': 'python', 'c++': 'cpp', 'nix': 'nix', 'bash': 'sh'}}] let g:mapleader="\" @@ -496,7 +507,7 @@ in capabilities = require('cmp_nvim_lsp').update_capabilities(capabilities) local lspconfig = require('lspconfig') - local servers = { 'clojure_lsp', 'terraform_lsp' } + local servers = { 'clojure_lsp', 'terraform_lsp', 'zls' } for _, lsp in ipairs(servers) do lspconfig[lsp].setup { on_attach = function(client, bufnr) @@ -630,6 +641,7 @@ in require("which-key").setup{} require('leap').set_default_keymaps() + require('scnvim').setup() EOF ''; @@ -642,6 +654,7 @@ in rnix-lsp terraform-lsp clj-kondo + zls gcc nodePackages.pyright shellcheck @@ -681,6 +694,7 @@ in emmet-vim csv-vim direnv-vim + zig-vim # kitaab stuff vimwiki @@ -721,6 +735,7 @@ in # experimental nvim-luapad nvim-navic + scnvim leap # TODO break with nvim 0.8.0 # these are here until i upgrade my nixos channnel in the flake