Search results

vim popup으로 floating window를 사용해보자

이광효 @widehyo@hackers.pub

Vim 8 이상에서 제공하는 `popup` 기능을 활용하여 플로팅 윈도우를 만드는 방법을 소개합니다. 특히 `popup_menu()`를 사용하여 리스트를 팝업 메뉴로 표시하고, `callback` 함수로 팝업 종료 동작을 변경하거나 `filter`를 통해 키 입력을 제어하는 방법을 설명합니다. Less 바인딩, visual mode, yank 기능을 포함한 `filter` 예시를 통해 `echomsg` 디버깅 내용을 쉽게 복사할 수 있도록 합니다. 또한, Ex 명령어나 시스템 명령의 결과를 플로팅 윈도우에서 편리하게 확인하는 함수를 제시하고, 자주 사용하는 명령에 대한 키 매핑 설정 방법을 안내합니다. Neovim에서는 플로팅 윈도우를 더 편리하게 사용할 수 있으며, Lua 스크립트를 통해 동일한 기능을 구현하는 방법을 소개합니다. 이를 통해 Vim과 Neovim에서 플로팅 윈도우를 활용하여 작업 효율성을 높일 수 있습니다.

Read more →
2
0

I guess I should do an #introduction post, again, now that this instance is actually working and it's not looking like I'm gonna have to torch it and start over again, again.

Hello and welcome to my followers—745, so far, last I checked. Not nearly as many as some; a few more than I deserve, probably.

If you think you know me by some other name, you're probably right. I wouldn't say I'm exactly new to the #Fediverse, but I'm still newer than a lot of people who are likely to read this. I'll take any reasonable advice from anyone. This is the second #GotoSocial instance I've self-hosted on my own hardware. As of the exact moment I'm writing this, I'm in the process of migrating from my account on the first one.

As far as software, I've been on #NixOS for a few years now, and #Qtile with the #Wayland backend for almost as long. #XMonad was my first #TilingWindowManager properly; tried #i3 before that, wasn't impressed. Give me #Vim at the very least, or preferably #Neovim. Current terminal emulator is #WezTerm.

GED in 2011 at the age of 17, no formal education beyond that.

I have #ADHD and #TouretteSyndrome, both diagnosed when I was 24.

Hobbies include but are not limited to collecting #rocks, watching and (and this is putting it charitably) reviewing #movies, and #unicycle.

I'm sure there's more; feel free to ask.

Thank you.

0

Development News The 0.12 version will relax API contract to allow `nvim_xxx()` functions to: - Start returning values. - Add new optional parameter `opts`. This allows revisiting API decisions while (hopefully) not being too breaking. PR: - github.com/neovim/neovi...

feat(api): relax contract, all...

0

Development News The 0.12 version will add a way for plugins to show that buffer is "busy" by setting buffer-local option of the same name. This can be helpful to visually indicate a long running background task, as default statusline will do. PR: - github.com/neovim/neovi...

feat: add busy status for buff...

0

Good evening, Fediverse! I've just migrated from tech.lgbt to my own self hosted GoToSocial instance, and this feels like a great time to do an intro, because I also just turned 32 today!

I'm a #trans and #queer SRE working for a gaming company in Amsterdam (Netherlands), and I enjoy hacking on :k8s: #kubernetes projects in my spare time (I write a lot of #helm charts and :argocd: #argocd apps). I've been in the hosting/platform/devops industry for around 13ish years and I'm still just as in love as I was before, though where I used to focus on Big Tech, I now focus on self-hosting k8s on metal. Ask me about self hosting whatever project you want, and I can probably point you in the right direction!

My main operating systems are MacOS and :debian: #Debian (love #linux dearly). I'm a #bash and #neovim user, but I cut my teeth on vi and later #vim and so those are still dear to my heart. I want to get more into #solarpunk projects in 2025 and I'm big on using #prometheus #homeassistant and #keda to accomplish those goals. I volunteer with #nextcloud (when I can) to help with their helm chart, and I also have a GitHub org called small-hack where I do a lot of FOSS work with @cloudymax! Always down to self host something new :heart_cyber:

My favorite language is #python :python:

Ik spreek A1 Nederlands, maar ik wil A2 binnenkort. Oh, en mijn favoriet kleur is blauw. 💙 Leuk u te ontmoeten!

0
0

Changed my mind to try 'lazy.nvim'. It seems to better support dependency handling and Lua plugins. Thank you for the replies!

OTOH, while I've been using Neovim with NvChad recently (since I didn't have time to do this before), I think I'll start from scratch and port the config I have for plain old Vim. I'll stick to 'vim-plug' on .

My intention is to use as a proper dev environment with decent LSP and DAP support. As an early supporter, it makes me happy how far neovim has come.

0

Finally decided to use a separate config setup for (from vim). Want to avoid relying on VS Code for good LSP support.

Planning on using 'vim-plug' since I've used it for a long time. Are there any particular functional reasons why I should consider 'lazy.nvim' instead?

Changed my mind to try 'lazy.nvim'. It seems to better support dependency handling and Lua plugins. Thank you for the replies!

OTOH, while I've been using Neovim with NvChad recently (since I didn't have time to do this before), I think I'll start from scratch and port the config I have for plain old Vim. I'll stick to 'vim-plug' on .

My intention is to use as a proper dev environment with decent LSP and DAP support. As an early supporter, it makes me happy how far neovim has come.

0

Finally decided to use a separate config setup for (from vim). Want to avoid relying on VS Code for good LSP support.

Planning on using 'vim-plug' since I've used it for a long time. Are there any particular functional reasons why I should consider 'lazy.nvim' instead?

0
0

Development News The 0.12 version will add built-in support for LSP-based incremental selection (if server supports `textDocument/selectionRange` method). Pressing `an` / `in` selects outwards / inwards. PR: - github.com/neovim/neovi...

feat(lsp): incremental selecti...

0
0
0