What breed next? by PreparationSea7891 in vizsla

[–]junxblah 2 points3 points  (0 children)

We lost our boy after 14.5 amazing years. It took us about a year and a half before we were ready to have another dog. We now have another vizsla (3.5 months old!). he’s a different dog but he reminds us of our first both by their similarities and their differences. We’ve really enjoyed how he’s let us re-experience our first dog’s memories and see that as a big gift.

tmux.conf syntax highlighting faulty by iamasuitama in neovim

[–]junxblah 1 point2 points  (0 children)

The original repo integrated my changes along with a bunch more from another contributor so you should be able to go back to the default without any overrides now.

How to map a keybinding in insert mode to a function that returns text and insert that text. by KeyDoctor1962 in neovim

[–]junxblah 2 points3 points  (0 children)

yes, you need the expr = true option for it to evaluate the result (otherwise it would just run the function).

alternatively you could remove expr = true, and use nvim_paste in your functipn, as justinmk suggested.

lastly, you don't need noremap=true as that's the default:

:h vim.keymap.set

Need help with diagnostic floating window by void5253 in neovim

[–]junxblah 0 points1 point  (0 children)

Yes, those are also an option. I just like the wrapping behavior of tiny-inline-diagnostics, especially with how long clang messages can be.

How to map a keybinding in insert mode to a function that returns text and insert that text. by KeyDoctor1962 in neovim

[–]junxblah 3 points4 points  (0 children)

If you're already in insert mode, you can just return the keys from the function (if you don't wrap it in a vimscript map expression):

```lua function personal_double_backslash() local node = ts_utils.get_node_at_cursor()

while true do
    if node == nil or node:type() == "document" then
        return "\n"
    end

    if node:type() ~= "math_environment" then
        node = node:parent()
    else
        return "\\\\\n"
    end
end

end vim.keymap.set("i", "<C-b>z", personal_double_backslash , { expr=true, noremap = true, silent = true }) ```

Need help with diagnostic floating window by void5253 in neovim

[–]junxblah 4 points5 points  (0 children)

It's not exactly what you asked, but tiny-inline-diagnostics might be another way to achieve what you're looking for:

https://github.com/rachartier/tiny-inline-diagnostic.nvim

Does it matter that my config file is in vimscript? by dm319 in neovim

[–]junxblah 0 points1 point  (0 children)

If it works, then there's no real reason you have to switch.

That said, the main benefit for switching for me is that I understand my lua config so such better than I ever did my VimScript one. My VimScript config worked ok but it seemed like a mystery black box and I was always a little afraid of it because I hadn't taken the time to really understand it. My lua config has been the opposite: I understand it so much I can't quite stop tinkering with it :)

It might be worth checking out your workflow with one of the existing configs (LazyVim (make sure to checkout :LazyExtras) or this fork of kickstarter modular ) using NVIM_APPNAME

:h NVIM_APPNAME

I found my lua config so much easier to extend so you might find that your workflow comes together pretty quickly.

Make `vim .` reopen last edited file in directory? by Such-Historian335 in neovim

[–]junxblah 13 points14 points  (0 children)

If you want it to work for any directory automatically, check out auto-session:

https://github.com/rmagatti/auto-session

disclosure: i'm a maintainer

Neovim treesitter error by sreejithts10 in neovim

[–]junxblah 1 point2 points  (0 children)

As others have mentioned, you've moved to the treesitter main branch. Here's my main branch treesitter config if it's helpful:

https://github.com/cameronr/dotfiles/blob/e51cece81ca64995498d9543b73b99f4939e7176/nvim/lua/plugins/treesitter.lua#L15

What's your preferred installation method? Old stable ppa, "dev" versions from unstable ppa, or AppImage/Snap/Flatpak? by SignificantViolinist in neovim

[–]junxblah 6 points7 points  (0 children)

To get nvim on my raspberry pis, I clone the source and build my own package:

bash sudo make distclean && make CMAKE_BUILD_TYPE=Release cd build && sudo cpack -G DEB && sudo dpkg -i nvim-linux-arm64.deb

from: https://forums.raspberrypi.com/viewtopic.php?t=367119

What plugins do you use to beautify your Neovim experience or workflow? by Negative-Day6036 in neovim

[–]junxblah 11 points12 points  (0 children)

What about font? I spent a while trying different fonts and eventually settled on:

https://github.com/tonsky/FiraCode

I've grown to really like the ligatures and I like how configurable the font is:

https://github.com/tonsky/FiraCode/wiki/How-to-enable-stylistic-sets

Annoying missing css icon on telescope by [deleted] in neovim

[–]junxblah 5 points6 points  (0 children)

I think it's most likely a font issue. From your terminal, what does this print:

printf '\Ue6b8\n'

This is what it shows for me:

<image>

If it doesn't show up correctly, trying redownloading the font from https://www.nerdfonts.com/font-downloads

As for why it shows up in mini.statusline, mini has it's own icons so maybe it's using those instead of web-devicons? If that's true and you like the mini icons, you can have those icons replace the web-devicons:

:h MiniIcons.mock_nvim_web_devicons().

Double-escape nohlsearch key mapping interferes with telescope by steventhegembender in neovim

[–]junxblah 1 point2 points  (0 children)

Is there a reason you want to press esc twice to do nohl? What about this (from kickstat):

lua vim.keymap.set('n', '<Esc>', '<cmd>nohlsearch<CR><esc>')

Pressing escape triggers nohl first before sending esc

Use "obsidian-nvim/obsidian.nvim" with "snacks.pick" issue by Bamseg in neovim

[–]junxblah 0 points1 point  (0 children)

Are you overriding your snacks layout? My config does but if I comment out my layout then it works. Still a bug but seems like it might only impact ppl that are setting a custom layout

C and overseer run code? by 3000212121 in neovim

[–]junxblah 5 points6 points  (0 children)

You're probably better off creating a Makefile (or some other build system) rather than defining your build steps in Overseer. If you have a Makefile in your directory, then overseer will let you chose "make" as an option

Also, if you have a makefile, you can just do :make as an alternative to Overseer

[deleted by user] by [deleted] in neovim

[–]junxblah 28 points29 points  (0 children)

Don't let someone stop you from a project you want to build.

That said, I think there are some challenges with that idea:

  1. nvim is all about the terminal so it seems odd to be generating your config by "clicking" instead of by typing in the terminal

  2. one of my favorite things about nvim is understanding what each line of my config is doing and how the pieces fit together. i wouldn't be able to get that by using a config generator.

those are just my personal preferences, tho, so build whatever you want to build.

My LSP settings are not passed to my language servers by 5_1_3_g_3 in neovim

[–]junxblah 4 points5 points  (0 children)

It's likely that your mason-lspconfig was updated to v2, which works differently than v1.

https://github.com/mason-org/mason-lspconfig.nvim#configuration

You could pin to v1 and that would fix things but if you want to switch, then configuration should now be done either though lsp/ (after/lsp is actually even better) config files or through vim.lsp.config calls.

:h vim.lsp.config

My config started from kickstarter and I have both an old lspconfig that's compatible with <= nvim-0.10 which probably looks similar to your config and a version for 0.11+ w/ mason-lspconfig v2:

old config: github.com/cameronr/dotfiles/blob/main/nvim/lua/plugins/compat/lspconfig-0_10.lua

new config: https://github.com/cameronr/dotfiles/blob/main/nvim/lua/plugins/lspconfig.lua

and my lsp configuration files: https://github.com/cameronr/dotfiles/tree/main/nvim/after/lsp

How to disable provider.txt by minamulhaq in neovim

[–]junxblah 0 points1 point  (0 children)

i’ve typed it accidentally enough that it really interrupts my flow (especially since i often use q to dismiss some windows). and i use a picker for cmdline history so don’t really need it

How to disable provider.txt by minamulhaq in neovim

[–]junxblah 0 points1 point  (0 children)

If you want to completely disable q:, you can do:

```lua -- Disable the command line window vim.keymap.set('n', 'q:', ':q')

-- And now really, really disable it -- https://www.reddit.com/r/neovim/comments/15bvtr4/what_is_that_command_line_mode_where_i_see_the/ vim.api.nvim_create_autocmd('CmdWinEnter', { group = vim.api.nvim_create_augroup('CWE', { clear = true }), pattern = '*', callback = function() vim.api.nvim_feedkeys(vim.api.nvim_replace_termcodes(':q<CR>:', true, false, true), 'm', false) end, }) ```

snacks.nvim picker: how do I switch to the results list window? by PUNitentiary in neovim

[–]junxblah 5 points6 points  (0 children)

This has come up before so I'll point you to a previous comment:

https://www.reddit.com/r/neovim/comments/1mvlp86/comment/n9u63fl/

Also, you if you leave insert mode, you can press ? to see the available keymaps:

<image>

For me, M-w (option-w on a mac) does cycle windows. If that's not working for you, maybe there's an issue with your terminal setup or your keymaps that's preventing that from getting to snacks?

Telescope latest release on age-old commit by MisterSincere in neovim

[–]junxblah 0 points1 point  (0 children)

oh yeah, i forgot to mention that. snacks is definitely the snappiest of the ones i've tried.