15 ms·
Neovim v0.5
- kdheepak 5y agoI'm excited for this release! Built in nvim-lsp, treesitter support, better support for accessing vim internals from lua are all awesome additions. I've been using the nightly releases for a while and it has been great! I'm looking forward to seeing the larger community now have access to the stable release! For people that are interested in knowing more, neovim is having a release stream on teej's twitch channel: twitch.tv/teej_dv.
- rektide 5y agoI've seen a number of announcements but this is the first 'I'm excited!' post I've seen that includes any information about what is being added. Strike that, not entirely true: there was one good post 37 days ago, "Neovim is overpowering", that I liked a lot[1]. [1] https://crispgm.com/page/neovim-is-overpowering.html https://crispgm.com/page/neovim-is-overpowering.html https://news.ycombinator.com/item?id=27291302 https://news.ycombinator.com/item?id=27291302
- fermentation 5y agoWhat do folks these days use with vim-lsp to get an IDE-like experience? I’m wondering if it would be better than a coc/ccls setup.
- mauricedenassau 5y agoI think the fact that it's built-in should not be overlooked.
- lc9er 5y agoApart from some node issues early on, CoC has worked well for me. At some point I’ll try the native lsp, but it seems like a lot of setup, just to get back to where I already am.
- qbasic_forever 5y agoI went back to coc from nvim's native lsp. I think the nvim lsp world needs another year to stabilize and mature. The default lsp configs are pretty rudimentary and make big assumptions like every project root is a git repo. You can't easily just have a project specific LSP configuration file like you can with coc. And installing each LSP is a real chore with various competing plugins instead of the easy built-in coc install commands.
- asymmetric 5y agoAre there release notes somewhere?
- pythux 5y agoI found this to be pretty comprehensive (not sure if this is the final release note, though): https://github.com/neovim/neovim/commit/a5ac2f45ff84a688a09479f357a9909d5b914294 https://github.com/neovim/neovim/commit/a5ac2f45ff84a688a094...
- thrwn_frthr_awy 5y agoLua remote plugin host Lua user-config: init.lua Treesitter syntax engine LSP client for code navigation, refactoring Extended marks (text properties, decorations, virtual text) From https://neovim.io/roadmap/ https://neovim.io/roadmap/
- cturtle 5y agoThere is a draft on the GitHub wiki here: https://github.com/neovim/neovim/wiki/newsletter-%2311-:-the-0.5-release https://github.com/neovim/neovim/wiki/newsletter-%2311-:-the...
- xwdv 5y agoThe best developers and engineers I’ve known all used Neovim. Coincidence?
- elteto 5y agoYes.
- UI_at_80x24 5y agoYou don't know enough developers or engineers. Much like; "If you find that you are always the smartest person in the room, you are in the wrong room." Healthy communities are diverse not homogeneous. You get tunnel-vision if everybody always do things the same way. I use vim on all my servers. I tried neovim awhile ago, but found that muscle memory kept typing vim instead of (nvim/neovim whichever the program executable name is), so I made an alias and tried that for awhile. I want to use/learn emacs too but never seem to have the time.
- xwdv 5y agoI know plenty of developers and engineers. But the best engineers can only be about a handful, everyone cannot be the best. That's not what the best means. It just so happens that of those best, which by the time you get to my age might only be about 3 or 4, they all seem to use neovim.
- catblast01 5y agoI don’t care what the count is, you sample is incredibly biased.
- rektide 5y ago> The best developers and engineers I’ve known all used Neovim. Coincidence? Generally I rather advise we not do this!! This is a baiting question & one built around superficial narrow-dimensional assessments of "best". But sure, Friday, I've got summer hours: why not write a little homage to what I think is compelling & makes vim such a life-long joy to ongoingly immerse myself into, let's talk some about why I think vim makes some users feel unmatchedly free in a way they would never put down: Vim's origins as the most user-hostile text-editor known to man (ed) is an interesting origin story. Ed excelled at automation, at writing little scripts to modify programs, in a non-interactive fashion. This excellence as an automated text editing system stems, in my view, from Ed/Vim's notion of Text Objects, ed/vim's way of telling the editor about where you want to go/what you want to select in a file. The editor as a bunch of buffers (opened files), named registers (which is basically a 1-dimensional (many points) rather than 0-dimensional (point) clipboards), text-objects that can select spots in buffers ("lines 4-7", "the first two characters of this line"), and commands that can be run on text-objects is an incredibly powerful set of general purpose abstractions for doing any variety of text processing task, and there's a nice break down of responsibilities for what does what in this system. The shake out is cool. Macros in this system are nothing but a stream of commands dropped into a register, with the ability to replay that stream: it basically didn't require adding anything to the existing system to get macros in vim, because vim was already text-driven enough by it's nature. Text-objects[1] deserve some special mention as a standout component of this system. They are an incredible leap, giving us huge expressivity when we want to cite or reference some part of the screen. I've always called vim "spellcasting on the fly", as in the ability to combine a bunch of ad-hoc text-objects & commands , but the irony is that it's origin, ed, while yes sometimes used for interactive editing, was quickly primarily used for automation, for rote processing. It's about building a sophisticated model of being able to reference a spot in a document, possibly as the document changes around you over time, & doing certain things. The rote-based/automated use of ed is so core to vim's magic: the power of text-objects to cite specific things on the page, in a endless variety of ways, and then to issue modifications & updates to these powerful text-object's you've named is a wonderful combination of powers, for both rote/automated processing, and on-the-fly/interactive processing. Vim is far & away the most interesting model of text-editing there is. There are countless editors out there, with wonderful features, and great integration, but by george you just cannot beat (rather, we have not beat) the power of having a sophisticated powerful expressive model for what text is, and how to get to parts in the text, that vim brings. If you want a way to edit text that let's your brain be free to express how to move through & talk about text, that has powerful scripting to let you build & extend your palette of commands, (neo)vim is unmatched. Epistemic status: 0.2, unresearched, probably a lot of disambiguation/clarifying needed, some liberties taken with the timeline of when exactly what happened. [1] https://blog.carbonfive.com/vim-text-objects-the-definitive-guide/ https://blog.carbonfive.com/vim-text-objects-the-definitive-...
- rektide 5y agoBundling in a bunch of plugins[1] feels semi-cheating for shipping a new release, but I'm ok with it. I do get a bit of a monolithization vibe, and it kind of scares me to think that neovim might get stuck with some ever-ossifying codebases it shouldn't have pulled in, but overall I think the gains of building a more rich, integrated, baseline editing environment probably justifies the damage of consolidation/picking one. Weird comparison to draw, but like systemd comes to mind. I love systemd so much. It's many different utilities all have a pretty consistent way to be operated & they're all optional & independent, so it's really more of a mono-repo. My warning hazards have never gone off on systemd: the init system is radically better, building a suite of tools using the same design system makes it so much of a joy; there's consistent powerful strategies I can deploy when working with any of the systemd monorepo daemons. By compare neovim intuitively feels a little more integrative to me, more monolithic rather than being so strongly mono-repo'ish. Neovim scripts will emerge hooking into, extending, embracing these new integrated plugins, the community will continue to interweave themselves with these features. Trying to change things latter will be harder than it would be with systemd, there's more of a Big Ball Of Mud[2] fear here for me. My concern is probably about ~0.2 on the unit scale, and my ok'ness is probably ~0.6, some in between neutrality, so I'm not trying to say this is bad oh no. But I think there's some value to the comparison. Anyhow. Language Server Protocol is the shit. It's the primary channel for how we turn text-editors into Integrated Development Environments. Taking nvmim-lsp & integrating it is a huge step for this project. There's also some new hooks for Lua to work with, which promises ever better scripting: that seems like the one core enhancement to Neovim proper in 0.5.0. [1] https://crispgm.com/page/neovim-is-overpowering.html https://crispgm.com/page/neovim-is-overpowering.html https://news.ycombinator.com/item?id=27291302 https://news.ycombinator.com/item?id=27291302 [2] http://www.laputan.org/mud/ http://www.laputan.org/mud/
- _benj 5y agoFor those out there trying to "learn" vim, give neovim 0.5 a try! I've been using neovim HEAD (0.5 pre-release) for a while and it has been awesome. It all started with this config [0] and from there and haven't tried (as before) to join a vim cult but instead to use it as a tool that works for me (i.e. use mouse scroll to browse around, use arrows on insert mode, and other vim sins) Little by little I've been looking at how I could do something a little better and pretty much every time vim has an awesome way for me to do something! Yanked some text then deleted something but I want to paste the yanked text, not the deleted one? "0p is the answer. Need to replace all ___ but not modify the prefixed numbers? I can use visual regex to easily work that out! I'm doing something over and over? I can make that into a macro! There's a macro that I always use on certain file types? I can make an autocmd to load some string to some macro when I open certain file. It'a awesome feeling that time I've actually learning about registers, macros, regex, windows, buffers, and everything else in a modern and snappy tool! [0] https://github.com/mjlbach/defaults.nvim https://github.com/mjlbach/defaults.nvim
- maddyboo 5y agoWow, I’ve been a vim user for like 8+ years and didn’t know about 0p even though I run into that problem all the time. I had even re-bound yank/paste to use a different register. Thanks for the pointer! This is what I love about vim, there’s always something new to learn.
- linsomniac 5y agoLunarVim has a "show b̶u̶f̶f̶e̶r̶s̶ registers" plugin enabled so when you type " it brings up a window showing the contents of various buffers, so you can eyeball it rather than remembering.
- maddyboo 5y agoOh, just realized I misread the original comment. I ignored the “, so I thought they were saying you could just use 0p (on my phone, otherwise would’ve tested it in vim). I use registers often but I admit I haven’t memorized the meaning of the auto-populated ones like 0.
- rkuester 5y agoRelease party in progress at https://www.twitch.tv/teej_dv https://www.twitch.tv/teej_dv .
- mempko 5y agoFirst thing I see is a prime video ad. Amazon is helping fund neovim.
- jdauriemma 5y agoAre you sure it's not just the fact that Twitch is owned by Amazon?
- mempko 5y agoI guess I don't use Twitch. Can they turn off the monetization? Did they turn it on?
- animal_spirits 5y agoWhy would they turn it off? They should make money for the work they've done.
- mauricedenassau 5y agoBeen waiting for this release for a long time. Kudos to the team, very excited. Especially built-in LSP.
- CalChris 5y agoIt's already in the homebrew distribution: brew update; brew upgrade ... ==> Upgrading neovim 0.4.4_2 -> 0.5.0 ...
- tbabej 5y agoI've been using neovim since the initial fork. The Neovim 0.5 is by far the most impressive milestone yet. I tried it couple of months back (before release) and immediately jumped to support the developers through the Github Sponsors after trying it out. https://github.com/sponsors/neovim https://github.com/sponsors/neovim
- gen220 5y agoIs anybody else uncomfortable about the idea that an LSP client is now baked into the editor (as opposed to being a plugin)? Are there big performance gains to this approach? While LSP is great, it basically came from nowhere in the last couple of years. My concern: what if something definitively better comes along in another couple years, and we're "stuck" with this baked into the editor? For context, using ALE, I've been able to gracefully migrate my language-specific helpers from pre-LSP to post-LSP universes, over the years as LSP helpers have become definitively better and faster, one language at a time, all without needing to recompile or download a new binary. I'm very open to the idea that I'm missing something obvious, because I have a lot of respect for neovim and neovim contributors. I understand that neovim is not trying to replace vim but evolve it. This feels like a move away from plugins and into monolith territory, which feels like a big step. Curious to hear other's thoughts. To be clear, I'm not for or against this, I'm mostly curious about the reasoning / thinking behind this, if anybody has links I'd love to read them.
- nicoburns 5y agoPresumably it's disablable. So if you want to use something else you can just turn it off and then use the plugin of your choice.
- MaxBarraclough 5y agoFor anyone else wondering: • LSP means Language Server Protocol [0] • ALE means Asynchronous Lint Engine [1] [0] https://microsoft.github.io/language-server-protocol/ https://microsoft.github.io/language-server-protocol/ [1] https://github.com/dense-analysis/ale https://github.com/dense-analysis/ale
- ibraheemdev 5y agoAnd, ALE has LSP support.
- gosukiwi 5y agoI also use ALE, and my main reason not to switch is that I also want to run linters, and I don't want to install a separate linter plugin when I know ALE works just fine for me. It would be interesting if ALE could integrate with nvim's LSP implementation though, although I'm not sure how that would work.
- luke2m 5y agoCould someone sell me on why I should switch to this from regular Vim?
- cturtle 5y agoI've been using the nightly builds for a while now, and the language server support works very well, but for me the most exciting part of Neovim is Lua. Lua isn't the headlining feature of v0.5, but the API has still grown a lot since the last release. As an example of why I love Lua support, I wrote a small file finding plugin for myself because I wasn't satified with the many alternatives (not a huge fan of fuzzy-matching). It took only a couple days to have a working plugin, and it has been fun to extend it with new features over the last month. The Lua API is relatively straightforward, and it really lowers the bar for writing plugins and small helper functions to add to your config. Switching from Vim is not necessary, but Lua support alone was enough to convince me to give it a try, and is the main reason I have stayed with Neovim.
- ratorx 5y agoIntegrated LSP is quite nice (and the ecosystem around it is just getting started), but it’s not the thing I’m most excited about. My favourite new thing is actually tree-sitter. Currently it’s being hyped for better syntax highlighting (which is nice), but I’m most excited about defining text objects on language constructs. I really don’t like trying to shoehorn words, sentences and paragraphs to deal with parameters, scopes, functions etc. Having language-aware text objects for these is really neat. I don’t think it’s anything that would be impossible to get working in Vim, but being built-in is pretty nice.
- jay-aye-see-key 5y agoTree-sitter based text-objects are one of my favourite parts of neovim 0.5 too. Now I can have class, function, parameter, and comment text-objects that can be manipulated as easily as words or paragraphs. This plugin sets it all up and has some examples: https://github.com/nvim-treesitter/nvim-treesitter-textobjects https://github.com/nvim-treesitter/nvim-treesitter-textobjec...
- 5y ago
- clircle 5y agoNeoVim is very tempting to me. I've been tweaking my Emacs config for 5 years, and I'm very happy with it, but only on my Ubuntu computers. On Windows, Emacs runs like garbage (slow, no double-buffering). I might have to switch to NeoVim, at least on Windows.
- hemanta212 5y agocurious to know what you think about WSL2? I've been using emacs and ubuntu with pretty great sucess
- ajross 5y agoI just run X11 emacs with the Cygwin X server, it works pretty well. I don't actually edit anything in the windows filesystem proper, though.
- modernerd 5y agoThe Emacs experience on Windows could be faster, but having switched from Neovim to Emacs on macOS I do not want to go back to Neovim now (and I was running the Neovim 0.5/dev branch with LSP and treesitter integration for some time). Your time might be better spent on improving Emacs performance on Windows if you can. I haven’t used Emacs on Windows for a little while, but I wonder if running it via WSL2 with the new Linux GUI integration is better than the native Windows experience? I spent months trying to mould Neovim into an IDE-style environment I could love (people seem split about whether Neovim should be an IDE or not, but it feels like it’s evolving in that direction). I tried Doom Emacs because of the buzz around it, fell in love straight away, and built my own Emacs config from scratch to get a better understanding of Emacs (I like Doom, but I found it hard as a new Emacs user to grok the separation between Emacs/Doom/external packages; the appeal of Emacs for me is to shape the tool to your needs and to understand what the packages you’re using do and how to tweak and customise things). Neovim is improving but it still falls short of Emacs by far in my opinion. Some things to be aware of from my experience of both environments: Neovim UI is inconsistent. With Emacs I can have every package use Ivy for item filtering and selection, for example, where as Neovim plugins often end up inventing their own UI because there’s no real UI standard in the Neovim space. Even Neovim packages that build good UIs (telescope) feel buggy and laggy to me compared to Emacs equivalents. (I had a persistent issue with telescope where trying to close the popover would take multiple attempts or not work at all). Package quality is _so_ much better for Emacs. I tried a bunch of different Vim/Neovim git plugins and none of them are close to magit. When I ask Neovim users what they recommend for git integration, they suggest plugins that don’t hold a candle to magit (fugitive), external CLI tools that aren’t integrated with Neovim (lazygit), or say something like, “just use git on the CLI via tmux or iTerm tabs! Vim isn’t supposed to be an IDE on its own - you compose Linux tools in isolation into an IDE”. That’s fine if you embrace that mindset, but I find it unsatisfying now that I’ve used magit for some time. It’s a similar story for pretty much every IDE problem space (projectile and Cider are so much better than their Vim equivalents, for example). Documentation quality is generally much better with Emacs, particularly when writing plugins. (Lua APIs are documented for Neovim but not to the extent that Elisp functions are.) Emacs Lisp is also so much nicer to work with than Vimscript and Lua. The ability to run expressions in the environment without reloading whole files or restarting is a superpower, especially when making plugins. I don’t mean to crash the Neovim 0.5 launch party here – by all means try it! Just be prepared to trade some of your Windows speed-related frustrations for general UX/UI/polish pain points instead. :-)
- davidkunz 5y agoI love Neovim. I switched from VSCode and never looked back, it's just so much more efficient to just do everything with your keyboard. In case someone is interested how to do the things you're used to from VSCode, I created some videos: https://youtube.com/playlist?list=PLu-ydI-PCl0OEG0ZEqLRRuCrMJGAAI0tW https://youtube.com/playlist?list=PLu-ydI-PCl0OEG0ZEqLRRuCrM...
- mraza007 5y agoThank you for making these !!!
- davidkunz 5y agoGlad you like them!
- efficax 5y agoFunny, I switched from neovim to VSCode + the vim plugin. Sure, it doesn't have everything I would do with vim supported, but it's enough and overall it's a better experience
- Jenk 5y agoI've started using the vscode neovim plugin. It runs a headless neovim in the background so you get literally everything that both editors provide in one. It's not 100% flawless but it is damn good. I used to flip between the two anyway - if I needed a better intellisense for, say, a large typescript project, then vscode won, everything else was nvim. Now I have the intellisense of vscode ontop of neovim.
- ibraheemdev 5y agoFor anyone wondering: https://github.com/asvetliakov/vscode-neovim https://github.com/asvetliakov/vscode-neovim
- EvanDotPro 5y agoAs a LONG time Vim (now Neovim) user, I've been pretty curious to try this as it would allow me to retain some of my beloved plugins and custom config without the effort of trying to find replacements or reproduce my config stuff. I imagine I could also get rid of most of the language server / autocomplete / code navigation type stuff that comes easier in VS code. It could potentially be the best of both worlds if it's done as well as I'm hoping it is. I haven't tried it yet, but my main concern is that VS Code probably has a lot of keyboard shortcuts (e.g., C-v for visual block mode) that I'd have to reassign, which could potentially be a bit of a pain initially. Mind sharing any pros/cons you've run into with the Neovim plugin so far?
- ssklash 5y agoWhat is the value proposition for moving from vanilla vim to neovim? I see all the features on the neovim repo, but almost all of them seem aimed at developers rather than users. I've considered switching, but I'd have to move to a .nvimrc or something, update my install scripts and Ansible, etc., and I'm not sure what I'd gain from it other than "extensibility". If there are concrete benefits for normal usage, I'd be willing, but I'm not sure what those would be. Am I missing things?
- _benj 5y agoFor me it was the lua config file. Now tweaking vim to the behavior I want is no longer learning an obscure language but figuring out what is the behavior I want and coding that using lua and the vim api. With the lua language server vim’s api is very discoverable!
- ibraheemdev 5y agoLua is much nicer for scripting, yes, but support is not there yet. There are a couple missing APIs, and just some overall verbosity that is still being cleaned up and worked on last I checked.
- drbojingle 5y agowith the .5 release, I would say the value prop is tree-sitter. Config can still be in vimscript. Very little would actually change there vs .vimrc.
- nerdponx 5y agoI initially switched because it allowed me to simplify my configuration. This was even before Lua integration was a thing; it had better defaults, and the client/server architecture appealed to me. I also liked the idea of a re-factored, more-modular, possibly faster core application. Now what's starting to happen is that the plugin ecosystems are diverging. Subjectively, it seems like plugin developers are significantly more productive working in languages that are not Vimscript. Accordingly, Neovim seems to be accumulating more sophisticated IDE-like plugins, and this appeals to me on a personal level. Now that the remote plugin and Lua APIs (including Tree Sitter and LSP!) are somewhat stable, I expect this productivity and divergence to accelerate. I feel like Neovim will be approaching Emacs "power parity" in the next few years, and that's a very exciting prospect to me.
- mr_o47 5y agoOnce you learn vim you’ll never settle on regular text editor The amount of things you can with just few keys is just phenomenal. It does have a learning but once that’s achieved you’ll be very much productive and get things done very quickly
- soupshield 5y agoMy heart is with vim but I switched to emacs as I love orgmode too much for note taking. I tried a few vim orgmode plugins but they seemed quite flakey even though I only really use orgmode for outlining. Excuse my ignorance but could all this LSP/Lua stuff allow neovim to take over from emacs?
- _benj 5y agoI’d say cautiously maybe. Using lua to me seems like it could open doors for neovim that before we’re either not possible or very complicated to do with vimscript. Neovim doesn’t have such incredible and almost ridiculous power to change itself like emacs does with elisp since vim is still not written in lua, lua is just used to access its api, but that api is quite extensive. So, maybe? Hopefully?
- nerdponx 5y agoAnd if you really want Lisp in Neovim, you can use the Aniseed framework to write your plugins and scripts in Fennel.
- _benj 5y agoThanks for pointing out Fennel! every since I learned a little of elisp I really enjoyed the experience but common lisp seems like a beast to big to take on, clojure run on java and tbh I'm prejudiced against it... but fennel is just a simple lisp that runs on lua with no overhead? now that's something I can get behind!
- xvilka 5y agoLet's hope it will be updated in distributions quickly.
- ibraheemdev 5y agoIt's already on the arch and brew repos.
- rosetremiere 5y agoI'm using neovim with Coc (often does not work as I want it to) and ALE and friends, and it's getting sort of frustrating. It's lots of fiddling with the vimrc, each year a new better extension that I can never make work, etc. What I'd like is some editor that integrates LSP, treesitter, FZF and friends so I don't have to configure everything, while still having the modal+command model of vim. Recently there was an editor that seemed to fit the bill (I think called Hex), but it seems those "keyboard oriented" editors are more usually "american keyboard oriented", in that the bindings don't make sense for non qwerty keyboards, and remapping everything is frustrating. Essentially, I think I want an full-featured IDE with vim's extensibility and modal approach. What's the solution?
- pkilgore 5y agoI've been really hopefull it's onivim. I suspect you'll have the same issue with default bindings unfortunately.
- qbasic_forever 5y agoVS code + the popular vim keybinding/mode extension for its editor. I love neovim and have been using 0.5 for 1/2 a year now, loaded up with all the bleeding edge LSP, treesitter, etc. stuff and I have come to the exact same conclusion. The ecosystem is just a bit too immature and fragile right now with tons of still-evolving things. The quality of each LSP varies wildly and it's a huge wild west right now figuring out the 'right' way to move configurations to lua, use a package manager for plugins, etc. You're left with a weird frankenstein state of half your tools and plugins in the new lua world, half still in the old world.. and a net loss of features and functionality as stuff is abandoned or changed in the process of moving. It's exhausting to keep up.
- hkmaxpro 5y agoLunarVim: A Neovim config made with sane defaults https://github.com/ChristianChiarulli/LunarVim https://github.com/ChristianChiarulli/LunarVim LunarVim will be like Spacemacs/Doom Emacs/SpaceVim, but for neovim. A distribution of useful neovim packages with sane defaults. This project is still at its early stage and many things change rapidly. You currently cannot easily keep your custom changes in sync with LunarVim, but support for this feature is on the way. In a few months this project should be stable enough for typical users.
- xvilka 5y agoA reminder for everyone who wants to sponsor NeoVim's development - you can use GitHub Sponsors[1] now. [1] https://github.com/sponsors/neovim https://github.com/sponsors/neovim
- alexmcc81 5y agoNeovim is great. I've moved from a very large custom vim setup to a slightly modified LunarVim [1] config (requires Neovim 0.5+), which takes full advantage of tree-sitter and LSP. Loving it so far. [1] https://github.com/ChristianChiarulli/LunarVim https://github.com/ChristianChiarulli/LunarVim
- linsomniac 5y agoI'm interested in what modifications you have made. I've been trying LunarVim a bit for the last week and am on the fence about going back to SpaceVim or just bare neovim. Not sure, still evaluating...
- mmgutz 5y agoI want to like LunarVim but the everything-lua is a bit overboard. Compare this ` vim.api.nvim_set_keymap('n', '<S-TAB>', ':bprevious<CR>', {noremap = true, silent = true})` to `nnoremap <silent> <S-TAB> :bprevious<CR>` Why convert every single line of vimscript to a noisier lua statement? The Packer manager seems a step back from vim-plug. Your configuration file is no longer the source of truth. Packer uses a global site directory for plugin as opposed to a local directory like vim-plug. Guess what? Neovim, paq also uses that directory. It's like the old days of plugins of installing everything globally. I had to do this after making a configuration change: :PackerSync, exit neovim, delete cache file, restart neovim, :PackerCompile. Believe me, forgetting a step has been an endless source of frustration.
- selectnull 5y agoI have just started to play with neovim and the first thing I did was to define a function: function bindKey(mode, keys, command, options) options = options or {noremap = true, silent = true} return vim.api.nvim_set_keymap(mode, keys, command, options) end With that, remapping looks like this: bindKey('n', '<Tab>', ':bnext<CR>') Which is in my opinion better than Vim syntax. I definitely see the potential in having Lua as scripting language.
- adkadskhj 5y agoI really hope for one day to have Kakoune-like selection-first and multi-cursor functionality in Neovim. After moving to Kakoune i just can't go back to Vim, but Neovim's advancements make me jealous. Congrats on 0.5, another release that looks great!
- highpost 5y agoThere is a middle ground for VS Code users: https://github.com/asvetliakov/vscode-neovim https://github.com/asvetliakov/vscode-neovim This extension integrates neovim into the VS Code environment by mapping keystrokes from VS Code to the neovim binary. This approach (which requires 0.5) is much simpler and more robust than attempting to emulate all of VIM, as the VSCodeVIM extension does.
- qbasic_forever 5y agoI've always scratched my head at this plugin. Is the idea that you have both a VS code configuration for all the stuff around the editor (themes, UI stuff, all kinds of fancy VS code features like its file tree, git tree, testing, etc.), and a neovim configuration for the editor component itself? How do language servers and such work--are all the slick one click VS code installed extensions ignored and you're back to twiddling and tweaking and googling neovim config to get LSP working?
- highpost 5y agoI think you have it right: neovim for your fingers and VS Code for the larger programming environment with all its features. I don't know how LSP is integrated, but it seems to work. BTW, I ran into too many corner cases where VSCodeVIM's emulation broke down.
- CalChris 5y agovscode-neovim really depends on nvim 0.5 I was using a neovim 0.5 nightly before this was released. It's not perfect but it's a LOT better than VSCodeVim.
- red2awn 5y agoI have been using this plugin for a while now and it is pretty solid. Most vscode plugins and vim plugins can work together nicely. For LSP you should just use the one built into vscode.
- ibraheemdev 5y agoIf anyone is interested in migrating their config to lua, or doing some basic scripting, there's an excellent and pretty comprehensive guide here: https://github.com/nanotee/nvim-lua-guide https://github.com/nanotee/nvim-lua-guide
- ibraheemdev 5y agoOne little-talked about advantage of Lua support is that you can now write your vim config/scripts in one of the various Lua transpilers like moonscript [0], or maybe even typescript [1]! [0]: https://github.com/leafo/moonscript https://github.com/leafo/moonscript [1]: https://github.com/TypeScriptToLua/TypeScriptToLua https://github.com/TypeScriptToLua/TypeScriptToLua [2]: https://github.com/hengestone/lua-languages https://github.com/hengestone/lua-languages
- celeritascelery 5y agoI am curious if there are any major packages written in lua for neovim? I wonder if ecosystem fragmentation will become an issue (vimscript vs Lua).
- ibraheemdev 5y agoThere are replacements for most/many popular packages (that I use at least). Many people do prefer lua packages over vimscript ones.
- marcthe12 5y agoIt will as regular vim is doing vim9script. So it will be legacy vimscript vs lua vs vim9scrpt.
- felixr 5y agoThe first transpiler to mention here would be https://fennel-lang.org/ https://fennel-lang.org/ and https://github.com/Olical/aniseed https://github.com/Olical/aniseed
- ibraheemdev 5y agoFor anyone else who couldn't find the changelog, it's in the commit message:) https://github.com/neovim/neovim/commit/a5ac2f45ff84a688a09479f357a9909d5b914294 https://github.com/neovim/neovim/commit/a5ac2f45ff84a688a094...
- jpe90 5y agoIn my experience, the built in LSP is a mixed bag. Getting language servers configured is a breeze, diagnostics and go-to definition work just fine. But trying to get autocomplete and snippets to work is an exercise in frustration. There's a handful of different hobbyist implementations which are all somewhat-maintained and somewhat work together but it's buggy and you end up needing to do 20x the effort of using VS code to get not quite the same ease of use. I really hope they'll do some official work on lua-based solutions for autocomplete and code snippets in the future to really round out the LSP support, if that's something that they want to highlight as a feature of neovim. I still think VS code is the way to go if you want LSP features, but 0.5 is a terrific step forward and everyone who worked on it should be very proud.
- davidkunz 5y agoI have zero problems with nvim-compe [1], it works like a breeze. [1]: https://github.com/hrsh7th/nvim-compe https://github.com/hrsh7th/nvim-compe
- jpe90 5y agoI didn't have issues with compe until I started using snippets, at which point I needed to manually modify the lua code that they provide for you (to own and maintain yourself) for tab completion. I had to spend a fair amount of time getting the right compe - snippet provider setup that would populate correctly. Once I added snippets and modified the completion code, the ability to hit "Enter" to select an autocompletion selection broke and I couldn't manage to fix it without preventing the key from entering a newline in insert mode. I ended up just remapping it to a new key. But even then, it's still a little quirky- if I type some text and hit tab expecting to add some spacing, I'd instead get prompted for autocomplete suggestions I wasn't looking for. I get that all this is fun for some people, but I just want sane defaults that work like VS code.
- YuukiRey 5y agoLast I used it it was often missing completion candidates https://github.com/hrsh7th/nvim-compe/issues/248 https://github.com/hrsh7th/nvim-compe/issues/248 which was extremely frustrating but apparently hard to fix
- ilovwindows 5y agoI have been waiting for 0.5 for ages. While most of us are trying to justify one text editor over the other, I am using combination of them depending upon the usecases. I use Neovim most of the time and use Vscode for special cases like getting previews on Markdown, PlantUML, and stuff. Sure we can do same with Neovim, it's just I don't like memorizing every possible commands. It would be great to have a command that lists all the available commands in Neovim along with some description and fuzzy finding just like in VSCode and Sublime.
- jay-aye-see-key 5y ago> It would be great to have a command that lists all the available commands in Neovim Both the fzf.vim and telescope.nvim plugins provide a fuzzy searchable list of commands; `:Commands` and `:Telescope commands` respectively. The built-in commands have a description but commands from plugins usually just show it's definition.
- cies 5y agoI'd love to love neovim, but is seems there's not a easy way to install a "self contained subset". For some langs it misses some "OS" dependencies, resulting in sluggishness and annoying errors all over the place, when I just want to open a file from the terminal or in a non-IDE. If someone knows a way to install a version of neovim that does not need OS deps...
- kap7 5y agoNice work! One small piece of feedback. Maybe I'm alone in this but I'd to see default keybinds and config for LSP. I like to keep my config small and defaultly and this: https://github.com/neovim/nvim-lspconfig#keybindings-and-completion https://github.com/neovim/nvim-lspconfig#keybindings-and-com... dwarfs my .vimrc
- quicklime 5y agoYou're not alone. I find it crazy that you're supposed to write a callback handler, and then register the handler inside a for loop over each server. This feels more like programming inside a framework, than writing a config file. For complex things, it's nice to be able to do this. But the benefit of having a built-in client is that it works out of the box. This looks like it requires more configuration than many of the existing (n)vim lsp clients, even for the most basic thing: setting up the keybindings.
- codewiz 5y agoRelease notes: https://github.com/neovim/neovim/commit/a5ac2f45ff84a688a09479f357a9909d5b914294 https://github.com/neovim/neovim/commit/a5ac2f45ff84a688a094...