setup_handlers -> vim.lsp.config #1926
-
Please help me convert
specifically When I use
then it's not attaching |
Beta Was this translation helpful? Give feedback.
Answered by
williamboman
May 7, 2025
Replies: 1 comment 6 replies
-
This is technically not related to Mason as these things are in core Neovim. With vim.lsp.config('ts_ls', {
on_attach = on_attach,
- root_dir = lspconfig.util.root_pattern('package.json'),
- single_file_support = false,
+ root_markers = { 'package.json' },
+ workspace_required = true,
})
|
Beta Was this translation helpful? Give feedback.
6 replies
Answer selected by
mainendra
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is technically not related to Mason as these things are in core Neovim. With
vim.lsp.config
you specify the "root directory" via eitherroot_markers
orroot_dir
(see:h vim.lsp.Config
).single_file_support = false
is nowworkspace_required = true
.