From 1f7fda6f21358ebd42c13b11ef366bf5ef732814 Mon Sep 17 00:00:00 2001 From: huyjaky Date: Sun, 26 Oct 2025 18:14:56 +0700 Subject: [PATCH] Improve perform --- lua/plugins/astrolsp.lua | 3 ++- lua/plugins/cmps.lua | 11 +++++++---- lua/plugins/configs/lsp/config/basedpyright.lua | 10 +++++++--- lua/plugins/disabled.lua | 3 ++- lua/plugins/ui.lua | 2 ++ lua/plugins/user.lua | 7 +++++-- 6 files changed, 25 insertions(+), 11 deletions(-) diff --git a/lua/plugins/astrolsp.lua b/lua/plugins/astrolsp.lua index f39aa30..7116923 100644 --- a/lua/plugins/astrolsp.lua +++ b/lua/plugins/astrolsp.lua @@ -119,6 +119,8 @@ return { -- client.server_capabilities.hoverProvider = false -- client.server_capabilities.renameProvider = false -- client.server_capabilities.definitionProvider = false + -- client.server_capabilities.signatureHelpProvider = false + client.server_capabilities.codeLensProvider = false client.server_capabilities.colorProvider = false client.server_capabilities.callHierarchyProvider = false @@ -131,7 +133,6 @@ return { client.server_capabilities.inlineCompletionProvider = false client.server_capabilities.inlineValueProvider = false client.server_capabilities.notebookDocumentSync = false - client.server_capabilities.signatureHelpProvider = false client.server_capabilities.typeDefinitionProvider = false client.server_capabilities.workspaceSymbolProvider = false client.server_capabilities.monikerProvider = false diff --git a/lua/plugins/cmps.lua b/lua/plugins/cmps.lua index fd75be6..02bdd1f 100644 --- a/lua/plugins/cmps.lua +++ b/lua/plugins/cmps.lua @@ -9,6 +9,9 @@ return { { "Saghen/blink.cmp", opts = { + signature = { + enabled = false, + }, keymap = { preset = "default", [""] = false, @@ -25,9 +28,9 @@ return { friendly_snippets = { enable = false, }, - } - } - } + }, + }, + }, }, completion = { list = { @@ -53,7 +56,7 @@ return { auto_brackets = { enabled = false }, }, documentation = { - auto_show = false, + auto_show = true, auto_show_delay_ms = 0, window = { border = "rounded", diff --git a/lua/plugins/configs/lsp/config/basedpyright.lua b/lua/plugins/configs/lsp/config/basedpyright.lua index f06478c..cf457b3 100644 --- a/lua/plugins/configs/lsp/config/basedpyright.lua +++ b/lua/plugins/configs/lsp/config/basedpyright.lua @@ -2,25 +2,29 @@ return { before_init = function(_, c) if not c.settings then c.settings = {} end if not c.settings.python then c.settings.python = {} end - c.settings.python.pythonPath = vim.fn.exepath "python" + c.settings.python.pythonPath = vim.fn.exepath "python3" end, settings = { basedpyright = { disableLanguageServices = false, disableOrganizeImports = true, disableTaggedHints = true, + + useLibraryCodeForTypes = false, openFilesOnly = true, + analysis = { - autoSearchPath = true, + autoSearchPath = false, useLibraryCodeForTypes = false, logLevel = "Trace", + typeCheckingMode = "basic", deprecateTypingAliases = false, diagnosticMode = "openFilesOnly", inlayHints = { variableTypes = true, genericTypes = true, - callArgumentNames = true, + callArgumentNames = false, }, ignore = { "**/unsloth_compiled_cache/**", diff --git a/lua/plugins/disabled.lua b/lua/plugins/disabled.lua index c1a1e35..de2e2f8 100644 --- a/lua/plugins/disabled.lua +++ b/lua/plugins/disabled.lua @@ -11,7 +11,8 @@ return { { "JoosepAlviste/nvim-ts-context-commentstring", enabled = false }, { "windwp/nvim-ts-autotag", enabled = false }, - { "ray-x/lsp_signature.nvim", enabled = false }, + -- { "ray-x/lsp_signature.nvim", enabled = false }, + { "brenoprata10/nvim-highlight-colors", enabled = false }, -- Disabled development plugins { "mfussenegger/nvim-dap", enabled = false }, diff --git a/lua/plugins/ui.lua b/lua/plugins/ui.lua index f8fd213..d397d97 100644 --- a/lua/plugins/ui.lua +++ b/lua/plugins/ui.lua @@ -40,6 +40,7 @@ return { }, { "OXY2DEV/markview.nvim", + lazy = false, ft = function() local plugin = require("lazy.core.config").spec.plugins["markview.nvim"] local opts = require("lazy.core.plugin").values(plugin, "opts", false) @@ -53,6 +54,7 @@ return { require("astrocore").list_insert_unique(opts.ensure_installed, { "html", "markdown", "markdown_inline" }) end end, + "saghen/blink.cmp" }, opts = { preview = { diff --git a/lua/plugins/user.lua b/lua/plugins/user.lua index 0b3c316..795330f 100644 --- a/lua/plugins/user.lua +++ b/lua/plugins/user.lua @@ -10,8 +10,12 @@ return { { "ray-x/lsp_signature.nvim", - event = "BufRead", + event = "InsertEnter", opts = { + bind = true, + handler_option = { + border = "rounded", + }, hint_enable = false, doc_lines = 0, }, @@ -35,7 +39,6 @@ return { dim = { enabled = false }, terminal = { enabled = false }, profiler = { enabled = false }, - }, },