haskell-language-server
coc.nvim
Our great sponsors
haskell-language-server | coc.nvim | |
---|---|---|
102 | 299 | |
2,300 | 22,485 | |
0.9% | 1.4% | |
7.5 | 9.9 | |
3 days ago | 9 days ago | |
Haskell | TypeScript | |
Apache License 2.0 | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
haskell-language-server
- Any open source projects to contribute to for beginners
-
Haskell is a good, useful, and practical programming language.
Indeed, there is a lot of room for improvements. But I just wanted to acknowledge and thank the work of those involved in HLS which IMHO was a game changer in that regard.
-
No HLS support for the "recommended" 9.2.5?
Specifically, gchup and HLS are both opensource community efforts. If you want to see HLS work with ghc-9.2.5, you may want to ask https://github.com/haskell/haskell-language-server or, better, provide them a PR that builds HLS with ghc-9.2.5.
-
dev environment for windows
Sadly ghcup tui is not available on windows, but you can check the available versions with ghcup list. Hls lists the compatible versions of ghc at their github releases. For 1.8.0.0 I went with 9.4.2. To install it and set it to default you have to use the ghcup install ghc 9.4.2 then the ghcup set ghc 9.4.2. Hopefully this will be useful to someone with the same problem.
-
HLS issues an error for Setup.hs and Spec.hs (using hspec-discover)
Here's an issue I created for it: https://github.com/haskell/haskell-language-server/issues/3348
-
Transform your old and tired Haskell source files in shining Notebooks
The code is executed by HLS, see https://github.com/haskell/haskell-language-server/blob/master/plugins/hls-eval-plugin/README.md and then its markdown/html output is displayed by VS Code.
-
What is the correct way to compile non-haskell sourcefiles in a cabal project.
As you can see there, Shake is also a good fit for Cabal scripts. And Cabal scripts work better in 3.8. There are still issues loading them with HLS, but hopefully not for long. For this reason, I also have a build.sh which wraps that, allowing the script to be loaded via GHC directly, but I look forward to being able to remove this.
- haskell-language-server 1.8.0.0 released!
-
[ANNOUNCE] GHC 9.4.1-rc1 is now available
AFAIK the latest GHC version which the haskell language server (which is what the vs code extension uses) supports is 9.2.2, so not yet, I'd say.
-
Proper editor support?
As far as I could see this bug is already reported. It is about stack not being able to handle multi crate project.
coc.nvim
-
Convert neovim .lua to .vim?
All of coc.nvim's extensions are as closely mirrored to the convenience of VSCode extensions. This convenience matters, as you must not be spending time on "tool pain" on work hours. Copy whatever configs you need from the readme to get keybinds set up.
-
Is CMake necessary to set up a C++ "IDE" in neovim?
I'd say just try to copy that code from nvim-cmp readme as is (unless you're using a different package manager ofc) and see if it works for you. If you decide that you've spent too much time on it, you could give https://github.com/neoclide/coc.nvim a try instead. It has vim support as well, and as far as I know it comes with a lot of stuff included.
- Vim plugin like vscode "go to definition" function
-
Advice on moving from Emacs to Neovim
It takes some time to set up nvim to feel like VScode, so don't expect this to happen overnight, you need a lot of plugins because VScode provides a ton of tools out of the box. I would recommend the plugin Coc.nvim. That gets you most of the way there right away. When you're comfortable, nvim provides built in tools, but they require more configuration.
-
What is your minimal omni-completion setup for Python?
I use coc.nvim and disable everything but omnicompletion using the following ~/vim/coc-settings and by only adding the TAB and some other navigation key maps.
-
Error setting up coc for neovim on Windows
coc: health#coc#check 3 ======================================================================== 4 - OK: nvim version satisfied 5 - ERROR: Unable to detect version of node, make sure your node executable is http://nodejs.org/ 6 - ERROR: Javascript entry not found, please compile coc.nvim by esbuild. 7 - ERROR: service could not be initialized 8 - ADVICE: 9 - Use command ":messages" to get error messages. 10 - Open a issue at https://github.com/neoclide/coc.nvim/issues for feedback. 11
Did you read this?
-
Plugins to have VS code tools
coc.nvim and its extensions will get you the farthest. It's a partial port of VSCode backend functionality.
Set up pyright LSP. Either use https://github.com/neoclide/coc.nvim or https://github.com/neovim/nvim-lspconfig. The former is easier to set up and the latter is native to neovim and you can use it with lots of more plugins.
-
Getting intellisense and code completion in nvim or vscode
I've been using coc.nvim along with the coc-solargraph plugin. These work well for me and provide very good code completion and error highlighting. There are some key intellisense features that aren't available (or I don't use them), but these two plugins do well enough for my purposes.
What are some alternatives?
vim-lsp - async language server protocol plugin for vim and neovim
YouCompleteMe - A code-completion engine for Vim
nvim-treesitter - Nvim Treesitter configurations and abstraction layer
nvim-cmp - A completion plugin for neovim coded in Lua.
ale - Check syntax in Vim asynchronously and fix files, with Language Server Protocol (LSP) support
nvim-lspconfig - Quickstart configs for Nvim LSP
vim-polyglot - A solid language pack for Vim.
LunarVim - 🌙 LunarVim is an IDE layer for Neovim. Completely free and community driven.
deoplete.nvim - :stars: Dark powered asynchronous completion framework for neovim/Vim8
vim-go - Go development plugin for Vim
ansible-language-server - Ansible Language Server
nvim-compe - Auto completion Lua plugin for nvim