astro-nvim-v3 - fixed delay on cmp
This commit is contained in:
@@ -36,8 +36,6 @@ return {
|
|||||||
autoImportModules = {
|
autoImportModules = {
|
||||||
"numpy",
|
"numpy",
|
||||||
"pandas",
|
"pandas",
|
||||||
"torch",
|
|
||||||
"sklearn",
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -80,6 +78,8 @@ return {
|
|||||||
"N803",
|
"N803",
|
||||||
"PD901",
|
"PD901",
|
||||||
"F401",
|
"F401",
|
||||||
|
"I001",
|
||||||
|
"RET504",
|
||||||
},
|
},
|
||||||
fixable = { "ALL" },
|
fixable = { "ALL" },
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -18,23 +18,7 @@ return {
|
|||||||
|
|
||||||
cmp.setup.filetype("python", {
|
cmp.setup.filetype("python", {
|
||||||
sources = cmp.config.sources {
|
sources = cmp.config.sources {
|
||||||
{
|
{ name = "nvim_lsp", priority = 700 },
|
||||||
name = "nvim_lsp",
|
|
||||||
priority = 700,
|
|
||||||
-- entry_filter = function(entry, ctx)
|
|
||||||
|
|
||||||
-- local kind = cmp.get_registered_sources()
|
|
||||||
-- -- if kind.sources == 'jedi_language_server' then return true end return false
|
|
||||||
-- for _, source in ipairs(kind) do
|
|
||||||
-- -- Kiểm tra nếu nguồn là 'jedi_language_server'
|
|
||||||
-- if source.name == "nvim_lsp" and source.source.client.name == "jedi_language_server" then
|
|
||||||
-- return true
|
|
||||||
-- end
|
|
||||||
-- end
|
|
||||||
|
|
||||||
-- return false
|
|
||||||
-- end,
|
|
||||||
},
|
|
||||||
{ name = "buffer", priority = 500 },
|
{ name = "buffer", priority = 500 },
|
||||||
{ name = "path", priority = 250 },
|
{ name = "path", priority = 250 },
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -8,7 +8,8 @@ return {
|
|||||||
basedpyright = {
|
basedpyright = {
|
||||||
|
|
||||||
disableOrganizeImports = true,
|
disableOrganizeImports = true,
|
||||||
|
-- disableLanguageServices = true,
|
||||||
|
disableTaggedHints = true,
|
||||||
analysis = {
|
analysis = {
|
||||||
-- diagnosticMode = "workspace",
|
-- diagnosticMode = "workspace",
|
||||||
diagnosticMode = "openFilesOnly",
|
diagnosticMode = "openFilesOnly",
|
||||||
@@ -26,24 +27,45 @@ return {
|
|||||||
useLibraryCodeForTypes = false,
|
useLibraryCodeForTypes = false,
|
||||||
deprecateTypingAliases = false,
|
deprecateTypingAliases = false,
|
||||||
enableReachabilityAnalysis = false,
|
enableReachabilityAnalysis = false,
|
||||||
|
|
||||||
strictListInference = true,
|
strictListInference = true,
|
||||||
strictDictionaryInference = true,
|
strictDictionaryInference = true,
|
||||||
strictSetInference = true,
|
strictSetInference = true,
|
||||||
|
|
||||||
analyzeUnannotatedFunctions = false,
|
analyzeUnannotatedFunctions = false,
|
||||||
-- ignore = { "**/*.py" },
|
-- ignore = { "**/*.py" },
|
||||||
|
reportGeneralTypeIssues = false,
|
||||||
diagnosticSeverityOverrides = {
|
diagnosticSeverityOverrides = {
|
||||||
reportUnusedImport = "none",
|
reportUnusedImport = false,
|
||||||
reportUnusedFunction = "none",
|
reportUnusedFunction = false,
|
||||||
reportUnusedVariable = "none",
|
reportUnusedVariable = false,
|
||||||
reportGeneralTypeIssues = "none",
|
reportGeneralTypeIssues = false,
|
||||||
reportOptionalMemberAccess = "none",
|
reportOptionalMemberAccess = false,
|
||||||
reportOptionalSubscript = "none",
|
reportOptionalSubscript = false,
|
||||||
reportPrivateImportUsage = "none",
|
reportPrivateImportUsage = false,
|
||||||
reportInvalidStubStatement = "none",
|
reportInvalidStubStatement = false,
|
||||||
reportIncompleteStub = "none",
|
reportIncompleteStub = false,
|
||||||
|
reportArgumentType = false,
|
||||||
|
reportAttributeAccessIssue = false,
|
||||||
|
|
||||||
|
reportCallIssue = false,
|
||||||
|
-- reportNoOverloadImplementation = false,
|
||||||
|
-- reportOverlappingOverload = false,
|
||||||
|
-- reportInconsistentOverload = false,
|
||||||
|
-- reportUnknownMemberType = false,
|
||||||
|
-- reportFunctionMemberAccess = false,
|
||||||
|
-- reportPropertyTypeMismatch = false,
|
||||||
|
-- reportMatchNotExhaustive = false,
|
||||||
|
-- reportInvalidTypeForm = false,
|
||||||
|
-- reportAbstractUsage = false,
|
||||||
|
|
||||||
|
-- reportAssertTypeFailure = false,
|
||||||
|
-- reportAssignmentType = false,
|
||||||
|
|
||||||
|
-- reportIndexIssue = false,
|
||||||
|
-- reportInvalidTypeArguments = false,
|
||||||
|
-- reportOperatorIssue = false,
|
||||||
|
-- reportOptionalCall = false,
|
||||||
|
-- reportOptionalIterable = false,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -4,12 +4,11 @@ return {
|
|||||||
{ "s1n7ax/nvim-window-picker", enabled = false },
|
{ "s1n7ax/nvim-window-picker", enabled = false },
|
||||||
{ "akinsho/toggleterm.nvim", enabled = false },
|
{ "akinsho/toggleterm.nvim", enabled = false },
|
||||||
{ "NvChad/nvim-colorizer.lua", enabled = false },
|
{ "NvChad/nvim-colorizer.lua", enabled = false },
|
||||||
{ "catppuccin/nvim", name = "catppuccin", enabled = false},
|
{ "catppuccin/nvim", name = "catppuccin", enabled = false },
|
||||||
{ "rebelot/kanagawa.nvim", enabled = false },
|
{ "rebelot/kanagawa.nvim", enabled = false },
|
||||||
{ "folke/tokyonight.nvim", enabled = false },
|
{ "folke/tokyonight.nvim", enabled = false },
|
||||||
{ "f4z3r/gruvbox-material.nvim", name = "gruvbox-material", enabled = false },
|
{ "f4z3r/gruvbox-material.nvim", name = "gruvbox-material", enabled = false },
|
||||||
{ "b0o/SchemaStore.nvim", enabled = false },
|
{ "b0o/SchemaStore.nvim", enabled = false },
|
||||||
|
|
||||||
{ "ray-x/lsp_signature.nvim", enabled = false },
|
{ "ray-x/lsp_signature.nvim", enabled = false },
|
||||||
{ "kmontocam/nvim-conda", enabled = false },
|
{ "kmontocam/nvim-conda", enabled = false },
|
||||||
{ "NMAC427/guess-indent.nvim", enabled = false },
|
{ "NMAC427/guess-indent.nvim", enabled = false },
|
||||||
@@ -28,8 +27,8 @@ return {
|
|||||||
{ "iamcco/markdown-preview.nvim", enabled = false },
|
{ "iamcco/markdown-preview.nvim", enabled = false },
|
||||||
{ "max397574/better-escape.nvim", enabled = false },
|
{ "max397574/better-escape.nvim", enabled = false },
|
||||||
{ "ribru17/bamboo.nvim", enabled = true },
|
{ "ribru17/bamboo.nvim", enabled = true },
|
||||||
|
{ "hinell/duplicate.nvim", enabled = false },
|
||||||
|
|
||||||
-- { "hrsh7th/nvim-cmp", enabled = false },
|
|
||||||
}
|
}
|
||||||
|
|
||||||
-- if true then return {} end
|
-- if true then return {} end
|
||||||
|
|||||||
@@ -9,7 +9,6 @@ return {
|
|||||||
bind = true,
|
bind = true,
|
||||||
handler_opts = { border = "rounded" },
|
handler_opts = { border = "rounded" },
|
||||||
hint_enable = true,
|
hint_enable = true,
|
||||||
|
|
||||||
hint_prefix = "🐼 ",
|
hint_prefix = "🐼 ",
|
||||||
debug = true,
|
debug = true,
|
||||||
verbose = true,
|
verbose = true,
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ return {
|
|||||||
-- add more things to the ensure_installed table protecting against community packs modifying it
|
-- add more things to the ensure_installed table protecting against community packs modifying it
|
||||||
opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, {
|
opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, {
|
||||||
"lua_ls",
|
"lua_ls",
|
||||||
-- "jedi_language_server",
|
"jedi_language_server",
|
||||||
"ruff",
|
"ruff",
|
||||||
"basedpyright",
|
"basedpyright",
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -47,22 +47,22 @@ return {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
-- config = function(_, opts)
|
config = function(_, opts)
|
||||||
-- local dap = require "dap"
|
local dap = require "dap"
|
||||||
-- local dapui = require "dapui"
|
local dapui = require "dapui"
|
||||||
|
|
||||||
-- -- Initialize dap-ui
|
-- Initialize dap-ui
|
||||||
-- dapui.setup(opts)
|
dapui.setup(opts)
|
||||||
|
|
||||||
-- -- Prevent UI from closing when debugging session ends
|
-- Prevent UI from closing when debugging session ends
|
||||||
-- dap.listeners.after.event_terminated["dapui"] = function()
|
dap.listeners.after.event_terminated["dapui"] = function()
|
||||||
-- -- Do nothing, keeping the UI open
|
-- Do nothing, keeping the UI open
|
||||||
-- end
|
end
|
||||||
-- dap.listeners.after.event_exited["dapui"] = function()
|
dap.listeners.after.event_exited["dapui"] = function()
|
||||||
-- -- Do nothing, keeping the UI open
|
-- Do nothing, keeping the UI open
|
||||||
-- end
|
end
|
||||||
|
|
||||||
-- -- Optionally, open dap-ui when session starts
|
-- Optionally, open dap-ui when session starts
|
||||||
-- dap.listeners.after.event_initialized["dapui"] = function() dapui.open() end
|
dap.listeners.after.event_initialized["dapui"] = function() dapui.open() end
|
||||||
-- end,
|
end,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,5 +5,7 @@ return {
|
|||||||
commented = false,
|
commented = false,
|
||||||
enabled = true,
|
enabled = true,
|
||||||
enabled_commands = true,
|
enabled_commands = true,
|
||||||
|
show_stop_reason = true,
|
||||||
|
virt_text_pos = 'eol'
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user