浏览代码

add workspace requirement for cspell to attach to buffer

Noah Vogt 9 小时之前
父节点
当前提交
4d14ee1db8
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      dot-config/nvim/lua/lsp.lua

+ 1 - 0
dot-config/nvim/lua/lsp.lua

@@ -90,6 +90,7 @@ vim.lsp.config('cspell', {
   },
     -- Explicitly tell Neovim where to look for the project root
   root_markers = { 'cspell.config.yaml', 'cspell.json', '.cspell.json' },
+  workspace_required = true,
   capabilities = capabilities,
   -- initializationOptions often helps where 'settings' fails
   initializationOptions = {