Тёмный

Autocommands in Neovim 

Andrew Courter
Подписаться 8 тыс.
Просмотров 6 тыс.
50% 1

Опубликовано:

 

29 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 23   
@ascourter
@ascourter 10 месяцев назад
What autocommands do you use?
@IainSimmons
@IainSimmons 10 месяцев назад
I have the one from Josh to source my .tmux.conf when it changes, but also one to disable wrapping in my hosts file. I also have one for a couple of file extensions or types I want to associate with something else, like *.psv which I use as pipe-separated values to use with a plugin called RainbowCSV
@ryank.4983
@ryank.4983 9 месяцев назад
thanks! wrote an LSP refresh command on save using this tutorial.
@ascourter
@ascourter 9 месяцев назад
@@ryank.4983 that's awesome!
@sunsurfr
@sunsurfr 7 месяцев назад
Using your video I have an automated date/time entry in a daily journal file - thank you.
@JoshMedeski
@JoshMedeski 10 месяцев назад
My favorite autocommand is auto-sourcing my tmux file when I save it!
@ascourter
@ascourter 10 месяцев назад
Remember when I said autocommands are powerful? The TermOpen example I covered will put you into insert mode on a failing Neotest, which is probably not what you want. Check out this thread in the neotest repo: github.com/nvim-neotest/neotest/issues/2
@ChrisCox-wv7oo
@ChrisCox-wv7oo 10 месяцев назад
I have an autocmd to delete a set of keybinds when I enter the cmdwin, and remap them when I exit it. The keybinds and the cmdwin do not get along so this keeps me from accidentally trying to use them. Another autocmd to refresh the current buffer when I focus it. Useful for when I modify the file from outside nvim. Another autocmd to source my init.lua whenever saved. Another autocmd to highlight on yank. Autocmd is pretty dope.
@ascourter
@ascourter 10 месяцев назад
That's a great list! Thanks for sharing.
@coffeedude
@coffeedude 10 месяцев назад
Great tutorial! It's great to know the option exists for when the need arises.
@sunsurfr
@sunsurfr 7 месяцев назад
Great video! Clearly explained without any fluff. Subscribed. 👍🏻
@ascourter
@ascourter 7 месяцев назад
Thanks!
@RolandHaller
@RolandHaller 10 месяцев назад
I was looking for a highlight on yank autocommand! Thanks
@ascourter
@ascourter 10 месяцев назад
You're welcome! Thanks for watching
@SumanthLingappa
@SumanthLingappa 10 месяцев назад
Do autocommands relevant in neovim? We can use lua functions instead, isn’t it?
@ascourter
@ascourter 10 месяцев назад
If you want to do something in Neovim automatically then you should be using autocommands. TJ Devries actually wrote the interface for Neovim to use autocommands via the nvim_* API.
@SumanthLingappa
@SumanthLingappa 10 месяцев назад
@@ascourter Thank you for replying. I saw your full video and understood. Thanks again for the video
@mohammedabdulbary1577
@mohammedabdulbary1577 10 месяцев назад
A very cool video, thanks a lot
@ascourter
@ascourter 10 месяцев назад
Thanks for watching!
@disel920
@disel920 10 месяцев назад
Cool. Good job.
@ascourter
@ascourter 10 месяцев назад
Thank you!
@pascalallau
@pascalallau 10 месяцев назад
Good job as usual ! keep it up
@ascourter
@ascourter 10 месяцев назад
Thank you!
Далее
LSP Basics in Neovim
4:13
Просмотров 13 тыс.
ТАРАКАН
00:38
Просмотров 727 тыс.
pumpkins #shorts
00:39
Просмотров 12 млн
Search and Replace with nvim-spectre
0:55
Просмотров 133
My Neovim configuration in 2024
20:48
Просмотров 8 тыс.
Is Hop.nvim better than Flash.nvim?
16:04
Просмотров 7 тыс.
Render Images in Neovim & tmux
14:51
Просмотров 3,2 тыс.
The Ultimate Database Control. Right WITHIN NEOVIM
9:35
Vim Tips You Probably Never Heard of
12:11
Просмотров 120 тыс.
Why They Called It Java | Prime Reacts
20:37
Просмотров 54 тыс.
Code Folding in Neovim
11:22
Просмотров 17 тыс.