mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
nvim: nice hls default settings
credit: mrcjkb
This commit is contained in:
parent
8037a95b03
commit
5b8f5dbeb2
1 changed files with 13 additions and 0 deletions
|
|
@ -242,6 +242,19 @@ vim.g.haskell_tools = {
|
||||||
vim.opt_local.shiftwidth = 2
|
vim.opt_local.shiftwidth = 2
|
||||||
on_attach(client, bufnr)
|
on_attach(client, bufnr)
|
||||||
end,
|
end,
|
||||||
|
default_settings = {
|
||||||
|
haskell = {
|
||||||
|
checkProject = false, -- PERF: don't check the entire project on initial load
|
||||||
|
formattingProvider = "fourmolu",
|
||||||
|
plugin = {
|
||||||
|
rename = {
|
||||||
|
config = {
|
||||||
|
diff = true, -- (experimental) rename across modules
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
settings = function(project_root)
|
settings = function(project_root)
|
||||||
local ht = require("haskell-tools")
|
local ht = require("haskell-tools")
|
||||||
return ht.lsp.load_hls_settings(project_root, { settings_file_pattern = "hls.json" })
|
return ht.lsp.load_hls_settings(project_root, { settings_file_pattern = "hls.json" })
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue