From 6923424bf05763ce015646c0567b0661b54cbf15 Mon Sep 17 00:00:00 2001 From: Alyxia Sother Date: Mon, 15 Jan 2024 14:00:32 +0100 Subject: [PATCH] [nvim] Add rescript plugin & coc config --- nix/hosts/alymac/nvim.nix | 9 ++++++++- nvim/dotfiles/plugins-list.vim | 1 + 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/nix/hosts/alymac/nvim.nix b/nix/hosts/alymac/nvim.nix index 12e2b5e..5b07d7f 100644 --- a/nix/hosts/alymac/nvim.nix +++ b/nix/hosts/alymac/nvim.nix @@ -17,13 +17,20 @@ filetypes = [ "nix" ]; rootPatterns = [ "flake.nix" ]; "settings.nil" = { - "formatting.command" = ["nixpkgs-fmt"]; + "formatting.command" = [ "nixpkgs-fmt" ]; }; }; "go.goPlsOptions" = { completion = true; completeUnimported = true; }; + rescript = { + enable = true; + command = "rescript-language-server"; + args = [ "--node-ipc" ]; + filetypes = [ "rescript" ]; + rootPatterns = [ "rescript.json" "bsconfig.json" ]; + }; }; }; }; diff --git a/nvim/dotfiles/plugins-list.vim b/nvim/dotfiles/plugins-list.vim index 79dc7c1..259f3e4 100644 --- a/nvim/dotfiles/plugins-list.vim +++ b/nvim/dotfiles/plugins-list.vim @@ -46,6 +46,7 @@ let s:plug = funcref('dotfiles#plugman#register') call s:plug('tpope/vim-projectionist') call s:plug('tpope/vim-dispatch') " }}} + call s:plug('rescript-lang/vim-rescript') " }}} " coc {{{