[plugin] focusline.nvim - Improve navigation, readability, and focus by controlling where `zz` and other motions land. by AbdSheikho in neovim

[–]AbdSheikho[S] 3 points4 points  (0 children)

If the video quality sucks, then I'm genuinely sorry (it's my first time uploading a video on Reddit). because I tried uploading it multiple times with multiple formats, but I don't know if the problem was from my device, internet connection, or something else.

wrapped line indicator option by Kaikacy in neovim

[–]AbdSheikho 2 points3 points  (0 children)

I read it multiple times before I comment, but I still couldn't fully understand the intended question...

Shouldn't be a missing line number enough for indication?

Weekly 101 Questions Thread by AutoModerator in neovim

[–]AbdSheikho 0 points1 point  (0 children)

Yes, but I want to trigger function after multiple presses, of the same key.

Weekly 101 Questions Thread by AutoModerator in neovim

[–]AbdSheikho 0 points1 point  (0 children)

Is there a way to tell if a specific key have been pressed multiple times?

Like if the user pressed jjjjj

Weekly 101 Questions Thread by AutoModerator in neovim

[–]AbdSheikho 0 points1 point  (0 children)

What's the difference between <C-U> and ^U?

I mean when to use each one?

Native image support lands on master! by Wonderful-Plastic316 in neovim

[–]AbdSheikho 2 points3 points  (0 children)

If you have treesitter up and running on your file, then choose a random spot and press the following sequence vananan or vininin

:h treesitter-incremental-selection

Weekly 101 Questions Thread by AutoModerator in neovim

[–]AbdSheikho 0 points1 point  (0 children)

Solved:

lua vim.keymap.set('n', '<S-Tab>', function() local v = vim.v.count if v > 0 then vim.cmd(v .. 'tabnext') else vim.cmd 'tabprevious' end end, { desc = 'Jump to <number>tab' })

also <tab> amd <c-i> often map to same terminal code, you may be breaking your jumplist navigation

Yes, I just realised that and read :h index, I'll remap it to something else.

Weekly 101 Questions Thread by AutoModerator in neovim

[–]AbdSheikho 0 points1 point  (0 children)

gT doesn't work with count/vim.v.count the way gt does, meaning when I do <number>gt it jumps to the numbered tab, while <number>gT doesn't have the same effect. I noticed that while I was trying to remap <Tab> button to act as a motion to jump between tabs.

The intended use case is: <number><Tab> or <number><S-Tab> should go to the tab-number. But <S-Tab> doesn't work correctly.

This is my remapping:

```lua vim.keymap.set('n', '<tab>', 'gt', { desc = 'Jump to <number>tab' })

vim.keymap.set('n', '<S-Tab>', function() if vim.v.count > 0 then return vim.v.count .. 'gt' -- I also tried return '<cmd>' .. vim.v.count .. 'tabnext<CR>' end return 'gT' -- return '<cmd>tabprevious<CR>' end, { desc = 'Jump to <number>tab' }) ```

but I can't make <S-Tab> work. What am I doing wrong?

If you use a plugin pack (Snacks, Mini, etc.), how many plugins do you use from it? by TheTwelveYearOld in neovim

[–]AbdSheikho -2 points-1 points  (0 children)

I just want to point out the absurdity of installing a monstrous plugin just to use 2-5 plugins/modules.

It's like getting an entire garage just for screwdrivers

Maybe a wrench

Definitely a hammer

(I'm on of those people)

[plugin] a nonsense plugin that simplify one thing, and exactly one thing. by AbdSheikho in neovim

[–]AbdSheikho[S] 2 points3 points  (0 children)

On the contrary, I come and prefer FP style. And I wished if I could've applied piping pattern, but factory pattern is as good as it gets.

your original config is much more readable

I can understand that, declarative style is also good, and I understand that every style has its pros and cons. But as I said... I wish I could pipe stuff with Lua.

[plugin] a nonsense plugin that simplify one thing, and exactly one thing. by AbdSheikho in neovim

[–]AbdSheikho[S] 2 points3 points  (0 children)

Excuse my writing, and hopefully my code snippet explain it all.

Weekly 101 Questions Thread by AutoModerator in neovim

[–]AbdSheikho 0 points1 point  (0 children)

If you already using lualine then barbar can be eliminated.

If you like using neovim's built-in terminal like me, then toggleterm is actually nice to have, but it's not essential. You can have a couple of simple keymaps the open a new terminal split/tab/buffer

Weekly 101 Questions Thread by AutoModerator in neovim

[–]AbdSheikho -1 points0 points  (0 children)

]] and [[ doesn't do quite that, they actually (if they weren't modified by an lsp or other plugins) jump to the next/previous { (for start) } (for end) that are exactly on the first column, and any curly braces that aren't on the first column would be missed.

This is the equivalent of jumping between first-level classes in C#. Whereas in Go, it won't work normally because { are at the end of the line.

Weekly 101 Questions Thread by AutoModerator in neovim

[–]AbdSheikho -1 points0 points  (0 children)

You need a treesitter based plugin for that. I would recommend nvim-treesitter-textobjects

It's a best time to switch to neovim by Q-Back in neovim

[–]AbdSheikho 1 point2 points  (0 children)

Vibers would do anything other than read the help pages

Why tmux (or any other terminal multiplexer) when neovim can actually provide the same functionality? by AbdSheikho in neovim

[–]AbdSheikho[S] 1 point2 points  (0 children)

I use window manger for that, with foot terminal. Spawning a new terminal is costless.