testing lsp configs

This commit is contained in:
2025-09-14 00:12:07 -04:00
parent 98db76ce45
commit b644b0c4e1

View File

@@ -137,6 +137,17 @@ require("lspconfig").gopls.setup({
})
require("lspconfig").pyright.setup({
capabilities = capabilities,
settings = {
python = {
analysis = {
typeCheckingMode = "basic",
autoSearchPaths = true,
useLibraryCodeForTypes = true,
diagnosticMode = "workspace",
stubPath = "./typings",
},
},
},
})
require("lspconfig").nim_langserver.setup({
capabilities = capabilities,
@@ -144,3 +155,30 @@ require("lspconfig").nim_langserver.setup({
-- require'lspconfig'.jedi_language_server.setup {
-- capabilities = capabilities,
-- }
require("lsp_signature").setup({
debug = false,
bind = true, -- registers signature handler
doc_lines = 10,
max_height = 12,
max_width = function() return math.floor(vim.api.nvim_win_get_width(0) * 0.8) end,
wrap = true,
floating_window = true, -- show the popup
floating_window_above_cur_line = true,
floating_window_off_x = 1,
floating_window_off_y = 0,
-- IMPORTANT: dont inline (you can change later if you want)
hint_enable = true,
hint_inline = function() return false end,
hint_prefix = "🐼 ",
hint_scheme = "String",
hi_parameter = "LspSignatureActiveParameter",
handler_opts = { border = "rounded" },
always_trigger = false,
extra_trigger_chars = { "(", "," }, -- good default
zindex = 200,
padding = "",
timer_interval = 200,
})