mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-01-02 09:05:55 +00:00
languages/haskell: fix haskell-tools options
This commit is contained in:
parent
c53042a705
commit
5cdc131ad2
1 changed files with 3 additions and 13 deletions
|
|
@ -20,10 +20,11 @@
|
||||||
|
|
||||||
defaultServers = ["hls"];
|
defaultServers = ["hls"];
|
||||||
servers = {
|
servers = {
|
||||||
|
# these are a haskell-tools wrapper over the actual lsp options `:help haskell-tools.lsp.ClientOpts`
|
||||||
|
# see https://github.com/mrcjkb/haskell-tools.nvim/blob/v6.2.0/lua/haskell-tools/lsp/init.lua#L131-L173
|
||||||
|
# for the real ones
|
||||||
hls = {
|
hls = {
|
||||||
enable = false;
|
|
||||||
cmd = [(getExe' pkgs.haskellPackages.haskell-language-server "haskell-language-server-wrapper") "--lsp"];
|
cmd = [(getExe' pkgs.haskellPackages.haskell-language-server "haskell-language-server-wrapper") "--lsp"];
|
||||||
filetypes = ["haskell" "lhaskell"];
|
|
||||||
on_attach =
|
on_attach =
|
||||||
mkLuaInline
|
mkLuaInline
|
||||||
/*
|
/*
|
||||||
|
|
@ -43,17 +44,6 @@
|
||||||
vim.keymap.set('n', '<localleader>rq', ht.repl.quit, opts)
|
vim.keymap.set('n', '<localleader>rq', ht.repl.quit, opts)
|
||||||
end
|
end
|
||||||
'';
|
'';
|
||||||
root_dir =
|
|
||||||
mkLuaInline
|
|
||||||
/*
|
|
||||||
lua
|
|
||||||
*/
|
|
||||||
''
|
|
||||||
function(bufnr, on_dir)
|
|
||||||
local fname = vim.api.nvim_buf_get_name(bufnr)
|
|
||||||
on_dir(util.root_pattern('hie.yaml', 'stack.yaml', 'cabal.project', '*.cabal', 'package.yaml')(fname))
|
|
||||||
end
|
|
||||||
'';
|
|
||||||
settings = {
|
settings = {
|
||||||
haskell = {
|
haskell = {
|
||||||
formattingProvider = "ormolu";
|
formattingProvider = "ormolu";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue