News for hackers. Stuff that matters.
Re:LazyVim by loveparade on Sunday July 16, 2023 @10:30PM (#36753417)
A bit off-topic, but I wonder how much Copilot/GPT cuts into the market share of editors like vim and emacs. I used emacs for the past few years, but I recently switched (back) to vscode because the Copilot integration is really good. There are a lot GPT integraton packages for other editors, but they don't come close to the deeper integration that vscode has. And of course, vscode will probably get priority treatment from Microsoft.

At this point, this is (somewhat unfortunately, I really like vim and emacs) a big selling point for vscode.

Re:LazyVim by valid4life on Sunday July 16, 2023 @10:41PM (#36753486)
I love using the official copilot plugin with neovim. It has easy rebindable keys and a pretty nice set of features.

As you said though.. It won't compete with 1st party love given to VSC. For example, I have no idea if "neighboring tabs" is a feature in neovim.

Re:LazyVim by raydiatian on Sunday July 16, 2023 @10:34PM (#36753449)
Aren’t you giving your code away to Microsoft if you use Copilot?
Re:LazyVim by whompyjaw on Sunday July 16, 2023 @10:43PM (#36753495)
Ya pretty sure using copilot only applies to personal projects. To my knowledge, you can’t use LLM’s while coding at work due to CCI.

However, there are plugins to use LLM’s while coding with Neovim and Emacs, so, you can still use these editors for that if you want.

Re:LazyVim by fernandotakai on Monday July 17, 2023 @04:39AM (#36755598)
> Ya pretty sure using copilot only applies to personal projects. To my knowledge, you can’t use LLM’s while coding at work due to CCI.

copilot for business exists https://docs.github.com/en/enterprise-cloud@latest/copilot/o...

Re:LazyVim by jemmyw on Sunday July 16, 2023 @11:10PM (#36753635)
You can now configure it to not use your code for learning
Re:LazyVim by VectorLock on Sunday July 16, 2023 @11:34PM (#36753747)
But it has to use your code for inferencing, doesn't it? So it is sending it to someone.

I see this being a blocker at a lot of places. I know in my workplace the infosec people are apoplectic about it and we supposedly have a 'partnership' with OpenAI.

Re:LazyVim by xyzzy_plugh on Monday July 17, 2023 @12:01AM (#36753915)
You're not wrong, and I realize there is nuance here, but if you're using GitHub you are already sending your code to Microsoft.
Re:LazyVim by VectorLock on Wednesday July 19, 2023 @02:16AM (#36782696)
I don't think using GitHub is a prerequisite for using Copilot but I could be wrong.
Re:LazyVim by willdr on Monday July 17, 2023 @04:02AM (#36755371)
Do those places use GitHub? Anything on GitHub has been given to Microsoft.
Re:LazyVim by raydiatian on Wednesday July 19, 2023 @10:23PM (#36796200)
Not like Microsoft has ever lied or breached trust
Re:LazyVim by w0m on Sunday July 16, 2023 @10:46PM (#36753508)
copilot works wonderfully inside NeoVim; I use it daily. You are right that some of the more advanced integrations (Chat, direct analysis/explanation) aren't ported though. I use shellgpt in tmux for a (not as good but almost) experience.
Re:LazyVim by pooriar on Sunday July 16, 2023 @11:09PM (#36753633)
Does it really work wonderfully for you? I am often times shocked by how it just can't guess the most obvious completions. Then I jump into VSCode to sanity check, and it works fine there.

Talking about tpope's official neovim plugin

Re:LazyVim by buf on Sunday July 16, 2023 @11:19PM (#36753674)
Just tagging in for comment OP.

Copilot really does work wonderfully for me, as expected with any AI code completion. I run copilot and coc.vim simultaneously, to be noted. So when I just want to autocomplete a word, it'll be coc.vim, but when I want a whole line/method/etc built I'll let copilot be my copilot.

Re:LazyVim by w0m on Wednesday July 19, 2023 @11:05AM (#36787650)
It's not perfect, but it's still generally valuable. I do still bounce between VSCode/NeoVim (depending how often my current task will need a stable debugger vs how often i need better neovim code search), so I see how the VSCode implementation is better; but I still prefer to live in neovim as much as possible.
Re:LazyVim by adamkf on Sunday July 16, 2023 @11:42PM (#36753784)
I gave it a try the other day using copilot.lua, and it made the whole editor unusably slow. It somehow caused syntax highlighting to "lag" for tens of seconds every time I made any sort of edit.

Maybe I need to be using the official plugin, and maybe I need to disable LSP based syntax highlighting, but that makes me wonder what it's doing.

Re:LazyVim by maleldil on Monday July 17, 2023 @12:19AM (#36754055)
What languages and LSPs are you using? I've never experienced this with Python (pyright), Go (gopls) or Rust (rust-analyzer). I'm using tree-sitter for syntax highlighting. The only special thing is that I'm using lazy.nvim (the plugin manager) to load copilot.lua on the InsertEnter event.
Re:LazyVim by adamkf on Monday July 17, 2023 @10:47AM (#36758905)
I am using typescript with typescript-language-server. I'll give the lazy stuff a try, but I am not sure why this would make the editor more responsive outside of the initial load.
Re:LazyVim by w0m on Monday July 17, 2023 @10:46AM (#36758887)
I have pyright/shell running happily with lsbconfig and haven't noticed any lag. There's a way to profile plugins to see what's killing you I think.
Re:LazyVim by omoikane on Sunday July 16, 2023 @10:59PM (#36753582)
I never got into these copilot things because I wanted my text editor to be predictable rather than magical. As such, I am still using regular VIM.
Re:LazyVim by column on Monday July 17, 2023 @05:46AM (#36755969)
It's not like vscode sneaks in the copilot code. You always have to validate. Is it magical when you use regular code completion?
Re:LazyVim by omoikane on Monday July 17, 2023 @11:12AM (#36759231)
Regular autocompletion also feels magical and unpredictable.

This is because I need a tighter visual feedback loop to confirm that the IDE has chosen the right identifiers and inserted extra parentheses and such, and so I couldn't get a few keystrokes ahead of what I see. It's nice for debugging where I only need to replace a few things in a few lines, and I suppose it might be nice if I am trying a new language and wasn't typing very fast anyways. It's not something I use regularly for development.

Re:LazyVim by pooriar on Sunday July 16, 2023 @11:08PM (#36753624)
It's the only thing that tempts me away from Vim. Vim does have an official copilot plugin but it seems gimped compared to VSCode. I wonder if that's intentional.
Re:LazyVim by whateveracct on Sunday July 16, 2023 @11:23PM (#36753691)
I've been using a text editor and a repl forever now and don't see myself adding to the workflow. I don't optimize things that are so far off the critical path of my productivity.
Re:LazyVim by lispisok on Sunday July 16, 2023 @11:31PM (#36753733)
The master plan is to have everybody writing Microsoft Typescript in Microsoft Visual Studio Code using Github (Microsoft) Copilot
Re:LazyVim by yoyohello13 on Monday July 17, 2023 @12:13AM (#36754008)
I use copilot, but I it’s not a super game changer in my opinion. I can live without it. I often turn it off when I’m using SQL or something when it hinders more than helps. It’s honestly best when I’m writing JavaScript because I’m not very good with the language. But when I’m writing a language like python which I’ve been using for a long time it kind of gets in the way.
Re:LazyVim by alwillis on Monday July 17, 2023 @02:53AM (#36754936)
> A bit off-topic, but I wonder how much Copilot/GPT cuts into the market share of editors like vim and emacs.

So you think that the two editors that have been around for nearly 100 years combined and are extremely customizable and have survived every coding fad, language and technology trend, is in danger from AI features?

Short answer: no.

Both Emacs and Neovim has first class support/implementations of Co-Pilot and GPT plugins.

For example ChatGPT.nvim [1].

[1]: https://github.com/jackMort/ChatGPT.nvim

Re:LazyVim by nextlevelwizard on Monday July 17, 2023 @03:25AM (#36755149)
Copilot has native NeoVim support

I don't know what kind of GPT you want in your editor. A colleague of mine attached the llama model to his vim, but that doesn't seem too useful to me.