mac

joined 2 years ago
MODERATOR OF
 

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.

0
Truth (infosec.pub)
 
1
submitted 2 years ago* (last edited 2 years 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>> {...}
 

I personally am a fan I find it to be like spaces except I can see them which makes switching between tasks smoother.

0
submitted 2 years ago* (last edited 2 years 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.

 

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

 

Helix is a new batteries included Modal editor inspired by Vim & written in Rust

 

Also see here for a video of the screenshot and a video of my configuration reload script.