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",
opts = {
keymap = {
preset = "default",
["<C-f>"] = false,
@@ -19,22 +18,30 @@ return {
term = {
enabled = false,
},
source = {
providers = {
snippets = {
opts = {
friendly_snippets = {
enable = false,
},
}
}
}
},
completion = {
list = {
selection = {
preselect = true,
-- auto_insert = true,
},
inlay_hints = {
enabled = false,
in_insert = false,
}
},
ghost_text = {
enabled = false,
},
menu = {
auto_show = function(ctx) return ctx.mode ~= "cmdline" end,
auto_show = true,
auto_show_delay_ms = 0,
draw = {
columns = {
{ "kind_icon", "label", gap = 1 },

View File

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

View File

@@ -1,26 +1,20 @@
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")
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 "python3"
end,
settings = {
pyright = {
disableLanguageServices = false,
disableOrganizeImports = true,
analysis = {
-- diagnosticMode = "openFilesOnly",
typeCheckingMode = "standard",
diagnosticMode = "openFilesOnly",
typeCheckingMode = "basic",
autoSearchPath = true,
-- diagnosticSeverityOverrides = false,
logLevel = "Trace",
logLevel = "Error",
},
},
-- python = {
-- },
},
}

View File

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

View File

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