소스 검색

add workspace requirement for cspell to attach to buffer

Noah Vogt 7 시간 전
부모
커밋
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 = {