From 707cd30e67079c04fc6abda9323f4239114d24bb Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Sun, 23 Jun 2024 10:07:14 +0200 Subject: [PATCH] nvim: Enable inlay hints for lua lsp --- nvim/.config/nvim/lua/plugins/config/lsp.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/nvim/.config/nvim/lua/plugins/config/lsp.lua b/nvim/.config/nvim/lua/plugins/config/lsp.lua index d59ab15..6d17f25 100644 --- a/nvim/.config/nvim/lua/plugins/config/lsp.lua +++ b/nvim/.config/nvim/lua/plugins/config/lsp.lua @@ -27,6 +27,10 @@ local servers = { -- enable when working on neovim stuff. Takes *long* to load -- workspace = { library = vim.api.nvim_get_runtime_file("", true) }, telemetry = { enable = false }, + hint = { + enable = true, + setType = true, + }, }, }, }, @@ -157,7 +161,7 @@ local python_path lspconfig.basedpyright.setup({ on_attach = function(client, bufnr) on_attach(client, bufnr) - require("core.util").set_python_env() + require("core.util").set_python_env() if python_path == nil then python_path, _ = vim.fn.expand(require("core.util").get_python_venv_bin(client.config.root_dir)) end @@ -180,7 +184,7 @@ lspconfig.basedpyright.setup({ lspconfig.ruff.setup({ on_attach = function(client, bufnr) on_attach(client, bufnr) - require("core.util").set_python_env() + require("core.util").set_python_env() client.server_capabilities.hoverProvider = false -- we use pyright for hover info if python_path == nil then python_path, _ = vim.fn.expand(require("core.util").get_python_venv_bin(client.config.root_dir))