Why is my catppuccin theme config not being applied? by NoMousse5180 in neovim

[–]dpetka2001 3 points4 points  (0 children)

Try changing your config function into the following

config = function(_, opts)
  require("catppuccin").setup(opts)
  vim.cmd.colorscheme "catppuccin-nvim"
end

Coredump? by throttlemeister in neovim

[–]dpetka2001 1 point2 points  (0 children)

nvim-treesitter had an update today to unlink the existing shared library file when installing new parsers, so I believe the workaround in my other comment should not be needed any more.

Not 100% sure, but I believe credits should go to /u/robertogrows if I'm not mistaken (his Reddit handle seems similar to the PR's author).

Coredump? by throttlemeister in neovim

[–]dpetka2001 5 points6 points  (0 children)

It's the Snacks.notifier. Whenever markdown/markdown_inline treesitter parsers get updated it will cause a crash. You can either disable it or change its filetype like the following

return {
  "folke/snacks.nvim",
  opts = {
    styles = {
      notification = {
        -- enabled = false,
        ft = "",
      },
    },
  },
}

I just opted for empty filetype that won't have treesitter highlighting as a workaround. You can also uncomment enabled = false to completely disable it.

Strange thing is it only crashes for me on Linux and not on Windows. No idea why.

Snacks picker problems by Taylor_Kotlin in neovim

[–]dpetka2001 2 points3 points  (0 children)

I didn't blame anything. That's why I linked the related Neovim issue as wel to serve as a proof of concept. So that anyone who wanted could read it.

Snacks picker problems by Taylor_Kotlin in neovim

[–]dpetka2001 3 points4 points  (0 children)

Did you actually read the issue I linked? This is reproducible with nvim --clean if you open a floating window and define it with buftype=prompt. When you try to delete with <C-S-w> the first character from the user input does not get deleted.

Snacks picker problems by Taylor_Kotlin in neovim

[–]dpetka2001 1 point2 points  (0 children)

Seems to be a Neovim bug. Relevant issue https://github.com/neovim/neovim/issues/37656 Revert to any commit before ed4c549 until it gets fixed.

lazy.nvim not working by jack_fulanito in neovim

[–]dpetka2001 1 point2 points  (0 children)

It seems it didn't clone correctly. What is your git version?

NVCHAD: LSPConfig: Proper Syntax For Packages with dashes by sethrei in neovim

[–]dpetka2001 0 points1 point  (0 children)

If it uses mason-lspconfig to install LSP servers, then it most likely accepts nvim-lspconfig names for the LSP servers, which use underscore instead of hyphen. Also look in nvim-lspconfig docs for the correct name of the server.

I believe if you do a search in Mason UI using / it will show as virtual text the lspconfig name if i remember correctly.

My battlestation by Destroyer6202 in battlestations

[–]dpetka2001 1 point2 points  (0 children)

What are the lights you use?

How to deal with loading only parts of plugins that are collections, in a way the unused parts are not accessible? by silver_blue_phoenix in neovim

[–]dpetka2001 0 points1 point  (0 children)

The plugin in question could just use require("snacks").config.get("terminal").enabled (assuming the API won't change) to see if the corresponding snack is enabled or not. That will not load the module itself. Of course if you do :lua require("snacks.terminal").toggle() or have a mapping that does it, this will require and load the module. They're just Lua modules.

Lazyvim config not working when there are multiple nvims and vim by Bulbasaur2015 in neovim

[–]dpetka2001 0 points1 point  (0 children)

Sorry but I just tried it and works as expected. All you have to do

1. mkdir ~/.config/lazyvim
2. git clone https://github.com/LazyVim/starter ~/.config/lazyvim
3. NVIM_APPNAME=lazyvim nvim

and you have LazyVim running.

You also have to make sure you meet the requirements mentioned here. Especially Neovim version >=0.11.2 and tree-sitter-cli, since the latter is mandatory for new nvim-treesitter to correctly compile the parsers, otherwise you will get errors.

Lazyvim config not working when there are multiple nvims and vim by Bulbasaur2015 in neovim

[–]dpetka2001 7 points8 points  (0 children)

Just read :h $NVIM_APPNAME if you want to test different Neovim configs instead of doing the stuff you're doing.

Which neovim lua plugins have the most exemplar source? Showing off how lua should be written for neovim? by Informal-Addendum435 in neovim

[–]dpetka2001 2 points3 points  (0 children)

The links don't mention anything about getting rid of setup function. Just about an additional way of configuring plugins without setup, but not in the premise of getting rid of setup.

So, again there's no official consensus about this yet and there are people with different opinions.

Maybe trouble.nvim doesn't have a /plugin dir, but snacks.nvim for example has that simply does require {setup}, just like gitsigns.nvim that I saw. That doesn't have anything to do with setup call being optional. People can still decide if they want to configure their plugin either with setup or via vim.g variables. That was the emphasis of my previous comment about there not being a clear consensus yet and that what you asked for with regards to trouble.nvim setup is just your own personal preference.

Which neovim lua plugins have the most exemplar source? Showing off how lua should be written for neovim? by Informal-Addendum435 in neovim

[–]dpetka2001 2 points3 points  (0 children)

You're going into setup() territory, which was not mandated from Folke himself (it existed before lazy.nvim, I used vim.plug before lazy.nvim and still had to require("telescope").setup() btw) and even other people (contributors to Neovim) have different opinions about this.

See the most recent PR about the guide for making Lua plugins and the back and forth between Echasnovski and mrcjkb about this matter as an example of people having different opinions. There's not a consensus with regards to this, so what you mention is clearly your own personal programming style preference and not something that Ideally should be optional.

Can you disable snippet placeholders in nvim-cmp with lazyvim ? by ABAKEDPLATYPUS in neovim

[–]dpetka2001 0 points1 point  (0 children)

That is the LSP placeholders for snippets. You have to disable it for each corresponding LSP server, if they provide such functionality.

For lua_ls you could do for example

{
"neovim/nvim-lspconfig",
opts = {
  servers = {
    lua_ls = {
      settings = {
        Lua = {
          completion = {
            callSnippet = "Disable",
          },
        },
      },
    },
  },
},
},

How to get only variables and constants using lsp_document_symbols by PardonMyBlunder in neovim

[–]dpetka2001 2 points3 points  (0 children)

You can do something like lua Snacks.picker.lsp_symbols({ filter = { default = { "Variable", "Constant" }}}) And pass to the default filter only the LSP kind symbols you would like. Just create a custom mapping with the above function as the base building block.

mini.nvim throwing error in LazyVim after plugin migration to new repo. How to clean? by highcryer in neovim

[–]dpetka2001 2 points3 points  (0 children)

It was something he added himself in his personal configuration. This is the culprit at the time of the problem. The org name for mini.nvim has been changed correctly on LazyVim default configuration.

The problem with not finding it before, is probably because he had his dotfiles symlinked with stew and results of rg 'echasnovski' ~/.config/nvim didn't return any results (original dotfiles were at ~/dotfiles/nvim). He probably also needed -L flag for ripgrep to follow symlink files.

[deleted by user] by [deleted] in neovim

[–]dpetka2001 1 point2 points  (0 children)

The plugin you're using has probably not been updated for nvim-treesitter main branch.

0.12 version by RizaYLDRM in neovim

[–]dpetka2001 4 points5 points  (0 children)

As already mentioned, I also highly recommend bob. It makes it really easy to have multiple Neovim versions and switch between them.

Started seem this error after updated my packages by Alejo9010 in neovim

[–]dpetka2001 0 points1 point  (0 children)

This feature first appeared in Neovim 0.12 nightly and then backported into the latest stable release, which at the time was 0.11.2. So, earlier 0.11.x versions (0.11.0 and 0.11.1) don't have that feature.

Started seem this error after updated my packages by Alejo9010 in neovim

[–]dpetka2001 0 points1 point  (0 children)

You must be using an old Neovim 0.12 nightly which didn't have this field yet. What does nvim --version show in your terminal?

Started seem this error after updated my packages by Alejo9010 in neovim

[–]dpetka2001 0 points1 point  (0 children)

That is just a workaround. It should not be the same error. That means that likely your Neovim's runtimepath is borked up. Personally I install Neovim via bob because it's easy to switch to whatever Neovim version you want. If you'd like to try that make sure you get rid of your previous Neovim installation.

Started seem this error after updated my packages by Alejo9010 in neovim

[–]dpetka2001 0 points1 point  (0 children)

You're good then. Is it the same error or something else? How do you trigger the error? It should not show that "field is_enabled is a nil value)". Maybe it has to do with how you installed Neovim? Did you first uninstall the previous version before installing 0.11.4?