nvim: Enable inlay hints for lua lsp
This commit is contained in:
parent
a5f0698ab0
commit
707cd30e67
1 changed files with 6 additions and 2 deletions
|
@ -27,6 +27,10 @@ local servers = {
|
||||||
-- enable when working on neovim stuff. Takes *long* to load
|
-- enable when working on neovim stuff. Takes *long* to load
|
||||||
-- workspace = { library = vim.api.nvim_get_runtime_file("", true) },
|
-- workspace = { library = vim.api.nvim_get_runtime_file("", true) },
|
||||||
telemetry = { enable = false },
|
telemetry = { enable = false },
|
||||||
|
hint = {
|
||||||
|
enable = true,
|
||||||
|
setType = true,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -157,7 +161,7 @@ local python_path
|
||||||
lspconfig.basedpyright.setup({
|
lspconfig.basedpyright.setup({
|
||||||
on_attach = function(client, bufnr)
|
on_attach = function(client, bufnr)
|
||||||
on_attach(client, bufnr)
|
on_attach(client, bufnr)
|
||||||
require("core.util").set_python_env()
|
require("core.util").set_python_env()
|
||||||
if python_path == nil then
|
if python_path == nil then
|
||||||
python_path, _ = vim.fn.expand(require("core.util").get_python_venv_bin(client.config.root_dir))
|
python_path, _ = vim.fn.expand(require("core.util").get_python_venv_bin(client.config.root_dir))
|
||||||
end
|
end
|
||||||
|
@ -180,7 +184,7 @@ lspconfig.basedpyright.setup({
|
||||||
lspconfig.ruff.setup({
|
lspconfig.ruff.setup({
|
||||||
on_attach = function(client, bufnr)
|
on_attach = function(client, bufnr)
|
||||||
on_attach(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
|
client.server_capabilities.hoverProvider = false -- we use pyright for hover info
|
||||||
if python_path == nil then
|
if python_path == nil then
|
||||||
python_path, _ = vim.fn.expand(require("core.util").get_python_venv_bin(client.config.root_dir))
|
python_path, _ = vim.fn.expand(require("core.util").get_python_venv_bin(client.config.root_dir))
|
||||||
|
|
Loading…
Reference in a new issue