Parcourir la source

add workspace requirement for cspell to attach to buffer

Noah Vogt il y a 7 heures
Parent
commit
4d14ee1db8
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  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 = {