mirror of
https://github.com/marianozunino/nvim.git
synced 2025-10-28 11:20:41 -03:00
dev: automated commit - 2025-07-21 12:34:35
This commit is contained in:
parent
5cf175cad1
commit
5ddf4b6929
4 changed files with 75 additions and 6 deletions
11
lsp/clangd.lua
Normal file
11
lsp/clangd.lua
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
return {
|
||||||
|
settings = {
|
||||||
|
cmd = {
|
||||||
|
"clangd",
|
||||||
|
"--clang-tidy",
|
||||||
|
"-j=5",
|
||||||
|
"--malloc-trim",
|
||||||
|
},
|
||||||
|
filetypes = { "c" }, -- "cpp"
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
@ -55,9 +55,7 @@ nmap("<leader>u", vim.cmd.UndotreeToggle)
|
||||||
|
|
||||||
-- nnoremap yl :let @" = expand("%:p")<cr>
|
-- nnoremap yl :let @" = expand("%:p")<cr>
|
||||||
nmap("yl", function()
|
nmap("yl", function()
|
||||||
local file = vim.fn.expand("%:p")
|
local file = vim.fn.expand("%")
|
||||||
print("Copied path to clipboard: " .. file)
|
|
||||||
-- copy to os clipboard
|
|
||||||
vim.fn.setreg("+", file)
|
vim.fn.setreg("+", file)
|
||||||
end, { desc = "Copy file path to clipboard" })
|
end, { desc = "Copy file path to clipboard" })
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -129,14 +129,14 @@ return {
|
||||||
local servers = {
|
local servers = {
|
||||||
"gopls",
|
"gopls",
|
||||||
"jsonls",
|
"jsonls",
|
||||||
|
"clangd",
|
||||||
"lua_ls",
|
"lua_ls",
|
||||||
"yamlls",
|
"yamlls",
|
||||||
"graphql",
|
"graphql",
|
||||||
"html",
|
"html",
|
||||||
"omnisharp",
|
"omnisharp",
|
||||||
"svelte",
|
"svelte",
|
||||||
"vtsls",
|
-- "vtsls",
|
||||||
"ccls",
|
|
||||||
"templ",
|
"templ",
|
||||||
"tinymist",
|
"tinymist",
|
||||||
}
|
}
|
||||||
|
|
@ -153,7 +153,7 @@ return {
|
||||||
}
|
}
|
||||||
|
|
||||||
-- Servers not supported by mason
|
-- Servers not supported by mason
|
||||||
local mason_unsupported = { "ccls" }
|
local mason_unsupported = {}
|
||||||
|
|
||||||
local mason_servers = vim.tbl_filter(function(server)
|
local mason_servers = vim.tbl_filter(function(server)
|
||||||
return not vim.tbl_contains(mason_unsupported, server)
|
return not vim.tbl_contains(mason_unsupported, server)
|
||||||
|
|
@ -202,5 +202,20 @@ return {
|
||||||
end
|
end
|
||||||
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,
|
end,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
45
plugin/after/transparency.lua
Normal file
45
plugin/after/transparency.lua
Normal file
|
|
@ -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" })
|
||||||
Loading…
Add table
Add a link
Reference in a new issue