add scnvim

This commit is contained in:
Anish L 2022-08-02 21:24:53 +10:00
parent 483d9abc84
commit c0944fc2d9

View file

@ -78,6 +78,16 @@ let
sha256 = "ZV0vPYiZI5/3Isw2l7rrLuiO+kA9G0vrA6OxHFkLTFw="; 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; [ 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:vimwiki_list = [{ 'path': '~/kitaab/vimwiki', 'auto_tags': 1, 'auto_diary_index': 1, 'auto_generate_links': 1 }]
let g:sync_taskwarrior = 0 let g:sync_taskwarrior = 0
let g:zettel_format = "%y%m%d-%H%M" 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="\<Space>" let g:mapleader="\<Space>"
@ -496,7 +507,7 @@ in
capabilities = require('cmp_nvim_lsp').update_capabilities(capabilities) capabilities = require('cmp_nvim_lsp').update_capabilities(capabilities)
local lspconfig = require('lspconfig') local lspconfig = require('lspconfig')
local servers = { 'clojure_lsp', 'terraform_lsp' } local servers = { 'clojure_lsp', 'terraform_lsp', 'zls' }
for _, lsp in ipairs(servers) do for _, lsp in ipairs(servers) do
lspconfig[lsp].setup { lspconfig[lsp].setup {
on_attach = function(client, bufnr) on_attach = function(client, bufnr)
@ -630,6 +641,7 @@ in
require("which-key").setup{} require("which-key").setup{}
require('leap').set_default_keymaps() require('leap').set_default_keymaps()
require('scnvim').setup()
EOF EOF
''; '';
@ -642,6 +654,7 @@ in
rnix-lsp rnix-lsp
terraform-lsp terraform-lsp
clj-kondo clj-kondo
zls
gcc gcc
nodePackages.pyright nodePackages.pyright
shellcheck shellcheck
@ -681,6 +694,7 @@ in
emmet-vim emmet-vim
csv-vim csv-vim
direnv-vim direnv-vim
zig-vim
# kitaab stuff # kitaab stuff
vimwiki vimwiki
@ -721,6 +735,7 @@ in
# experimental # experimental
nvim-luapad nvim-luapad
nvim-navic nvim-navic
scnvim
leap leap
# TODO break with nvim 0.8.0 # TODO break with nvim 0.8.0
# these are here until i upgrade my nixos channnel in the flake # these are here until i upgrade my nixos channnel in the flake