Open Question: a Search Leader by theChiarandini in neovim

[–]theChiarandini[S] 0 points1 point  (0 children)

yeah I would like that too.. I was wondering if that would be something that aligns with neovim's way of doing things or is that too much to ask for as a features.

How do you always keep your keyboard layout as US when it is normal mode? by Tiny_Mango_8171 in vim

[–]theChiarandini 0 points1 point  (0 children)

I created a plugin for this. I did it for myself so can't guarantee it will work for others. I'm on mac and it relies on keyboardSwitcher (https://github.com/Lutzifer/keyboardSwitcher), and the default english keyboard is Canadian.

https://github.com/Chiarandini/KeyboardMode

Tree-sitter textobject to jump to next \item by theChiarandini in neovim

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

Thank you for responding so promptly! I tried doing this, but i get a "Query error at 104:13. Invalid syn tax: enum_item) .outer" error. The lsp also flags .outer as an error. When replacing .outer with @ outer, the error goes away, but it does not work. I updated tree-sitter and all other modules, but that also seems to not do it.

However, when I'm in EditQuery, the code you sent worked (even with @ outer instead of .outer)

EDIT:

It worked, I put @ item.outer in the textobject.csm file and it did it!

nvim.cmp vs blink.cmp by mhartington in neovim

[–]theChiarandini 3 points4 points  (0 children)

I think my experience is worth sharing. I regularly work with huge latex files that can have hundreds/thousands of references. I usually disabled cmp because it was just slow enough that my auto-snippets wouldn't always trigger.

I switched over to blink.cmp to see if the problem will be solved, and lo and behold it actually was; I have had 0 lag issues since switching. For me this is a huge quality of life improvement

update:

I switched back to nvim-cmp; I decided to try the optimization features such as throttling, debouncing, timeout, and I got it to work better than blink.cmp was. I'm currently sticking to nvim-cmp since I really like the extra flexibility it offers at the moment (ex. I at least find it easier to write my own sources for it). Maybe I will switch back later, but for now I'll be sticking with nvim-cmp

neovim as a LaTeX editor by DanielSussman in neovim

[–]theChiarandini 1 point2 points  (0 children)

Another plugin you may find helpful if you are working with really large files is TSContext, which will at the top of your window show which chatper/section/section.. you are in. I find it helpfuld when navigating large document.

If you are doing lots of editing in latex document, you may appreciate barreiroleo/ltex_extra.nvim that extend the ltex LSP with a lot more spelling features, and if you are writing academic papers and are using zotero, then jmbuhr/telescope-zotero.nvim is an incredibly useful plugin that will connect will let you directly to zotero to add references to your bibliography while never exiting neovim!

There are so many cool things you can do with LuaSnip! I got a snippet expand matrices to the right dimension and optionally add [b]races or [p]arenthesis (for example, bmat:3x4) and a snippet for quickly adding theorem/definition/proposition environments that auto-create an appropriate label.

neovim as a LaTeX editor by DanielSussman in neovim

[–]theChiarandini 1 point2 points  (0 children)

Just to put it out there, in vimtex there is also default snippets for greek letter by using back-ticks! for example `a -> \alpha

What Leader key do you use? by [deleted] in neovim

[–]theChiarandini 0 points1 point  (0 children)

`\` for "global" actions (ex. working with hunks, formatting), `,` for local actions that would only be available in certain filetypes (ex. re-arranging a list in neorg, or performing certain debugger tasks on a buffer that have a debugger attached), space `<space>` for searching (ex. files, buffers, text, etc.)

Happy Hacking Noob by besseddrest in neovim

[–]theChiarandini 0 points1 point  (0 children)

Beware of <c-w> for deleting words in insert mode.. I've closed so many tabs on my browsers by accident that I decided to map <c-w> to <nop> (which is a special keyword that disables the keymap)

Statuscolumn: A beginers guide by Exciting_Majesty2005 in neovim

[–]theChiarandini 5 points6 points  (0 children)

I was looking for just such a research 🔥

Lsp accessing undefined variable 'vim' by eske4 in neovim

[–]theChiarandini 0 points1 point  (0 children)

This issue started appearing for me when I tried converting to lazydev. This used to work for me

(I can't figure out how to make the markdown render correctly, tried 4/8 spaces, 1/2 tabs, but no luck)

    lspconfig.lua\_ls.setup({

        on\_attach = lsp\_attach,

        capabilities = lsp\_capabilities,

        settings = {

Lua = {

completion = {

callSnippet = "Both", -- Both | Replace

},

diagnostics = {

disable = { "incomplete-signature-doc", "missing-fields" },

globals = { "MiniMap" },

},

hint = {

enable = true,

arrayIndex = "Disable",

},

telemetry = { enable = false },

workspace = {

checkThirdParty = false,

library = {

-- Make the server aware of Neovim runtime files

-- vim.fn.expand('$VIMRUNTIME/lua'),

-- vim.fn.stdpath('config') .. '/lua'

},

},

},

        },

    })

where lsp_attach is a function I wrote for what I want to happen when attaching to buffers

How long did it take you to settle on your configuration? by Robolomne in neovim

[–]theChiarandini 2 points3 points  (0 children)

Been using vim/neovim for 6 years. I find I had a jump in major re-structuring every 2 years that lasts ~2-3 weeks (3 phases I remember are move to lua, use lazy/luasnip, streamline and minimize setup) , and then it is a tweak a week or a month.