vim: add js/ts/kotlin things

This commit is contained in:
Sam W 2022-05-31 14:16:08 +01:00
parent 0f8cf497fe
commit 2ca606af00
2 changed files with 18 additions and 1 deletions

View File

@ -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 {

View File

@ -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).