add: update

This commit is contained in:
asep.komarudin 2024-05-18 08:32:51 +07:00
parent 24292ff1b9
commit ebb2535ec2
6 changed files with 37 additions and 35 deletions

View file

@ -19,11 +19,6 @@ M.capabilities = cmp_nvim_lsp.default_capabilities(M.capabilities)
M.setup = function()
local signs = {
-- { name = "DiagnosticSignError", text = "" },
-- { name = "DiagnosticSignWarn", text = "" },
-- { name = "DiagnosticSignHint", text = "" },
-- { name = "DiagnosticSignInfo", text = "" },
{ name = "DiagnosticSignError", text = icons.diagnostics.Error },
{ name = "DiagnosticSignWarn", text = icons.diagnostics.Warning },
{ name = "DiagnosticSignHint", text = icons.diagnostics.Hint },
@ -97,12 +92,13 @@ M.on_attach = function(client, bufnr)
client.server_capabilities.documentFormattingProvider = false
end
if client.name == "sumneko_lua" then
if client.name == "lua_ls" then
client.server_capabilities.documentFormattingProvider = false
end
if client.supports_method("textDocument/inlayHint") then
vim.lsp.inlay_hint.enable(bufnr, true)
-- vim.lsp.inlay_hint.enable(bufnr, true)
vim.lsp.inlay_hint.enable(true)
end
lsp_keymaps(bufnr)

View file

@ -28,11 +28,16 @@ configs.setup({
-- json = "",
-- },
-- },
-- rainbow = {
-- enable = true,
-- disable = { "html", "tsx" },
-- equery = "rainbow-parens",
-- strategy = require("ts-rainbow").strategy.global,
-- },
rainbow = {
enable = true,
disable = { "html", "tsx" },
equery = "rainbow-parens",
strategy = require("ts-rainbow").strategy.global,
enable = false,
extended_mode = true, -- Highlight also non-parentheses delimiters, boolean or table: lang -> boolean
max_file_lines = 1000, -- Do not enable for files with more than 1000 lines, int
},
-- autotag = { enable = true, enable_rename = true, enable_close = true, enable_close_on_slash = true },
incremental_selection = { enable = true },