Skip to content

Commit 4ea08ed

Browse files
committed
Update to root_marker for sorbet
1 parent 710e832 commit 4ea08ed

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

lib/nvim/lua/plugin_config/lsp.lua

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -303,10 +303,6 @@ capabilities = vim.tbl_deep_extend('force', capabilities, require('cmp_nvim_lsp'
303303
local lsp_config = vim.lsp.config
304304
local lsp_enable = vim.lsp.enable
305305

306-
local function sorbet_root_dir(fname)
307-
return require('lspconfig').util.root_pattern('Gemfile', 'sorbet')(fname)
308-
end
309-
310306
local servers = {
311307
nixd = {},
312308
graphql = {},
@@ -352,7 +348,7 @@ local servers = {
352348
sorbet = {
353349
cmd = { 'srb', 'tc', '--lsp' },
354350
filetypes = { 'ruby' },
355-
root_dir = sorbet_root_dir,
351+
root_markers = { 'sorbet', 'Gemfile', '.git' },
356352
priority = 1000000,
357353
},
358354

0 commit comments

Comments
 (0)