testing lsp configs
This commit is contained in:
@@ -137,17 +137,6 @@ 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,
|
||||
@@ -155,30 +144,3 @@ 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: don’t 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,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user