chore: change themes
This commit is contained in:
@@ -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,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user