From 2ca606af004884f78a71e333472c47b7221d31e2 Mon Sep 17 00:00:00 2001 From: Sam Willcocks Date: Tue, 31 May 2022 14:16:08 +0100 Subject: [PATCH] vim: add js/ts/kotlin things --- home/dev.lua | 3 +++ home/vim-dev.nix | 16 +++++++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/home/dev.lua b/home/dev.lua index b9cd2e3..24d8b0a 100644 --- a/home/dev.lua +++ b/home/dev.lua @@ -30,6 +30,9 @@ require'lspconfig'.rnix.setup{ require'lspconfig'.rls.setup{ on_attach = on_attach, } +require'lspconfig'.tsserver.setup{ + on_attach = on_attach, +} -- Diags with Trouble require('trouble').setup { diff --git a/home/vim-dev.nix b/home/vim-dev.nix index aa6709c..a94f06b 100644 --- a/home/vim-dev.nix +++ b/home/vim-dev.nix @@ -1,4 +1,15 @@ -{ pkgs, lib, system, ... }: { +{ pkgs, lib, system, ... }: +let + vim-vue-plugin = pkgs.vimUtils.buildVimPlugin { + name = "vim-vue-plugin"; + src = pkgs.fetchFromGitHub { + owner = "leafOfTree"; + repo = "vim-vue-plugin"; + rev = "b2bb4dd8f6d97909c48bc33937177d4068921a10"; + sha256 = "hstEInKVFra1g47p6wKA7uCDBwXpoZ3iJz/ZaRjB34Q="; + }; + }; +in { programs.neovim.plugins = with pkgs.vimPlugins; [ # More fancy shit @@ -9,6 +20,9 @@ rust-vim vim-terraform vim-protobuf + vim-javascript + vim-vue-plugin + kotlin-vim ] # delve is unsupported on aarch64-linux and golangci-lint is broken on x86_64-darwin # (see https://github.com/NixOS/nixpkgs/issues/168984).