Browse Source

add workspace requirement for cspell to attach to buffer

Noah Vogt 7 giờ trước cách đây
mục cha
commit
4d14ee1db8
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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 = {