Эх сурвалжийг харах

dev: automated commit - 2025-07-21 12:34:35

Mariano Z. 6 сар өмнө
parent
commit
5ddf4b6929

+ 11 - 0
lsp/clangd.lua

@@ -0,0 +1,11 @@
+return {
+  settings = {
+    cmd = {
+      "clangd",
+      "--clang-tidy",
+      "-j=5",
+      "--malloc-trim",
+    },
+    filetypes = { "c" }, -- "cpp"
+  },
+}

+ 1 - 3
lua/config/remap.lua

@@ -55,9 +55,7 @@ nmap("<leader>u", vim.cmd.UndotreeToggle)
 
 -- nnoremap yl :let @" = expand("%:p")<cr>
 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" })
 

+ 18 - 3
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,
 }

+ 45 - 0
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" })