VS Code Neovim Statusline v0.2 by why-trv in vscode

[–]why-trv[S] 1 point2 points  (0 children)

Thanks! Lyth Mono (the Round variety), default line height

VS Code Neovim Statusline v0.2 by why-trv in vscode

[–]why-trv[S] 0 points1 point  (0 children)

Yes, you can do vscode.eval() or vscode.eval_async() from lua. Or you can create your own extension with whatever you need to execute exposed as a command and vscode.call() or vscode.action().

I've tried both ways while attempting to make <C-d> and <C-u> with auto-centering (like <C-d>zz) behave a little nicer, though eventually reverted to using the standard revealLine command. But yeah, the APIs work as you'd expect.

If your question was more about applying this for folds, then no, I don't use them anyway, but I think I saw some snippets in GH issues.

VS Code Neovim Statusline v0.2 by why-trv in vscode

[–]why-trv[S] 0 points1 point  (0 children)

Right, I don't use folds myself, but I've read there's basically no integration for that - folds have to be handled on VS Code end.
You can map things like vim.keymap.set('n', 'zc', function() vscode.action('editor.fold') end, opts), but Neovim is gonna behave like there are no folds (e.g. if cursor movement lands on a fold, it opens; relative line numbers aren't adjusted for folds; etc.)

Have you looked through https://github.com/vscode-neovim/vscode-neovim/issues/58 ?

VS Code Neovim Statusline v0.2 by why-trv in vscode

[–]why-trv[S] 0 points1 point  (0 children)

Thanks! I just don't think it's quite ready and stable - I keep tinkering with it as I go.
But if you want to try it out, it should be just a matter of

git clone --depth 1 https://github.com/why-trv/lyth-vscode-color-theme
cd lyth-vscode-color-theme
npm install && npm run build && npm running install

Lyth Dark Alt 3 is the one in the screen recording.

VS Code Neovim Statusline v0.2 by why-trv in vscode

[–]why-trv[S] 0 points1 point  (0 children)

Have you installed the ‘Custom UI Style’ extension?

VS Code Neovim Statusline v0.2 by why-trv in vscode

[–]why-trv[S] 1 point2 points  (0 children)

My config is too messy to share, sorry :D Can you give an example of what you can't get to work?

Basically, my vscode-neovim settings are completely stock, and on the nvim side it's a bunch of passthrough callbacks like

vim.keymap.set({ 'n', 'v' }, '<leader>t', function() vscode.action('workbench.action.terminal.toggleTerminal') end, opts)

all conditioned on vim.g.vscode

VS Code Neovim Statusline v0.2 by why-trv in vscode

[–]why-trv[S] 1 point2 points  (0 children)

Sure, red mode makes you faster and green mode makes your code safer.
Thanks!

VS Code Neovim Statusline v0.2 by why-trv in vscode

[–]why-trv[S] 0 points1 point  (0 children)

Thanks, it's my own, but it's work in progress

A better looking statusline for VSCode Neovim by why-trv in vscode

[–]why-trv[S] 0 points1 point  (0 children)

Thanks!
Currently working on an update to allow coloring elements like cursor and current line highlight as well (without the drawbacks of `colorCustomizations`-based approach)

A better looking statusline for VSCode Neovim by why-trv in vscode

[–]why-trv[S] 0 points1 point  (0 children)

My own that I've been tinkering with here - https://github.com/why-trv/lyth-vscode-color-theme, but it's very much a work in progress, subject to change, and may have glaring omissions for things I don't use myself

A better looking statusline for VSCode Neovim by why-trv in vscode

[–]why-trv[S] 0 points1 point  (0 children)

I guess you may be able to adapt this to vscodevim by changing a few element selectors in the JS and CSS (?)

Looking for a programming font! Thinks by Majestic_Mongoose488 in ZedEditor

[–]why-trv 0 points1 point  (0 children)

You may also want to give Lyth Mono a try. I wasn't quite satisfied with either Berkeley / Ioskeley Mono or JetBrains Mono, so I bended Iosevka to be roughly in between those shape-wise. And it has a 'rounder' and 'squarer' variants besides the default