A powerful way to make code editing in Neovim even better

A powerful way to make code editing in Neovim even better

HomeJosean MartinezA powerful way to make code editing in Neovim even better
A powerful way to make code editing in Neovim even better
ChannelPublish DateThumbnail & View CountDownload Video
Channel AvatarPublish Date not found Thumbnail
0 Views
Use Treesitter and syntax-aware text objects to take Neovim code editing to the next level and make it even better. I hope you enjoy it!

My configuration: https://github.com/josean-dev/dev-environment-files
Detailed blog post with code: https://www.josean.com/posts/nvim-treesitter-and-textobjects

Subscribe to my newsletter: https://buttondown.email/josean

lazy.nvim instructional video – https://youtu.be/6mxWayq-s9I

️ Help support me and the channel: https://www.buymeacoffee.com/joseanmartinez

Useful Links:
lazy.nvim: https://github.com/folke/lazy.nvim
nvim-treesitter: https://github.com/nvim-treesitter/nvim-treesitter
nvim-treesitter-textobjects: https://github.com/nvim-treesitter/nvim-treesitter-textobjects

Timestamps
00:00 – Introduction
00:20 – Basic text objects
02:59 – Set up treesitter
07:30 – The syntax tree
08:16 – Example of incremental selection
08:42 – Adding treesitter text objects
13:03 – Swap text objects
14:10 – Text object movements
16:01 – Repetitive movements
17:06 – Conclusion

—————————————— —– ———————–
️ My desk setup:

Computer screen

Apple 27-inch Studio Display for Coding and Video Editing: https://amzn.to/47YzRZt
2021 M1 Pro Macbook Pro (mine): https://amzn.to/47XNhoC
2023 M2 Pro Macbook Pro (latest): https://amzn.to/3qYHG0J

️ Mouse

Apple trackpad: https://amzn.to/45P0i1S
Logitech MX Master 3s mouse: https://amzn.to/3Z3bXIq

️Keyboard

Cherry Corne Version 3 Kit: https://bit.ly/3UJgrjH
Analyst Keyboard Enclosure: http://bit.ly/3uyjIHQ
Nice! Nano microcontrollers: http://bit.ly/3FblL9L
Gateron Inky V2 Switches: https://amzn.to/3YZ3cz9
Batteries for Nice!Nano's: https://bit.ly/3uBmtrS
Travel case (fits the Analyst Corne Case): http://bit.ly/3Hmr7BR
Gateron Inky V2 Switches: https://bit.ly/3VJToX4
My Keycaps: https://bit.ly/3uHBbgV
Empty PBT keycaps: https://bit.ly/3UJhgJ6 or https://amzn.to/3UNQtLQ
Planck PBT Keycap Set: https://amzn.to/3HopRhC

You can also find some ready-made options and DIY kits on Etsy: https://www.etsy.com/search?qcorne

Headphones

Sony WH-1000XM4 headphones: https://amzn.to/3sEJU65

——————————–
My video gear:

Camera

My Fuji xt3 camera (only available used): https://amzn.to/3P4P1E7
Recommended cameras:
Fuji xt5 (latest): https://amzn.to/3P0jMtK
Fuji xt4 (used): https://amzn.to/3EmeUdt
Fuji 23mm f2 lens (ideal for video in smaller spaces): https://amzn.to/3L2L6pV
Camera field monitor: https://amzn.to/3L2nrpW

️Audio

Rode VideoMic Pro: https://amzn.to/45PecRC
Top camera/microphone arm: https://amzn.to/45y8Ryl

Relief

Aputure Amaran 100d key light: https://amzn.to/47T4Y97
Aputure Light Dome Mini II Softbox: https://amzn.to/3EstpMM
Aputure Amaran Small RGB Light: https://amzn.to/3Pl6RnG
IVISII Clear RGB Light: https://amzn.to/3EmfsA3

—————————————— —– ———————————–
Links used in the description may be affiliate links. By clicking these affiliate links and/or purchasing something, I will receive a small commission (at no cost to you). This really helps me fund my videos and grow my channel. Thanks for the support!

Please take the opportunity to connect and share this video with your friends and family if you find it helpful.