Revert "nvim: after/ftplugin/cabal: Enable HLS on cabal files"

This reverts commit 34a5bbdacb.

HLS complains a lot (forgot the error) when trying to edit cabal files
making it almost unusable. It was nice to not require a separate plugin
for formatting cabal files, but, since this is not usable, disable it.
This commit is contained in:
Sanchayan Maity 2023-04-24 18:51:35 +05:30
parent 6329816b42
commit 5bba0b1789
Signed by: sanchayanmaity
GPG key ID: 6F6A0609C12038F3
2 changed files with 1 additions and 10 deletions

View file

@ -1,4 +0,0 @@
local lsp_utils = require('lsp-utils')
local hls_config = lsp_utils.hls_config()
vim.lsp.start(hls_config)

View file

@ -177,12 +177,7 @@ function M.hls_config()
root_dir = root_directory, root_dir = root_directory,
filetypes = { 'haskell' }, filetypes = { 'haskell' },
single_file_support = true, single_file_support = true,
settings = { settings = { haskell = { formattingProvider = 'ormolu' } },
haskell = {
formattingProvider = 'ormolu' ,
cabalFormattingProvider = 'cabalfmt',
}
},
} }
end end