2

What's your editor setup?

 1 year ago
source link: https://lobste.rs/s/nbr9bl/what_s_your_editor_setup
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

What's your editor setup?

I think this is an interesting thing to ask of the community, and I couldn’t find any similar posts. Feel free to share as much as you’d like, with the minimum being (of course) the name of the editor.

  1. eBPF

    edited 7 hours ago

    | link

    Neovim with a LOT of addons.

    https://github.com/9p4/dotfiles/tree/main/dot_config/nvim

    I use Packer for plugin management and Mason for LSP server/whathaveyou management. I’ve thrown in a smattering of LSP-related plugins to make life easier for myself, as well as a bunch of autocomplete plugins. I make heavy use of Telescope to navigate my files and buffers. My setup starts almost instantly (thanks to lazy loading) so I can have a bunch of ephemeral sessions. The time where I always have an instance of nvim running is when I’m working on a large project with an LSP that needs to reinitialize every time I start nvim.

    At this point I should’ve just used Spacemacs in evil mode…

    1. I like how you use the arrowkeys for resizing!

  2. For most quick stuff, I use good ol’ vim. I’ve got a vimrc and supporting config I’ve honed and carried with me for about 10 years, resetting it only once. I added an LSP plugin not too long ago and find myself using it more now that the LSP enables mindless autocomplete.

    I use Helix some on my Windows machine because the lag in vim is bad and I’ve never bothered to troubleshoot it. I’ve also started using VSCode some to see what the fuss is about. I like it for doing something in WSL2 for a project I can’t bother to make build correctly on Windows.

    Most of the time, I’m using a Jetbrains editor, though. It’s a solid tool regardless of the community edition or ultimate edition. Work pays for UE so I use it for Python, Scala, Rust, shell, YAML, and more… the conveniences it offers are probably available with some plugins in vim, etc. but Jetbrains makes plugin discovery mindless.

  3. On Amiga: TurboText without any customisations. It just works, is Style Guide compliant and extensible via ARexx.

    On Mac: Sublime. I have a subl link to start it from the shell and have it set as $EDITOR. No customisations worth mentioning, but I have installed various syntax extensions for languages I use (including editing tmLanguage syntax definitions) and a JSON extension to reformat JSON files in various ways.

    At work, I mostly use Xcode, with a lot of customised keyboard shortcuts (rename symbol, find symbol…), various extensions for rewrapping comments, shortening literals expressions, a linter etc.

  4. I think I’m in the minority by using joe, a plain text editor without customization for about twenty-five years now. I will try out an IDE from time to time, but I’ve never been able to get them to work (the last few times I’ve crashed them—don’t ask me which ones, I don’t recall, nor really care).

  5. huytd

    6 hours ago

    | link

    Helix, with almost default config, just some custom keybindings:

    [editor]
    true-color = true
    color-modes = true
    idle-timeout = 75
    
    [editor.indent-guides]
    render = true
    
    [editor.cursor-shape]
    insert = "bar"
    normal = "block"
    select = "underline"
    
    [keys.normal]
    g = { a = "code_action" }
    0 = "goto_line_start"
    "$" = "goto_line_end"
    S = "surround_add"
    
    [keys.select]
    0 = "goto_line_start"
    "$" = "goto_line_end"
    
    [keys.insert]
    j = { k = "normal_mode" }
    
    1. huytd

      6 hours ago

      | link

      But a confession: I use IntelliJ for work projects :P

  6. steinuil

    edited 6 hours ago

    | link

    Mostly VS Code with the VSCodeVim extension, plus the usual soup of language-specific extensions for the languages I use at work. I have a difficult relationship with that extension because I couldn’t use VS Code without it, but the UX for a lot of stuff (ex commands is the one that comes to mind) is terrible. It aims to emulate vim so hard it reimplements a lot of things in a half-broken way, for example undo/redo which I always remap to VS Code’s native stack, and search and replace. It also used to be very slow, though I think it’s improved on that front. I have also tried amVim which maps more closely to VS Code, but it feels like it implements the wrong subset of Vim for me to use it.

    (Whenever I complain about VS Code’s vim extension(s) I get the itch to try and write my own, so I’m currently attempting to stop myself from starting another project I’ll be abandoning soon lol)

    I’m trying to use Helix more often and I almost exclusively use that outside of work; the LSP integration and the tree-sitter highlighting are very nice, but some languages are not very well supported (I’m mostly looking at F# here, the tree-sitter parser for that is half unfinished and the language server crashes very often, though the latter could be said for VS Code too) and the UX for diagnostics is not ideal; it just superimposes them on the top right of the screen with the text aligned to the right and often on top of the code and as of now there’s no way to change that save for doing away with the language server completely.

    I like the editing experience in Helix much more than any other editor I’ve tried though, and there are plans for a GUI in the future, so I hope I’ll be able to move everything to Helix in the future.

    1. Have you looked at vscode neovim? It supposedly embeds an actual neovim instance into the editor so you’re using proper vim instead of an emulation.

  7. hwayne

    edited 5 hours ago

    | link

    I switch between Neovim and VSCode. VSCode because it’s better for LaTeX, Autohotkey, and Copilot, plus it’s easier to pair with other people on it. Neovim for everything else. I’ve extended it with a lot of plugins and custom lua functions, like this one to tie tasks to specific buffers:

    function LoadLocal(local_cmd)
      vim.b.local_cmd = local_cmd
    end
    
    function RunLocal()
      vim.cmd(vim.b.local_cmd)
    end
    
    vim.cmd [[command! -nargs=1 LoadLocal call v:lua.LoadLocal(<f-args>)]]
    vim.keymap.set('n', 'gxl', RunLocal, {silent = true})
    

    The custom functions are what keep me away from alternatives like Kakoune and Helix. The cold start time is really bad and I should probably lazy load the plugins. Time to dig into @eBPF’s config

  8. I use a simple and boring Emacs config, with some personal keyboard shortcuts and some customize settings.

    That’s usually the starting place, and then I make local changes on each machine (work, home, laptop, etc.) based on what I’m doing there.

  9. Emacs and evil-mode with a ton of slightly crufty customization. https://github.com/emoses/dotfiles/tree/master/emacs

    Lots of stuff for $JOB and $JOB-1, $JOB-2 was a Java shop and I go for IntelliJ for Java work.

    Also includes a mode for everything I’ve ever played with and I rarely take those back out.

  10. I use Sublime Text for HTML and VSCode for Go. I prefer ST overall, especially the keybindings and speed, but the LSP integration of VSCode is just better, so I use that when the LSP matters.

  11. I switched from Vim to Kakoune (with kak-lsp) over a year ago. I have a (very) small amount of custom KakouneScript that helps me better integrate my Kakoune sessions with external programs, similar to what connect.kak does. I have one other not-written-by-me plugin installed that lets me use Kakoune as a pager/STDIN reader more pleasantly. I’m having a great time, though can understand why this doesn’t work for most people.

  12. jfb

    5 hours ago

    | link

    I live in Emacs, but I’ve been using PyCharm a lot lately and it’s pretty good OOTB for python programming.

  13. GVim. Some of my settings can be found here

    Most of my programs used to be within the 50 line range. Only markdown files (for ebooks) could be considered as heavy use. Recently, I started working on TUI apps and these are in the 200-250 lines range. Still not yet feeling that I should customize GVim any more or look into IDEs. But I do hope to start experimenting with Vim9 scripting sometime this year.

  14. bkhl

    5 hours ago

    | link

    I’m using Emacs and my configuration is public and fairly well documented.

    I’ve used it before since about Emacs 19, but had a long absence from it during which I used Vim and periodically tried to switch to and like e.g. Eclipse, Intellij, Vscode, and others.

    After the big improvements to performance and usability in the last few versions, it would now take a lot for me to try to switch again, especially since I’m now also quite invested in Org mode.

    That said, there are promising projects that I keep an eye on, right now in particular Lapce.

  15. Neovim with a (relatively) modest amount of plugins.

    https://github.com/bronzehedwick/dotfiles

    I use LSP and Treesitter, but don’t use auto complete plugins or Mason or Telescope or any of the other popular feature rich plugins. I rely on :make and :grep and a custom interface over fzy.

  16. pyj

    4 hours ago

    | link

    If I’m allowed to and it’s supported by the language I generally use a JetBrains IDE. I’ve had to cross languages quite a bit and I’ve used CLion, WebStorm, IntelliJ, Android Studio, RubyMine, PyCharm, GoLand, and Rider. I initially felt bad about getting and keeping the whole subscription but I’ve made my money back in productivity many times over the years.

    For C++, it’s Visual Studio or CLion. VS might be older, but it’s an industrial tool for big projects that gets the job done. Visual Studio C# support is great, and the F# support (along with Rider’s) was surprisingly good.

    Visual Studio Code is my fallback. I’ve spent thousands of hours in vim and I have a heavily configured .vimrc with a lot of plugins. I only use it in more limited cases since it’s easier to share workflows with other developers in VS Code and markdown preview in VS Code is helpful. I also recently made a VS Code plugin to integrate with a tool that I wrote, and it was almost painless, even though I’d never worked in TypeScript before.

  17. Emacs primarily, but vscode at times. I got hooked on emacs a year and a half ago for org mode. I used doomemacs up until December when I finally took the time to build a config of my own. Since then I’ve used vscode less and less, but I still think it’s a nice editor.

    I used vim for many years prior to embracing emacs, but now I rarely reach for it and have stripped the config way down.

  18. snej

    3 hours ago

    | link

    Xcode for C++ (and Obj-C / Swift when I use those.) With the wonderful Iosevka Slab fonts.

    VS Code for Go and TypeScript.

  19. I use sublime with a little ~project/workflow extension I wrote and a theme I occasionally pick at.

    The former is for being able to make named N-project groups that I can open/close all at once. Since these project constellations are explicitly registered, it also minimizes the out-of-sight out-of-mind anxiety that makes me tend to leave a lot of crap open in the hope that it’ll keep me from forgetting…

  20. IntelliJ. Sometimes, Sublime Text.

  21. IDEA for Kotlin and markdown, CLion for C++ and Rust.

  22. dfa

    1 hour ago

    | link

    emacs evil mode with evil-numbers, evil-leader, evil-commentary, smex, ido-grid-mode

  23. I have a heavily-customised emacs setup, packaged up as a single giant Nix expression: https://git.sr.ht/~jack/nix-overlay/tree/master/item/jack-emacs

    The Nix packaging is heavily inspired by Matthew Bauer’s configuration: https://matthewbauer.us/bauer/


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK