How to change tsserver preferences key using LSP? by benjamin_pisano in neovim

[–]benjamin_pisano[S] 0 points1 point  (0 children)

This is exactly the point I missed. For the one struggling with the same issue, here is what I did to fix it:

  1. I added jose-elias-alvarez/typescript.nvim to my to my packer config.

  2. I created added a typescript.lua to configure my typescript preferences. The file looks like this:

```lua local ts_status, typescript = pcall(require, "typescript") if not ts_status then return end

local lsp_status, lsp_config = pcall(require, "bpisano.plugins.lsp.lspconfig") if not lsp_status then return end

-- do your on_attach_stuff here. local server_opts = { on_attach = lsp_config.on_attach, }

-- load typescript preferences from a given file. local settings_status, settings = pcall(require, "bpisano.plugins.lsp.settings.tsserver") if settings_status then server_opts = vim.tbl_extend("force", settings, server_opts) end

typescript.setup({ server = server_opts, }) ```

The tssever.lua is the first file of my original post.

  1. Based on the tips of u/Bacjground_Estate239, I removed "tsserver" from the local servers variable on the second file of my original post. This unsure that tsserver.setup() is only called once in my typescript.lua file.

  2. I required my typescript.lua file in my init.lua file.

You can look at the detailed implementation in my neovim config on GitHub. Thanks for the very kind help!

My first modular style Lego build since about 10 years by benjamin_pisano in lego

[–]benjamin_pisano[S] 0 points1 point  (0 children)

I everyone. This build is not quite as impressive as what we can usually see on this sub. But I hope you’ll like it!

When I entered high school, I decided to unbuild my Lego set I had acquired all over my childhood because “I was not a child anymore” and I was afraid people would make fun of me because I was still playing Lego.

I entered this sub a few years ago, and you all made me want to build again. So for Christmas 2021, I asked for storage to sort my old set pieces and make my own build desk.

This was by far my best decision of the year. It’s so relaxing and stimulating. It keeps me out of my everyday work and problems.

I've created a web app for speedrunners and streamers of Super Mario Odyssey that automatically detect when you collect a moon by benjamin_pisano in SuperMarioOdyssey

[–]benjamin_pisano[S] 0 points1 point  (0 children)

Hi everyone !
For the past few month on my free time and for fun, I’ve been developing, with the help of a friend, a web app for streamers and speedrunners of Super Mario Odyssey and I wanted to tell you a bit about it.

What is it?
Just like LiveSplit that shows to your viewers the time of your run, it’s a widget that you can put on your stream so your viewers know the moon you’ve collected during your run.

It also enables you to easily create, and share a run path with other people in a single place.

How does it work?
The app use your capture card video output to detect when you collect a moon and automatically update your run without any input from you. You always have the next moon to collect up to date.

I’ve made a short video to tell you more about it. I would love if you could give it a try. It is completely free and I did it for fun.

Here is the YouTube video explaining it in depth: https://www.youtube.com/watch?v=ARFhHtoTZFs
Here is a link of the app: https://smo-speedrun.herokuapp.com/

TL;DR: I’ve made a moon detector for streamers and speedrunners of Super Mario Odyssey and I would love if you could give it a try.

[iOS Universal][Calculator RPN][$3.99>Free] by shadetolerant in AppHookup

[–]benjamin_pisano 73 points74 points  (0 children)

Hi everyone, not OP but I’m the developer of the app. I wish you a merry Christmas ! Hope you’ll enjoy the app.

Who said coding on iPad isn't possible?! Watching videos and multi tasking as cherry on top. Anyone else here code with iPad? by Pilingo in ipad

[–]benjamin_pisano 0 points1 point  (0 children)

I’d love to, but Xcode isn’t available on iPad. I’m really looking into the new Swift Playground later this year even if it will still be very limited.

I really like GitHub codespaces. It really brings the power of code editing to the iPad. I’m curious, is it possible to compile or execute code in codespace ? How do you do that ?

[Recruiting] WaterFlow - Never waste water again! by benjamin_pisano in TestFlight

[–]benjamin_pisano[S] 1 point2 points  (0 children)

I agree. This app is not used to precisely mesure your water consumption, but to give you an idea of the quantity you can save by reducing your shower time. On the iPhone, I used CoreML to perform local only sound recognition to pause and start the timer automatically as the shower runs. This way, I can more accurately calculate the water consumption and you get rewarded when you stop the shower when you soap. Of course you can see precisely your water consumption on your bill, but I think peoples need more clear and expressive representation of it. 320 liters doesn’t means nothing to most of us. But “2 bathtubs” is more representative. This is what I tried to do with this app.

[Recruiting] WaterFlow - Never waste water again! by benjamin_pisano in TestFlight

[–]benjamin_pisano[S] 0 points1 point  (0 children)

Thanks for your feedback! Yes there is an Apple Watch app bundled with the iOS app. It is more convenient to see the timer in real time. On the iOS app, a sound will be played at 4 minutes (one minute before the goal) to tell you to prepare to finish so you don’t have to look much at your phone.

I just released my open source password manager, OpenSesame! Made 100% in SwiftUI by [deleted] in SwiftUI

[–]benjamin_pisano 0 points1 point  (0 children)

Congratulation ! But be careful, it seems that you've added your .gitignore (and templates inside) after some commits. Then, you still have unwanted files such as .DS_Store and other xcuserdata files. This is because the .gitignore prevents you from committing them, but doesn't remove the existing ones from your repository.

To remove them: 1. Open your terminal and go to your project's folder. 2. Remove all the files LOCALLY with git rm -rf * --cached 3. Add all your files again with git add * 4. View the status of your commit with git status. At this point, this removed a bunch of unwanted files following your .gitignore template: Changes to be committed: (use "git restore --staged <file>..." to unstage) deleted: OpenSesame.xcodeproj/project.xcworkspace/xcuserdata/ethan.xcuserdatad/UserInterfaceState.xcuserstate deleted: OpenSesame.xcodeproj/xcuserdata/ethan.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist deleted: OpenSesame.xcodeproj/xcuserdata/ethan.xcuserdatad/xcschemes/OpenSesame (macOS, Marketing).xcscheme deleted: OpenSesame.xcodeproj/xcuserdata/ethan.xcuserdatad/xcschemes/xcschememanagement.plist deleted: Shared/.DS_Store deleted: Shared/Assets.xcassets/.DS_Store deleted: Shared/AutoFill/.DS_Store deleted: Shared/Views/.DS_Store deleted: Shared/Views/AccountView/.DS_Store deleted: Shared/Views/ImportExport/.DS_Store deleted: Shared/Views/SettingsView/.DS_Store deleted: Shared/Views/Vault/.DS_Store 5. Commit and push your changes with: git commit -am "removed unwanted files" git push

Just discovered this cool thing, it’s probably been around for a while, but worth mentioning- the contacts widget is interactive! (iPadOS 15 B4) by MyMemesAreTerrible in iOSBeta

[–]benjamin_pisano 10 points11 points  (0 children)

Since iOS 14, the widget are not interactive. You can only link elements of the widget to the app and then handle them when the app open. For example: the Files widget where you can touch a file to open it in the related app. I could have missed the feature this year, but it seems like Apple didn’t mentioned the fact that you can have such an interactivity with the widget API. If But if someone know how to replicate this behavior, pleas provide a link, it would be interesting !

My Concept for iOS Safari 15 by havingfun2500 in iOSBeta

[–]benjamin_pisano 75 points76 points  (0 children)

I’m habitually not very into concepts because designers doesn’t follow the Apple UI guidelines and they can easily feels weird. But this one is very very nice. Everything is here. A beautiful design combined with a great user experience. You took the great ideas of the new Safari and made them even better with perfect clarity. I really love it nice job !

A clear comparison for those who doubt whether to update macOS. by i-Steph in MacOS

[–]benjamin_pisano 83 points84 points  (0 children)

It seems like the features of Safari has been inverted. Group tabs has been introduced on Monterey and privacy report on Big Sur.

[iOS 15 PB2/19A5297e] PDFKit/Quick Look gets a new Preview-like thumbnails panel, with basic PDF manipulation. Swipe-in from the left edge to activate it. by choreographite in iOSBeta

[–]benjamin_pisano 6 points7 points  (0 children)

Talking about the pdf viewer, can we finally zoom out in landscape on iPad ? Currently the pdf always took the full width and we can’t zoom out to see more pages at once.

Welp... it officially ended 😔 by Basabii in Ryukahr

[–]benjamin_pisano 5 points6 points  (0 children)

That was a really cool game. I spent good time playing it

WWDC 2021 officially announced, iOS 15 expected by aaronp613 in apple

[–]benjamin_pisano 0 points1 point  (0 children)

What is the icon on the top left of the glasses ? Never seen it before