summaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
authorJosh Rahm <rahm@google.com>2024-03-07 18:24:04 -0700
committerJosh Rahm <rahm@google.com>2024-03-07 18:24:04 -0700
commitca2c98e283107e6fb9244da23ab7ccaacc49269d (patch)
treea8587d8861134d302a442d47aa1351ddf3af9116 /lua
parent7ff38e6a859abf853ed29a46541157741c0d9a65 (diff)
downloadconfig.vim-ca2c98e283107e6fb9244da23ab7ccaacc49269d.tar.gz
config.vim-ca2c98e283107e6fb9244da23ab7ccaacc49269d.tar.bz2
config.vim-ca2c98e283107e6fb9244da23ab7ccaacc49269d.zip
Add semantic tokens for haskell lsp
Diffstat (limited to 'lua')
-rw-r--r--lua/lsp.lua10
1 files changed, 9 insertions, 1 deletions
diff --git a/lua/lsp.lua b/lua/lsp.lua
index dca84dd..93159a5 100644
--- a/lua/lsp.lua
+++ b/lua/lsp.lua
@@ -29,7 +29,15 @@ configs.hls = {
default_config = {
cmd = { "haskell-language-server-wrapper", "--lsp" },
filetypes = { "haskell" },
- settings = {},
+ settings = {
+ haskell = {
+ plugin = {
+ semanticTokens = {
+ globalOn = true
+ }
+ }
+ }
+ },
root_dir = nvim_lsp.util.root_pattern("package.yaml"),
}
}