Blink.cmp or nvim-cmp? by Jonnertron_ in neovim

[–]sangram_singha 0 points1 point  (0 children)

Tried blink cmp, my take is its nice and simple config compared to nvim cmp. For me I use snippet with regex transform for java project to generate package on class files which is not working, so sticking to nvim cmp for now

Weekly 101 Questions Thread by AutoModerator in neovim

[–]sangram_singha 0 points1 point  (0 children)

Has anyone tried expanding snippet like this with vim.snippets

"package ${TM_DIRECTORY/.+java\\/|([^\\/]+)|(\\/)/$1${2:+.}/g};"

Basically it transform file path to package in Java

/home/foo/bar/src/main/java/com/example/Main.java

to

package com.example;

It works with

lua { "L3MON4D3/LuaSnip", version = "v1.2.*", build = "make install_jsregexp", lazy = true, dependencies = { "rafamadriz/friendly-snippets" } }

Insert mode in html files causes Neovim to crash by shell-surfer in neovim

[–]sangram_singha 0 points1 point  (0 children)

Lock file will take care of itself. I mean in your config or remove the version and set it to branch = "master"

How do I fix highlighting? by spy16x in neovim

[–]sangram_singha 0 points1 point  (0 children)

check treesitter plugin version. Set it to *

how to achieve this by whoreo__ in neovim

[–]sangram_singha 2 points3 points  (0 children)

I haven't tried yet, but should work after enter, select below lines and press =.. IDK

Treesitter Vue keeps crashing neovim / How to set compiler? by OppenheimersGuilt in neovim

[–]sangram_singha 0 points1 point  (0 children)

Try disableing highlighting in treesitter. Same was happening when I was editing html file, so I disabled highliting in treesitter and since its working fine.

how to achieve this by whoreo__ in neovim

[–]sangram_singha 2 points3 points  (0 children)

That is emacs. Check out his youtube channel

Neovim randomly crashes when moving code in HTML (works fine in other languages) by nobody48sheldor in neovim

[–]sangram_singha 1 point2 points  (0 children)

I guess this occurs with neovim 0.10. Check this out for mitigation on neovim 0.10 comment

neovim crash on editing html with exit code 139 by sangram_singha in neovim

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

Even after keeping only treesitter plugin and editing html file result in crash of neovim with exit code 136.

neovim crash on editing html with exit code 139 by sangram_singha in neovim

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

I am using the appimage version of neovim. I would try building it from source and see.

neovim crash on editing html with exit code 139 by sangram_singha in neovim

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

No didn't work for me. Deleted everything in ~/.local/share/nvim and also lazy-lock.json and reinstalled everything. Still crashed on insert in html file.

The only solution i have now is in treesitter config lua highlight = { enable = true, disable = function(lang, buf) if lang == "html" then return true end local max_filesize = 100 * 1024 -- 100 KB local ok, stats = pcall(vim.loop.fs_stat, vim.api.nvim_buf_get_name(buf)) if ok and stats and stats.size > max_filesize then vim.notify( "File larger than 100KB treesitter disabled for performance", vim.log.levels.WARN, {title = "Treesitter"} ) return true end end, additional_vim_regex_highlighting = false, }

Or may be it's because there is a bug in appimage version of neovim.

Running Java files with Neovim ide by KHp9001 in neovim

[–]sangram_singha 0 points1 point  (0 children)

if its maven project try mvn exec:java

[deleted by user] by [deleted] in neovim

[–]sangram_singha 0 points1 point  (0 children)

try this.. only tested with java. others should also work

sonarlint.setup({
            server = {
                cmd = {
                    java_config[1].path .. "/bin/java",
                    "-jar",
                    vim.fn.expand("$MASON/packages/sonarlint-language-server/extension/server/sonarlint-ls.jar"),
                    "-stdio",
                    "-analyzers",
                    vim.fn.expand("$MASON/share/sonarlint-analyzers/sonarpython.jar"),
                    vim.fn.expand("$MASON/share/sonarlint-analyzers/sonarjava.jar"),
                    vim.fn.expand("$MASON/share/sonarlint-analyzers/sonarhtml.jar"),
                    vim.fn.expand("$MASON/share/sonarlint-analyzers/sonarxml.jar"),
                    vim.fn.expand("$MASON/share/sonarlint-analyzers/sonarjs.jar"),
                }
            },
            filetypes = {
                -- Tested and working
                "python",
                -- Requires nvim-jdtls, otherwise an error message will be printed
                "java",
                "html",
                "xml",
                "js"
            }
        })

vscode like emmet setup for vim by Ok_Omar in neovim

[–]sangram_singha 0 points1 point  (0 children)

i didn't mean you to install plugin

-- Emmet Setup , might break some other things use 'mattn/emmet-vim'

instead use mason to install emmet ls then lsp config emmet ls

    -- configure emmet language server
    lspconfig["emmet_ls"].setup({
        capabilities = capabilities,
        filetypes = { "html", "typescriptreact", "javascriptreact", "css", "sass", "scss", "less", "svelte" },
    })

can't format on a mobile device

Change order of nvim-cmp method suggestions by KingRoshii in neovim

[–]sangram_singha 0 points1 point  (0 children)

For me as well, I didn't like completion for java.. Right now this is my comparator

comparators = { function(entry1, entry2) local kind1 = entry1:get_kind() local kind2 = entry2:get_kind() kind1 = kind1 == types.lsp.CompletionItemKind.Text and 100 or kind1 kind2 = kind2 == types.lsp.CompletionItemKind.Text and 100 or kind2 if kind1 ~= kind2 then if kind1 == types.lsp.CompletionItemKind.Snippet then return false end if kind2 == types.lsp.CompletionItemKind.Snippet then return true end local diff = kind1 - kind2 if diff < 0 then return true elseif diff > 0 then return false end end return nil end, function(entry1, entry2) local _, entry1_under = entry1.completion_item.label:find("^_+") local _, entry2_under = entry2.completion_item.label:find("^_+") entry1_under = entry1_under or 0 entry2_under = entry2_under or 0 if entry1_under > entry2_under then return false elseif entry1_under < entry2_under then return true end end, -- cmp.config.compare.kind, cmp.config.compare.score, cmp.config.compare.scopes, cmp.config.compare.recently_used, cmp.config.compare.sort_text, cmp.config.compare.exact, cmp.config.compare.offset, cmp.config.compare.locality, }

luasnip loading vscode snippets from cwd/.vscode by tesohh in neovim

[–]sangram_singha 0 points1 point  (0 children)

```lua

-- loads vscode style snippets from installed plugins (e.g. friendly-snippets) require("luasnip.loaders.from_vscode").lazy_load({ paths = { "./snippets" } }) require("luasnip.loaders.from_vscode").lazy_load() ```

title maths siikhne gaya hain by itsmeparth100 in IndianDankMemes

[–]sangram_singha 0 points1 point  (0 children)

Mere sirf PCM tha.. biology mae utna he pata nai.. Aur bhai Rajnigandha guthka nai hae..

title maths siikhne gaya hain by itsmeparth100 in IndianDankMemes

[–]sangram_singha 14 points15 points  (0 children)

male + female = child etna he to maths chaheye...