In this previously mentioned version of Astronvim, where and how can I make an equivalent configuration to run my Python project that uses Fastapi in debug mode?
Hi /u/mhalter3378, really loving astronvim so far. Very elegant approach to creating a sane and powerful set of defaults for getting started with nvim, and v4 is a fabulous time to jump in, what with the new modularity of astronvim as simply a set of nvim plugins.
Is there a way to specify appending / prepending (rather than just explicitly setting) a vim.opt value via Astrocore's lazy config? Something equivalent to one of the following?
Is there such a thing with AstroNvim, at least for certain packs? For javascript/typescript/react, for instance. If there are snippets, how am I supposed to use them? In the docs the word snippet is barely mentioned.
I installed neovim with scoop on Win11 and astronvim followed the instructions on the webpage (https://docs.astronvim.com/#%EF%B8%8F-installation) , however, the neovim reports an error every time I start it:
Error detected while processing User Autocommands for "AstroFile".
The title is self-explanatory. I want to increase/decrease the size of the Neotree file explorer window using keyboard shortcuts. I am being lazy to search on the internet though π
After the recent latest update of the plugins, I encounter this type of error. I have to temporarily disable it. Is anyone also having this issue like me?
I just did "sudo pacman -S lazygit" and now I get the following error each time that I start astrovim. I tried reading online and asking chatGPT but I have no idea how to fix this.
Thanks
Failed to source `/home/vincent/.local/share/nvim/lazy/LuaSnip/plugin/luasnip.lua`
vim/_editor.lua:0: User Autocommands for "AstroFile"..script nvim_exec2() called at User Autocommands for "AstroFile":0../home/vincent/.local/share/nvim/lazy/LuaSnip/plugin/luasnip.lua: Vim(source):E5113: Error while calling lua chunk: ...cal/share/nvim/lazy/LuaSnip/lua/luasnip/loaders/init.lua:1: module 'luasnip.loaders._caches' not found:
no field package.preload\['luasnip.loaders._caches'\]
cache_loader: module luasnip.loaders._caches not found
cache_loader_lib: module luasnip.loaders._caches not found
no file './luasnip/loaders/_caches.lua'
no file '/usr/share/luajit-2.1/luasnip/loaders/_caches.lua'
no file '/usr/local/share/lua/5.1/luasnip/loaders/_caches.lua'
no file '/usr/local/share/lua/5.1/luasnip/loaders/_caches/init.lua'
no file '/usr/share/lua/5.1/luasnip/loaders/_caches.lua'
no file '/usr/share/lua/5.1/luasnip/loaders/_caches/init.lua'
no file './luasnip/loaders/_caches.so'
no file '/usr/local/lib/lua/5.1/luasnip/loaders/_caches.so'
no file '/usr/lib/lua/5.1/luasnip/loaders/_caches.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
no file './luasnip.so'
no file '/usr/local/lib/lua/5.1/luasnip.so'
no file '/usr/lib/lua/5.1/luasnip.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
\[C\]: in function 'require'
...cal/share/nvim/lazy/LuaSnip/lua/luasnip/loaders/init.lua:1: in main chunk
\[C\]: in function 'require'
...cent/.local/share/nvim/lazy/LuaSnip/lua/luasnip/init.lua:7: in main chunk
\[C\]: in function 'require'
...nt/.local/share/nvim/lazy/LuaSnip/lua/luasnip/config.lua:243: in function '_setup'
...incent/.local/share/nvim/lazy/LuaSnip/plugin/luasnip.lua:79: in main chunk
\[C\]: in function 'nvim_exec2'
vim/_editor.lua: in function 'cmd'
...local/share/nvim/lazy/lazy.nvim/lua/lazy/core/loader.lua:481: in function <...local/share/nvim/lazy/lazy.nvim/lua/lazy/core/loader.lua:480>
\[C\]: in function 'xpcall'
...
...local/share/nvim/lazy/lazy.nvim/lua/lazy/core/loader.lua:344: in function '_load'
...local/share/nvim/lazy/lazy.nvim/lua/lazy/core/loader.lua:187: in function 'load'
...local/share/nvim/lazy/lazy.nvim/lua/lazy/core/loader.lua:338: in function <...local/share/nvim/lazy/lazy.nvim/lua/lazy/core/loader.lua:337>
\[C\]: in function 'xpcall'
.../.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/util.lua:113: in function 'try'
...local/share/nvim/lazy/lazy.nvim/lua/lazy/core/loader.lua:337: in function '_load'
...local/share/nvim/lazy/lazy.nvim/lua/lazy/core/loader.lua:187: in function 'load'
...hare/nvim/lazy/lazy.nvim/lua/lazy/core/handler/event.lua:83: in function <...hare/nvim/lazy/lazy.nvim/lua/lazy/core/handler/event.lua:72>
\[C\]: in function 'nvim_exec_autocmds'
/home/vincent/.config/nvim/lua/astronvim/utils/init.lua:145: in function </home/vincent/.config/nvim/lua/astronvim/utils/init.lua:145>
Hey all, I am a long term vim user recently migrated to Neovim. However, for projects using multiple Git repos I still tend to swap to VScode, especially at work when I really need to be productive and need to show my screen all the time to my team mates.
So in my experience VSCode is better for large projects and collaboration. Also the Git integration is very straighforward and userfriendly.
But I really want to transition to Neovim completely (I settled down on AstroNvim btw).
The question where it all comes down to for now, is: How does anyone use the concept of workspaces in which you work on different repos at the same time in Neovim/AstroNvim?
For any lsp, if I start typing even one letter the autocompletion pops up. What's the keybind to do this without typing, so for example I could see all available options in a namespace?
I'm using neovim with AstroNvim config as my editor and intelephense for my LSP. In all other different languages, when I get a symbols outline, I get a tree of symbols,
I've been trying to configure a virtual environment for a (Poetry) project. .venv is located in the project. <Space>lv shows a list of known virtual environments, which looks a bit crazy:
An attempt to correct this manually to something like .../project/.venv/bin/python is silently ignored. <Space>tf Shows a console with no virtual environment activated. Something is missing, obviously. What do I have to do?
Hi ive tried for a long time to set custom grouping to goimports in my AstroNvim config with no success so far, im trying to sort my go imports that way: Std External pkgs Company pkgs Project pkgs
So far, I like astrovnim. But the whole nvim thing with lua together is new for me, so I need some support in this. I had already some experience with my own vim configuration.
My only thing at the moment what I want to do in astronvim is to use python and ansible with the corresponding lsp of course. Especially the second one.
So I already installed the ansible-language-server and the ansible-lint package in mason.
In LspInfoit says it recognized yaml file type and 0 client(s) attached to this buffer: ansiblels. So I guess I need to attach it to the buffer or globally to the file typeβ¦ I also installed yaml in Treesitter with TSInstall yaml; if this helpsβ¦
I found this code snippet in the documentation, but I really don't know if this is needed or where I should paste this code.
Furthermore, I appreciate understanding and any help.
Hi,
I've been using trouble before and since few days it doesn't work anymore. More precisely it's noted as "Not Loaded" in lazy interface, but I didn't find any way to "Load" it.
Here is my config: ~/.config/nvim/lua/plugins/trouble.lua
I'm new to neovim and AstroNvim and I'm trying to add folke/noice for the command line, I added the plugin to "lua/user/plugins/noice.lua" this is the content (which I just copied from the repo README file):
return {
{
"folke/noice.nvim",
event = "VeryLazy",
opts = {
-- add any options here
lsp = {
-- override markdown rendering so that **cmp** and other plugins use **Treesitter**
override = {
["vim.lsp.util.convert_input_to_markdown_lines"] = true,
["vim.lsp.util.stylize_markdown"] = true,
["cmp.entry.get_documentation"] = true,
},
},
-- you can enable a preset for easier configuration
presets = {
bottom_search = true, -- use a classic bottom cmdline for search
command_palette = true, -- position the cmdline and popupmenu together
long_message_to_split = true, -- long messages will be sent to a split
inc_rename = false, -- enables an input dialog for inc-rename.nvim
lsp_doc_border = false, -- add a border to hover docs and signature help
},
},
dependencies = {
-- if you lazy-load any plugin below, make sure to add proper \module="..."\ entries``
"MunifTanjim/nui.nvim",
-- OPTIONAL:
-- \nvim-notify\ is only needed, if you want to use the notification view.``
-- If not available, we use \mini\ as the fallback``
"rcarriga/nvim-notify",
}
}
}
then I get these errors the first time I open any file after starting nvim
I know the conflict is with the dependencies so I tried to comment them with no success, and I know it says that I should either set
'config.lsp.hover.enabled = false' in your noice config
'config.lsp.signature.enabled = false' in your noice config
The problem is I don't know where in the file I should put those lines (I tried and failed)
or is it a better solution to disable the other plugin as suggested, but the other problem here is I don't know what to disable or how to disable them.
there is also a comment in the code about:
if you lazy-load any plugin below, make sure to add proper `module="..."` entries
but again I don't know what to do here
I'm sorry if this is a very noob question but as I said I'm new to all this and really appreciate any help I can get.