diff options
author | Santo Cariotti <santo@dcariotti.me> | 2024-10-30 13:33:55 +0100 |
---|---|---|
committer | Santo Cariotti <santo@dcariotti.me> | 2024-10-30 13:33:55 +0100 |
commit | d8713792f93473fe14e01d151529fb6ef139448f (patch) | |
tree | b2c359e07e64176f317789f59a38effd65d6a140 /.config/nvim/lua/lsp_conf.lua | |
parent | 23466704087a349dd982036ca4ea00d396c44273 (diff) |
Add inlay hint and remove packs
Diffstat (limited to '.config/nvim/lua/lsp_conf.lua')
-rw-r--r-- | .config/nvim/lua/lsp_conf.lua | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/.config/nvim/lua/lsp_conf.lua b/.config/nvim/lua/lsp_conf.lua index f33b0e1..a93dc5b 100644 --- a/.config/nvim/lua/lsp_conf.lua +++ b/.config/nvim/lua/lsp_conf.lua @@ -33,7 +33,15 @@ local common_on_attach = function(client, bufnr) end -- LSP servers setup -local servers = { 'ruff_lsp', 'rust_analyzer', 'clangd', 'gopls', 'ocamllsp', 'jdtls', 'metals'} +local servers = { + 'clangd', + 'gopls', + 'jdtls', + 'metals', + 'ocamllsp', + 'ruff_lsp', + 'rust_analyzer', +} capabilities.offsetEncoding = { "utf-16" } @@ -54,6 +62,8 @@ nvim_lsp.ts_ls.setup { cmd = { "typescript-language-server", "--stdio" } } +vim.lsp.inlay_hint.enable(true, { 0 }) + -- Trouble setup trouble.setup({ use_diagnostic_signs = true, |