not quite sure what I've done here

This commit is contained in:
Squibid 2025-11-22 17:22:23 -05:00
parent b22873f45f
commit 83aaa5aef3
Signed by: squibid
GPG key ID: BECE5684D3C4005D
18 changed files with 392 additions and 392 deletions

View file

@ -9,29 +9,29 @@ auto('LspAttach', {
group = wtf_group,
callback = function(ctx)
local client = vim.lsp.get_client_by_id(ctx.data.client_id)
if not client then
return
end
if not client then
return
end
-- highlight color codes via lsp (supported by cssls)
-- #ff0000
-- highlight color codes via lsp (supported by cssls)
_ = "#ff0000"
if client:supports_method('textDocument/documentColor') then
pcall(vim.lsp.document_color.enable, true, ctx.buf)
end
-- enable linked editing this allows lsps to modify things like html tags
-- for example when you change <p> to <a> </p> will be changed by the lsp
-- to </a>
-- enable linked editing this allows lsps to modify things like html tags
-- for example when you change <p> to <a> </p> will be changed by the lsp
-- to </a>
if client:supports_method('textDocument/linkedEditingRange') then
pcall(vim.lsp.linked_editing_range.enable, true, { client_id = client.id })
pcall(vim.lsp.linked_editing_range.enable, true, { client_id = client.id })
end
-- disabled for now cause I don't like it
-- -- enable type formatting which allows lsps to modify text while you're
-- -- typing for example if you insert {} in a string in python basedpyright
-- -- will change the string to a format string
-- if client:supports_method('textDocument/onTypeFormatting') then
-- pcall(vim.lsp.on_type_formatting.enable, true, { client_id = client.id })
-- end
-- disabled for now cause I don't like it
-- -- enable type formatting which allows lsps to modify text while you're
-- -- typing for example if you insert {} in a string in python basedpyright
-- -- will change the string to a format string
-- if client:supports_method('textDocument/onTypeFormatting') then
-- pcall(vim.lsp.on_type_formatting.enable, true, { client_id = client.id })
-- end
end
})