]> git.wincent.com - wincent.git/commitdiff
chore(nvim): turn on Sorbet by default main master
authorGreg Hurrell <wincent@github.com>
Thu, 24 Nov 2022 16:34:50 +0000 (17:34 +0100)
committerGreg Hurrell <wincent@github.com>
Thu, 24 Nov 2022 16:34:50 +0000 (17:34 +0100)
No need to do this on Codespaces because the ones I use already have it.
Can't do it on Darwin for annoying reasons noted in the comment (and
setting up a custom Ruby earlier in the `$PATH` seems fraught and maybe
not worth it). May still want to do it on non-Codespace Linux box, but
can cross that bridge later on.

aspects/nvim/files/.config/nvim/lua/wincent/lsp.lua
aspects/ruby/index.ts

index c3ac4b189b97a1348c8cbd99b74274a604b257c9..51d02cbf41381dd2b1dd9bd599c6a5c69df0fa56 100644 (file)
@@ -106,18 +106,18 @@ lsp.init = function()
     on_attach = on_attach,
   })
 
+  --[[
   require('lspconfig').solargraph.setup({
     capabilities = capabilities,
     handlers = handlers,
     on_attach = on_attach,
   })
-  --[[
+  --]]
   require'lspconfig'.sorbet.setup{
     capabilities = capabilities,
     handlers = handlers,
     on_attach = on_attach,
   }
-  --]]
 
   require('lspconfig').tsserver.setup({
     capabilities = capabilities,
index 17aed632f018b0719674e1c0c8d0f95a0af59c1d..7f7d93e3b4da2431acd8aedd2474830f5dbf1f21 100644 (file)
@@ -7,6 +7,16 @@ task('install gems', async () => {
 
   if (is('darwin')) {
     gems.push('prefnerd');
+
+    // Would like to do this, but:
+    //
+    //    There are no versions of sorbet-static (= 0.5.10564) compatible with
+    //    your Ruby & RubyGems. Maybe try installing an older version of the
+    //    gem you're looking for?
+    //    sorbet-static requires Ruby version >= 2.7.0. The current ruby version
+    //    is 2.6.10.210.
+    //
+    //gems.push('sorbet');
   }
 
   for (const gem of gems) {