1
submitted 6 months ago by mac@infosec.pub to c/vim@lemmy.sdf.org

I've been using vim-lsp, it's great for the most part. Only thing I'd like to be able to do is change the default view of errors and warnings to be hidden except for a red or yellow line under the affected text that I can expand using :LspHover or something. Is this a possibility at all?

The docs only mention about turning of diagnostics completely.

[-] mac@infosec.pub 26 points 6 months ago

Energy shouldn't be a business, it's a necessity at this point.

[-] mac@infosec.pub 26 points 6 months ago

I think the bank is smart enough to understand they were probably drunk and joking, if they were actually performing terrorist acts with the funds then they wouldn't label them so plainly. Closing someone's bank can cause a lot of issues in their life so it is more fair to warn them first.

[-] mac@infosec.pub 19 points 6 months ago

If they switched over to this method instead of the current I would argue an adblocker wouldn't even improve the experience, the problem is that it interrupts my actual content in the middle of the video.

877
submitted 6 months ago by mac@infosec.pub to c/adhd@lemmy.world
455
Truth (infosec.pub)
submitted 6 months ago by mac@infosec.pub to c/adhd@lemmy.world
[-] mac@infosec.pub 48 points 6 months ago

Questionable business moves in a game about literally robbing banks is a pretty funny sentiment.

[-] mac@infosec.pub 18 points 6 months ago

Mint is just green Ubuntu.

[-] mac@infosec.pub 30 points 6 months ago

I think Arch is a good distro to learn for new users who are interested in tech, it gives an amazing example of good documentation and teaches you a lot about how UNIX-Like filesystems work.

That being said for non-technical users with zero interest, my main recommendations are Mint if you are coming from or prefer Windows and Elementary if you're coming from or prefer Mac.

11
submitted 6 months ago by mac@infosec.pub to c/webdev@programming.dev

I have a Deno Fresh app, it runs fine for the most part but there is an issue on load in a browser that hasn't cached anything, clicking the about button doesn't work on the first click but does on the second if you click another in between.

There is also an issue in my android phone where it stutters when scrolling down to the about section as the animation loads.

Any help would be amazing, the repo is here

18
submitted 7 months ago by mac@infosec.pub to c/shell@programming.dev
1
submitted 7 months ago* (last edited 7 months ago) by mac@infosec.pub to c/vim@lemmy.sdf.org

Vim9Script Types Help

I'm trying to add types to a language list in my vimrc file, the variable looks like this:

var languages = {
  'c': ['c', 'h'],
  'shell': ['sh'],
  'python': ['py'],
  'json': ['json'],
  'typescript': ['tsx', 'jsx', 'js', 'ts'],
}

I've tried adding types like this:

var languages: dict<string, list<string>> {...}

Which should work I think but I'm getting this error:

E488: Trailing characters: , list<string>> = {

I can't figure out which characters are trailing and AI has no idea either.

Solution

I was being a moron and defining a type for the key in the dictionary which makes no sense because the key name would always be a string so therefore only the value type is required:

var languages: dict<list<string>> {...}
[-] mac@infosec.pub 146 points 7 months ago

I thought it was poking fun at the tutorial saying instead of learning to code, import a library from someone who knows how to code.

[-] mac@infosec.pub 19 points 7 months ago

Pretty much this, it's the one use case for copilot, I know what I want to type anyway and copilot is usually close enough that 2 edits is faster than typing the whole thing and better for rsi.

[-] mac@infosec.pub 24 points 7 months ago

Nuh uh this one has a new picture on it

[-] mac@infosec.pub 18 points 7 months ago

Wrists are also surprisingly weak.

60
submitted 7 months ago by mac@infosec.pub to c/unixporn@lemmy.ml
  • SwayFX
  • Swaybar (hidden unless I'm holding down Alt)
  • NeoVim
  • Firefox
  • Zathura
  • feh (image viewer)

NeoVim & LaTeX with Zathura for viewing NeoVim in .sh, cmatrix, fetch.sh, cpipes, cbonsa Wallpaper with Swaybar NeoVim with Sway config, & feh

128
submitted 7 months ago* (last edited 7 months ago) by mac@infosec.pub to c/unixporn@lemmy.ml

Everyone is posting android so here you go.

This is my super minimal setup, it's convenient quick to use and I have no issues with it.

[-] mac@infosec.pub 67 points 7 months ago

The most sane news headline starting with "Florida man"

[-] mac@infosec.pub 21 points 7 months ago

They left and joined a different server with better moderation.

17
submitted 8 months ago by mac@infosec.pub to c/neovim@sopuli.xyz

Hi I've been looking at nyoom.nvim and it alters the UI of telescope (see screenshot) I was just wondering how this is possible? I looked d through the codebase but couldn't find anything other than the setting of colours?

Here is the repo: https://github.com/nyoom-engineering/nyoom.nvim

21
submitted 8 months ago by mac@infosec.pub to c/neovim@programming.dev

Hi I've been looking at nyoom.nvim and it alters the UI of telescope (see screenshot) I was just wondering how this is possible? I looked d through the codebase but couldn't find anything other than the setting of colours?

Here is the repo: https://github.com/nyoom-engineering/nyoom.nvim

73
submitted 8 months ago by mac@infosec.pub to c/unixporn@lemmy.ml
  • Fedora Sericea 39
  • Fuzzel
  • Waybar
  • Foot
  • NeoVim
61
submitted 9 months ago by mac@infosec.pub to c/linux@lemmy.ml
view more: next ›

mac

joined 9 months ago
MODERATOR OF