feat(lsp,debugger,formatting): C/C++ setup with clang

This commit is contained in:
Guz
2026-03-30 17:06:53 -03:00
parent 769f2c9168
commit 4c9f1b911f
6 changed files with 275 additions and 0 deletions

View File

@@ -18,5 +18,8 @@ end
-- Languages
-- C/C++
require("dap-lldb").setup()
-- Go
require("dap-go").setup()

View File

@@ -24,6 +24,8 @@ end
conform.setup({
formatters_by_ft = {
c = { "clang-format", lsp_format = "fallback" },
cpp = { "clang-format", lsp_format = "fallback" },
css = prettier,
gdscript = { "gdformat" },
go = function(bufnr)

View File

@@ -1,6 +1,10 @@
---@type lze.PluginSpec[] | { lsp: vim.lsp.Config }[]
return {
-- Language Server Providers
{
"clangd",
lsp = { filetypes = { "c", "cpp", "objc", "objcpp", "cuda" } },
},
{
"cssls",
lsp = { filetypes = { "css", "scss", "less" } },