This repository contains the Language Server for Lambdananas, EPITECH's Haskell Coding Style Checker. It is compatible with VSCode and Neovim.
- See Lambdananas' warnings in your IDE
- Quick access to EPITECH's Coding Style Documentation
- Insert EPITECH Header using Code Actions
git clone [email protected]:Epitech/lambdananas.git
cd lambdananas
stack install
git clone [email protected]:Arthi-chaud/lambdananas-language-server.git
cd lambdananas-language-server
stack install
These steps may take a while. Once installed, you can safely delete the cloned directories.
- Go to the Extension Tab
- Search for 'Lambdananas for VSCode'
- Click
Install
- You're done ✅
👉 Marketplace Link
Use nvim-lspconfig
to plug the Language Server to Neovim. In your configuration, add the following lines:
local setup_lambdananas = function()
local lspconfig = require("lspconfig")
local configs = require("lspconfig.configs")
if not configs.lambdananas then
configs.lambdananas = {
default_config = {
cmd = { "lambdananas-language-server", "." },
filetypes = { "haskell", "lhaskell" },
root_dir = lspconfig.util.root_pattern("stack.yaml", "*.cabal", "package.yaml"),
single_file_support = true,
},
}
end
lspconfig.lambdananas.setup({})
end
setup_lambdananas()
- To update Lambdananas, repeat step 1.
- To update the Language Server, repeat step 2.
Want to contribute? Or spotted a bug? Feel free to open a pull request or an issue !