mirror of
https://github.com/marianozunino/nvim.git
synced 2025-10-28 19:30: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
|
|
@ -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" })
|
||||
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue