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