Skip to content

Arthi-chaud/lambdananas-language-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Icon Language Server for Lambdananas

This repository contains the Language Server for Lambdananas, EPITECH's Haskell Coding Style Checker. It is compatible with VSCode and Neovim.

Features

  • See Lambdananas' warnings in your IDE
  • Quick access to EPITECH's Coding Style Documentation
  • Insert EPITECH Header using Code Actions

VSCode VSCode Diagnostics

Installation

1 - Install Lambdananas

git clone [email protected]:Epitech/lambdananas.git
cd lambdananas
stack install

2 - Install the Language Server

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.

3 - Setup the Language Server for your IDE

VSCode

  • Go to the Extension Tab
  • Search for 'Lambdananas for VSCode'
  • Click Install
  • You're done ✅

👉 Marketplace Link

Neovim

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()

How to update

  • To update Lambdananas, repeat step 1.
  • To update the Language Server, repeat step 2.

Contributing

Want to contribute? Or spotted a bug? Feel free to open a pull request or an issue !