0 Followers
0 Following
2 Posts

vim-flog - a interactive git history viewer

https://lemmy.world/post/44385101

vim-flog - a interactive git history viewer - Lemmy.World

Haven’t seen much exposure to this awesome plugin, even on reddit it seems that it’s not so well known, so i wanted to share it. It’s basically a git-log replacement integrated with neovim(and fugitive) that updates automatically(or manually) whenever you do any changes to your git repository. Really useful to get a overall picture of what’s going on in a repo. Or for debugging git branch problems etc.

What makes you think this is a generated article?
this feature is so satisfying to use
this is more convenient in a way because you don’t need to think about node names when selecting

what about using exrc(with like a .nvim.lua file inside the repos) with the content of

dofile(“../init.lua”) -- maybe more repo specific config here

and then say ~/work-clientA/init.lua with all client specific changes there.

this would still require creating two separate files but the client setup will be the same for all client repos, and additionally you can add repo specific changes.

i just use it all the time when i forget what i changed and want to make sure i’m ok with all changes before saving.

it is very similar to a command in emacs called M-x diff-buffer-with-file.

keymap to inspect unsaved changes with diff mode

https://lemmy.world/post/18796446

keymap to inspect unsaved changes with diff mode - Lemmy.World

Hello, I wanted to share a small keymap I made. It lets you inspect unsaved changes in the current file. It uses diff mode, in a vertical split. To close the diff mode, just press q in the scratch buffer. lua vim.keymap.set( 'n', '<M-C-D>', function() local tmpft = vim.bo.filetype vim.cmd.vnew() vim.bo.filetype = tmpft vim.bo.buftype = 'nofile' vim.keymap.set( 'n', 'q', '<cmd>bw<cr>', { noremap = true, silent = true, buffer = true } ) vim.cmd('r#|0d_|diffthis|wincmd p|diffthis') end, { noremap = true } )

Linux is a niche

idk it seems pretty popular to me

Just use the most popular distro… Ubuntu

well linux is a extremely general component, and there are many linux based OS’s for different applications. Ubuntu might be user friendly on server(not sure) but on desktop is pretty trash for example (no flatpak, bad support for newer hardware).

you need to pick an OS that is user friendly for your usecase, there is no way to have one single OS to fit all possible needs. doesn’t matter what kernel it is based on.

new disable foldtext option is cool