Improve perform

This commit is contained in:
huyjaky
2025-10-26 16:37:04 +07:00
parent bad1ed5cb2
commit 3eda456458
5 changed files with 28 additions and 26 deletions

View File

@@ -9,7 +9,6 @@ return {
{ {
"Saghen/blink.cmp", "Saghen/blink.cmp",
opts = { opts = {
keymap = { keymap = {
preset = "default", preset = "default",
["<C-f>"] = false, ["<C-f>"] = false,
@@ -19,26 +18,34 @@ return {
term = { term = {
enabled = false, enabled = false,
}, },
source = {
providers = {
snippets = {
opts = {
friendly_snippets = {
enable = false,
},
}
}
}
},
completion = { completion = {
list = { list = {
selection = { selection = {
preselect = true, preselect = true,
-- auto_insert = true, -- auto_insert = true,
}, },
inlay_hints = {
enabled = false,
in_insert = false,
}
}, },
ghost_text = { ghost_text = {
enabled = false, enabled = false,
}, },
menu = { menu = {
auto_show = function(ctx) return ctx.mode ~= "cmdline" end, auto_show = true,
auto_show_delay_ms = 0,
draw = { draw = {
columns = { columns = {
{ "kind_icon", "label", gap = 1 }, { "kind_icon", "label", gap = 1 },
{ "kind", gap = 1}, { "kind", gap = 1 },
}, },
}, },
}, },

View File

@@ -9,15 +9,16 @@ return {
disableLanguageServices = false, disableLanguageServices = false,
disableOrganizeImports = true, disableOrganizeImports = true,
disableTaggedHints = true, disableTaggedHints = true,
openFilesOnly = true,
analysis = { analysis = {
autoSearchPath = true, autoSearchPath = true,
useLibraryCodeForTypes = true, useLibraryCodeForTypes = false,
logLevel = "Trace", logLevel = "Trace",
typeCheckingMode = "standard", typeCheckingMode = "basic",
deprecateTypingAliases = false, deprecateTypingAliases = false,
diagnosticMode = "openFilesOnly",
inlayHints = { inlayHints = {
variableTypes = true, variableTypes = true,
-- functionReturnTypes = true,
genericTypes = true, genericTypes = true,
callArgumentNames = true, callArgumentNames = true,
}, },

View File

@@ -1,26 +1,20 @@
return { return {
before_init = function(_, c) before_init = function(_, c)
if not c.settings then if not c.settings then c.settings = {} end
c.settings = {} if not c.settings.python then c.settings.python = {} end
end c.settings.python.pythonPath = vim.fn.exepath "python3"
if not c.settings.python then end,
c.settings.python = {}
end
c.settings.python.pythonPath = vim.fn.exepath("python")
end,
settings = { settings = {
pyright = { pyright = {
disableLanguageServices = false, disableLanguageServices = false,
disableOrganizeImports = true, disableOrganizeImports = true,
analysis = { analysis = {
-- diagnosticMode = "openFilesOnly", diagnosticMode = "openFilesOnly",
typeCheckingMode = "standard", typeCheckingMode = "basic",
autoSearchPath = true, autoSearchPath = true,
-- diagnosticSeverityOverrides = false, -- diagnosticSeverityOverrides = false,
logLevel = "Trace", logLevel = "Error",
}, },
}, },
-- python = {
-- },
}, },
} }

View File

@@ -11,6 +11,8 @@ return {
{ "JoosepAlviste/nvim-ts-context-commentstring", enabled = false }, { "JoosepAlviste/nvim-ts-context-commentstring", enabled = false },
{ "windwp/nvim-ts-autotag", enabled = false }, { "windwp/nvim-ts-autotag", enabled = false },
{ "ray-x/lsp_signature.nvim", enabled = false },
-- Disabled development plugins -- Disabled development plugins
{ "mfussenegger/nvim-dap", enabled = false }, { "mfussenegger/nvim-dap", enabled = false },
{ "jay-babu/mason-nvim-dap.nvim", enabled = false }, { "jay-babu/mason-nvim-dap.nvim", enabled = false },

View File

@@ -10,8 +10,6 @@ return {
opts = function(_, opts) opts = function(_, opts)
local null_ls = require("null-ls") local null_ls = require("null-ls")
opts.sources = { opts.sources = {
require("none-ls.formatting.ruff").with({ extra_args = { "--extend-select", "F" } }),
require("none-ls.formatting.ruff_format"),
} }
return opts return opts
end, end,