Skip to content

Instantly share code, notes, and snippets.

@smatting
Created January 23, 2021 09:11
Show Gist options
  • Select an option

  • Save smatting/799ffdf03eb61efd12c27d1f7c951929 to your computer and use it in GitHub Desktop.

Select an option

Save smatting/799ffdf03eb61efd12c27d1f7c951929 to your computer and use it in GitHub Desktop.
dir locals
;; ((haskell-mode
;; (haskell-completion-backend . lsp)))
((haskell-mode . ((haskell-completion-backend . lsp)
(lsp-haskell-server-wrapper-function . (lambda (argv)
(append
(append (list "nix-shell" "-I" "." "--command" )
(list (mapconcat 'identity argv " "))
)
(list (concat (lsp-haskell--get-root) "/shell.nix"))
)
))
(mode . ormolu-format-on-save)
)
))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment