From 5ddf4b6929d238b9f2feca3031387a0458423b97 Mon Sep 17 00:00:00 2001 From: "Mariano Z." Date: Mon, 21 Jul 2025 12:34:35 -0300 Subject: [PATCH] dev: automated commit - 2025-07-21 12:34:35 --- lsp/clangd.lua | 11 +++++++++ lua/config/remap.lua | 4 +--- lua/plugins/lsp/init.lua | 21 +++++++++++++--- plugin/after/transparency.lua | 45 +++++++++++++++++++++++++++++++++++ 4 files changed, 75 insertions(+), 6 deletions(-) create mode 100644 lsp/clangd.lua create mode 100644 plugin/after/transparency.lua diff --git a/lsp/clangd.lua b/lsp/clangd.lua new file mode 100644 index 0000000..cea994f --- /dev/null +++ b/lsp/clangd.lua @@ -0,0 +1,11 @@ +return { + settings = { + cmd = { + "clangd", + "--clang-tidy", + "-j=5", + "--malloc-trim", + }, + filetypes = { "c" }, -- "cpp" + }, +} diff --git a/lua/config/remap.lua b/lua/config/remap.lua index 279afd5..a0f8091 100644 --- a/lua/config/remap.lua +++ b/lua/config/remap.lua @@ -55,9 +55,7 @@ nmap("u", vim.cmd.UndotreeToggle) -- nnoremap yl :let @" = expand("%:p") nmap("yl", function() - local file = vim.fn.expand("%:p") - print("Copied path to clipboard: " .. file) - -- copy to os clipboard + local file = vim.fn.expand("%") vim.fn.setreg("+", file) end, { desc = "Copy file path to clipboard" }) diff --git a/lua/plugins/lsp/init.lua b/lua/plugins/lsp/init.lua index 86d74bf..c4b1848 100644 --- a/lua/plugins/lsp/init.lua +++ b/lua/plugins/lsp/init.lua @@ -129,14 +129,14 @@ return { local servers = { "gopls", "jsonls", + "clangd", "lua_ls", "yamlls", "graphql", "html", "omnisharp", "svelte", - "vtsls", - "ccls", + -- "vtsls", "templ", "tinymist", } @@ -153,7 +153,7 @@ return { } -- Servers not supported by mason - local mason_unsupported = { "ccls" } + local mason_unsupported = {} local mason_servers = vim.tbl_filter(function(server) return not vim.tbl_contains(mason_unsupported, server) @@ -202,5 +202,20 @@ return { end end, }) + + vim.lsp.config("ts_go_ls", { + cmd = { vim.loop.os_homedir() .. "/Dev/random/typescript-go/built/local/tsgo", "--lsp", "-stdio" }, + filetypes = { + "javascript", + "javascriptreact", + "javascript.jsx", + "typescript", + "typescriptreact", + "typescript.tsx", + }, + root_markers = { "tsconfig.json", "jsconfig.json", "package.json", ".git" }, + }) + + vim.lsp.enable("ts_go_ls") end, } diff --git a/plugin/after/transparency.lua b/plugin/after/transparency.lua new file mode 100644 index 0000000..d0090f0 --- /dev/null +++ b/plugin/after/transparency.lua @@ -0,0 +1,45 @@ +-- transparent background +vim.api.nvim_set_hl(0, "Normal", { bg = "none" }) +vim.api.nvim_set_hl(0, "NormalFloat", { bg = "none" }) +vim.api.nvim_set_hl(0, "FloatBorder", { bg = "none" }) +vim.api.nvim_set_hl(0, "Pmenu", { bg = "none" }) +vim.api.nvim_set_hl(0, "Terminal", { bg = "none" }) +vim.api.nvim_set_hl(0, "EndOfBuffer", { bg = "none" }) +vim.api.nvim_set_hl(0, "FoldColumn", { bg = "none" }) +vim.api.nvim_set_hl(0, "Folded", { bg = "none" }) +vim.api.nvim_set_hl(0, "SignColumn", { bg = "none" }) +vim.api.nvim_set_hl(0, "NormalNC", { bg = "none" }) +vim.api.nvim_set_hl(0, "WhichKeyFloat", { bg = "none" }) +vim.api.nvim_set_hl(0, "TelescopeBorder", { bg = "none" }) +vim.api.nvim_set_hl(0, "TelescopeNormal", { bg = "none" }) +vim.api.nvim_set_hl(0, "TelescopePromptBorder", { bg = "none" }) +vim.api.nvim_set_hl(0, "TelescopePromptTitle", { bg = "none" }) + +-- transparent background for neotree +vim.api.nvim_set_hl(0, "NeoTreeNormal", { bg = "none" }) +vim.api.nvim_set_hl(0, "NeoTreeNormalNC", { bg = "none" }) +vim.api.nvim_set_hl(0, "NeoTreeVertSplit", { bg = "none" }) +vim.api.nvim_set_hl(0, "NeoTreeWinSeparator", { bg = "none" }) +vim.api.nvim_set_hl(0, "NeoTreeEndOfBuffer", { bg = "none" }) + +-- transparent background for nvim-tree +vim.api.nvim_set_hl(0, "NvimTreeNormal", { bg = "none" }) +vim.api.nvim_set_hl(0, "NvimTreeVertSplit", { bg = "none" }) +vim.api.nvim_set_hl(0, "NvimTreeEndOfBuffer", { bg = "none" }) + +-- transparent notify background +vim.api.nvim_set_hl(0, "NotifyINFOBody", { bg = "none" }) +vim.api.nvim_set_hl(0, "NotifyERRORBody", { bg = "none" }) +vim.api.nvim_set_hl(0, "NotifyWARNBody", { bg = "none" }) +vim.api.nvim_set_hl(0, "NotifyTRACEBody", { bg = "none" }) +vim.api.nvim_set_hl(0, "NotifyDEBUGBody", { bg = "none" }) +vim.api.nvim_set_hl(0, "NotifyINFOTitle", { bg = "none" }) +vim.api.nvim_set_hl(0, "NotifyERRORTitle", { bg = "none" }) +vim.api.nvim_set_hl(0, "NotifyWARNTitle", { bg = "none" }) +vim.api.nvim_set_hl(0, "NotifyTRACETitle", { bg = "none" }) +vim.api.nvim_set_hl(0, "NotifyDEBUGTitle", { bg = "none" }) +vim.api.nvim_set_hl(0, "NotifyINFOBorder", { bg = "none" }) +vim.api.nvim_set_hl(0, "NotifyERRORBorder", { bg = "none" }) +vim.api.nvim_set_hl(0, "NotifyWARNBorder", { bg = "none" }) +vim.api.nvim_set_hl(0, "NotifyTRACEBorder", { bg = "none" }) +vim.api.nvim_set_hl(0, "NotifyDEBUGBorder", { bg = "none" })