chore: change themes

This commit is contained in:
huyjaky
2025-08-24 22:14:35 +07:00
parent 44d2f8999a
commit 04c5dcd06a
15 changed files with 172 additions and 243 deletions

View File

@@ -98,36 +98,6 @@ return {
-- mappings to be set up on attaching of a language server
mappings = {
n = {
gh = {
function()
vim.lsp.buf.hover()
end,
desc = "Hover symbol details",
cond = "textDocument/hover",
},
gl = {
function()
vim.diagnostic.open_float()
end,
desc = "Hover diagnostics",
},
-- a `cond` key can provided as the string of a server capability to be required to attach, or a function with `client` and `bufnr` parameters from the `on_attach` that returns a boolean
gD = {
function()
vim.lsp.buf.declaration()
end,
desc = "Declaration of current symbol",
cond = "textDocument/declaration",
},
["<Leader>uY"] = {
function()
require("astrolsp.toggles").buffer_semantic_tokens()
end,
desc = "Toggle LSP semantic highlight (buffer)",
cond = function(client)
return client.server_capabilities.semanticTokensProvider and vim.lsp.semantic_tokens
end,
},
},
},
-- A custom `on_attach` function to be run after the default `on_attach` function
@@ -153,7 +123,6 @@ return {
end
if client.name == "basedpyright" then
-- Tắt hết các dịch vụ, chỉ giữ lại diagnostics và inlay hints
client.server_capabilities.completionProvider = false
client.server_capabilities.codeLensProvider = false
client.server_capabilities.colorProvider = false
@@ -175,7 +144,6 @@ return {
client.server_capabilities.workspaceSymbolProvider = false
client.server_capabilities.monikerProvider = false
client.server_capabilities.semanticTokensProvider = false
-- Tắt thêm các capabilities khác có thể có
client.server_capabilities.referencesProvider = false
client.server_capabilities.implementationProvider = false
client.server_capabilities.foldingRangeProvider = false
@@ -186,9 +154,6 @@ return {
workspaceFolders = { supported = false },
fileOperations = { supported = false }
}
-- Giữ lại diagnostics và inlay hints
-- client.server_capabilities.diagnosticProvider = true (mặc định)
-- client.server_capabilities.inlayHintProvider = true (mặc định)
end
end,
},

View File

@@ -9,7 +9,7 @@ return {
---@type AstroUIOpts
opts = {
-- change colorscheme
colorscheme = "bamboo",
colorscheme = "bamboo-multiplex",
-- AstroUI allows you to easily modify highlight groups easily for any and all colorschemes
highlights = require "plugins.configs.ui.highlights",

View File

@@ -1,38 +1,33 @@
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")
end,
settings = {
basedpyright = {
disableLanguageServices = false,
disableOrganizeImports = true,
disableTaggedHints = true,
analysis = {
autoSearchPath = false,
logLevel = "Trace",
typeCheckingMode = "standard",
deprecateTypingAliases = false,
inlayHints = {
variableTypes = true,
functionReturnTypes = true,
callArgumentNames = true,
pytestParameters = true,
},
ignore = {
"unsloth_compiled_cache",
"__pycache__",
"__index__",
},
useLibraryCodeForTypes = true,
},
autoImportCompletions = false,
},
},
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"
end,
settings = {
basedpyright = {
disableLanguageServices = false,
disableOrganizeImports = true,
disableTaggedHints = true,
useLibraryCodeForTypes = true,
analysis = {
autoSearchPath = false,
logLevel = "Trace",
typeCheckingMode = "standard",
deprecateTypingAliases = false,
inlayHints = {
variableTypes = true,
callArgumentNames = false,
functionReturnTypes = true,
genericTypes = true,
},
ignore = {
"**/unsloth_compiled_cache/**",
"**/__pycache__/**",
"__index__",
},
autoImportCompletions = false,
},
},
},
}

View File

@@ -12,9 +12,10 @@ return {
},
workspace = {
-- environmentPath = "/home/duckq1u/miniconda3/envs/OCR3/bin/python",
environmentPath = vim.fn.exepath("python"),
environmentPath = vim.fn.exepath "python",
ignore = {
"/home/duckq1u/miniconda3/envs/OCR3/lib/python3.11/site-packages/transformers/mode ls/albert/configuration_albert.py",
"**/unsloth_compiled_cache/**",
},
},

View File

@@ -18,15 +18,15 @@ return {
},
},
scope = {
enabled = false, -- enable highlighting the current scope
enabled = true, -- enable highlighting the current scope
priority = 200,
char = "󰥓",
char = "",
underline = false, -- underline the start of the scope
only_current = false, -- only show scope in the current window
hl = "SnacksIndentScope", ---@type string|string[] hl group for scopes
},
chunk = {
enabled = true,
enabled = false,
char = {
corner_top = "",
corner_bottom = "",

View File

@@ -1,49 +1,51 @@
-- Treesitter context
return {
-- Treesitter context
return {
{
"nvim-treesitter/nvim-treesitter-context",
event = "User AstroFile",
cmd = { "TSContext" },
opts = {
on_attach = function()
vim.api.nvim_set_hl(0, "TreesitterContext", { underline = true, sp = "Red", bg = "#1e1e3f" })
end,
max_lines = 2,
},
dependencies = {
"AstroNvim/astrocore",
opts = {
mappings = {
n = {
["<Leader>uT"] = {
"<cmd>TSContext toggle<CR>",
desc = "Toggle treesitter context",
},
},
},
},
},
},
"nvim-treesitter/nvim-treesitter-context",
event = "User AstroFile",
cmd = { "TSContext" },
opts = {
on_attach = function()
vim.api.nvim_set_hl(0, "TreesitterContext", { underline = true, sp = "Red", bg = "#1e1e3f" })
end,
max_lines = 2,
},
dependencies = {
"AstroNvim/astrocore",
opts = {
mappings = {
n = {
["<Leader>uT"] = {
"<cmd>TSContext toggle<CR>",
desc = "Toggle treesitter context",
},
},
},
},
},
},
-- Virtual text context
{
"andersevenrud/nvim_context_vt",
event = "User AstroFile",
cmd = { "NvimContextVtToggle" },
dependencies = {
"AstroNvim/astrocore",
opts = {
mappings = {
n = {
["<Leader>uv"] = {
function()
require("nvim_context_vt").toggle()
end,
desc = "Toggle virutal text context",
},
},
},
},
},
}
-- Virtual text context
{
"andersevenrud/nvim_context_vt",
event = "User AstroFile",
cmd = { "NvimContextVtToggle" },
opts = {
prefix = "",
-- disable_virtual_lines = true,
},
dependencies = {
"AstroNvim/astrocore",
opts = {
mappings = {
n = {
["<Leader>uv"] = {
function() require("nvim_context_vt").toggle() end,
desc = "Toggle virutal text context",
},
},
},
},
},
},
}

View File

@@ -1,9 +1,10 @@
return {
{ "Wansmer/treesj", enabled = false },
-- You can disable default plugins as follows:
-- You can disable default plugins as follows:
{ "max397574/better-escape.nvim", enabled = false },
{ "andweeb/presence.nvim", enabled = false },
{ "s1n7ax/nvim-window-picker", enabled = false },
-- Disabled formatting plugins
{ "rafamadriz/friendly-snippets", enabled = false },
@@ -13,6 +14,5 @@ return {
-- Disabled development plugins
{ "mfussenegger/nvim-dap", enabled = false },
{ "jay-babu/mason-nvim-dap.nvim", enabled = false },
{"brenton-leighton/multiple-cursors.nvim", enabled = false}
{ "brenton-leighton/multiple-cursors.nvim", enabled = false },
}

View File

@@ -28,8 +28,8 @@ return {
package_installed = "",
package_pending = "",
package_uninstalled = "",
}
}
},
},
},
},
}

View File

@@ -26,6 +26,7 @@ return {
["K"] = false,
["H"] = false,
},
width = 50
},
enable_git_status = false,
enable_diagnostics = false,
@@ -34,6 +35,5 @@ return {
},
-- Disabled file explorer plugins
{ "s1n7ax/nvim-window-picker", enabled = false },
}

View File

@@ -6,19 +6,19 @@ return {
config = function()
require("bamboo").setup {
integrations = { mini = true },
terminal_colors = false
terminal_colors = false,
}
require("bamboo").load()
end,
},
{
"rebelot/heirline.nvim",
opts = function(_, opts)
opts.statusline = require("plugins.configs.ui.heirline").statusline
opts.winbar = require("plugins.configs.ui.heirline").winbar
end,
},
{
"rebelot/heirline.nvim",
opts = function(_, opts)
opts.statusline = require("plugins.configs.ui.heirline").statusline
opts.winbar = require("plugins.configs.ui.heirline").winbar
end,
},
{
"folke/which-key.nvim",
event = "VeryLazy",
opts = {
@@ -36,8 +36,6 @@ return {
function() require("which-key").show { global = false } end,
desc = "Buffer Local Keymaps (which-key)",
},
},
}
},
}

View File

@@ -12,8 +12,8 @@ return {
"ray-x/lsp_signature.nvim",
event = "BufRead",
opts = {
hint_enable = false,
doc_lines = 5,
hint_enable = false,
doc_lines = 0,
},
-- config = function() require("lsp_signature").setup() end,
},
@@ -23,9 +23,7 @@ return {
-- customize dashboard options
{
"folke/snacks.nvim",
config = function(_, opts)
require("snacks").setup(opts)
end,
config = function(_, opts) require("snacks").setup(opts) end,
opts = {
dashboard = {
preset = {
@@ -33,11 +31,14 @@ return {
keys = {},
},
},
indent = require( "plugins.configs.ui.indent" ),
indent = require "plugins.configs.ui.indent",
dim = { enabled = false },
terminal = { enabled = false },
profiler = { enabled = false },
},
},
-- You can also easily customize additional setup of plugins that is outside of the plugin's setup call
{
"L3MON4D3/LuaSnip",
@@ -49,72 +50,62 @@ return {
end,
},
{
"altermo/ultimate-autopair.nvim",
event = "InsertEnter",
-- branch = "v0.6",
opts = {
cmap = false,
extensions = {
cond = {
cond = {
function(fn)
return not fn.in_node("comment")
end,
},
},
fly = {
nofilter = true,
},
},
config_internal_pairs = {
{ '"', '"', fly = true },
{ "'", "'", fly = true },
{ "[", "]", fly = true },
{ "{", "}", fly = true },
{ "(", ")", fly = true },
},
},
dependencies = {
{
"AstroNvim/astrocore",
opts = {
mappings = {
n = {
["<Leader>ua"] = {
desc = "Toggle Ultimate Autopair",
function()
local notify = require("astrocore").notify
local function bool2str(bool)
return bool and "on" or "off"
end
local ok, ultimate_autopair = pcall(require, "ultimate-autopair")
if ok then
ultimate_autopair.toggle()
vim.g.ultimate_autopair_enabled = require("ultimate-autopair.core").disable
notify(
string.format(
"ultimate-autopair %s",
bool2str(not vim.g.ultimate_autopair_enabled)
)
)
else
notify("ultimate-autopair not available")
end
end,
},
},
},
},
},
},
specs = {
{
"windwp/nvim-autopairs",
optional = true,
enabled = false,
},
},
},
{
"altermo/ultimate-autopair.nvim",
event = "InsertEnter",
-- branch = "v0.6",
opts = {
cmap = false,
extensions = {
cond = {
cond = {
function(fn) return not fn.in_node "comment" end,
},
},
fly = {
nofilter = true,
},
},
config_internal_pairs = {
{ '"', '"', fly = true },
{ "'", "'", fly = true },
{ "[", "]", fly = true },
{ "{", "}", fly = true },
{ "(", ")", fly = true },
},
},
dependencies = {
{
"AstroNvim/astrocore",
opts = {
mappings = {
n = {
["<Leader>ua"] = {
desc = "Toggle Ultimate Autopair",
function()
local notify = require("astrocore").notify
local function bool2str(bool) return bool and "on" or "off" end
local ok, ultimate_autopair = pcall(require, "ultimate-autopair")
if ok then
ultimate_autopair.toggle()
vim.g.ultimate_autopair_enabled = require("ultimate-autopair.core").disable
notify(string.format("ultimate-autopair %s", bool2str(not vim.g.ultimate_autopair_enabled)))
else
notify "ultimate-autopair not available"
end
end,
},
},
},
},
},
},
specs = {
{
"windwp/nvim-autopairs",
optional = true,
enabled = false,
},
},
},
}