190 questions
1
vote
1
answer
50
views
How can I use `chansend()` to update a terminal buffer asynchronously in Neovim?
I have a callback/generator which produces output, possibly after a delay. I'd like to send these outputs to the terminal buffer as they're produced. Here's a mockup:
local term_buf = vim.api....
1
vote
1
answer
53
views
Neovim with LaTeX, changed tabstop and shiftwidth leads to error while indenting in .tex files [closed]
I'm very new to neovim and I'm trying to set it up for LaTeX. I've been unable to indent in .tex files after changing tabstop and shiftwidth after using :set to set them both to 4. Specifically, my ...
3
votes
1
answer
136
views
How to run a functions everytime I enter Insert Mode in Nvim?
i am making a small plugin for myself and i just want to run a simple command whenever I enter Insert mode.
Currently i have tried the following
vim.api.nvim_create_autocmd({"InsertEnter"}, {...
2
votes
1
answer
126
views
Problems setting up haskell-tools.nvim on NixOS
I'm trying to setup the Neovim plugin https://github.com/mrcjkb/haskell-tools.nvim
for a while now and I don't see any progress.
I mostly want this plugin for Haskell CodeLenses, so that I can write a ...
2
votes
1
answer
119
views
Switch dashboards when choosing an option in Neovim
I'm using neovim along with lazyvim and was trying to create my own menu. So far, I've managed to generate a main menu, but I want to make it so that selecting an option from that main menu switches ...
0
votes
0
answers
41
views
Override some config params of a neovim plugin
I've got blink.cmp plugin in neovim installed, and my company provided me a customized config lua file for it.
But I'm not fully satisfy, with some keymap choices. I would like to add add a personal ...
2
votes
0
answers
77
views
Neovim document hover adds incorrect newlines
The document markdown adds incorrect newlines to the end of links for some reason. They don't exist, it should be all one line.
I don't use vim.lsp.buf.hover either. Neovim automatically gives me a K ...
1
vote
0
answers
434
views
Neo-tree/Treesitter Error: "Parser could not be created for language 'lua'" after installing Kickstart.nvim on Windows
I've recently installed kickstart.nvim on my Windows machine (specifically Windows 11, running Neovim v0.9.x or later). After the initial setup and opening any file (e.g., a .lua file), I encounter ...
1
vote
1
answer
206
views
How do I use telescope to pick the file I want to debug with nvim-dap?
My current neovim config uses nvchad. I have configured my debuggin set-up for c++ with the following lua code:
return {
{
"rcarriga/nvim-dap-ui",
event = "VeryLazy",
...
3
votes
1
answer
4k
views
Undefined global `vim`
I have searched for a solution but nothing I have found worked.
I have lazy.nvim as plugin manager.
I installed the following plugins
return {
"mason-org/mason-lspconfig.nvim",
...
1
vote
1
answer
738
views
Error with npm while installing Pyright LSP via Mason.nvim on Linux
I was trying to use a Python Lsp in my project to code faster with Neovim. However, I can't install the Pyright Lsp with Mason because there's an error with npm.
◍ pyright
▶ # [46/46] npm ...
1
vote
2
answers
460
views
NeoVim Highlight .ts template as HTML / JSX
Update:
The closest I am able to get is by using an hmtl tagged template string. (This highlighting works even if html is undefined in the file.)
But this doesn't work for trying to do something like:
...
3
votes
1
answer
467
views
The ‘gitsigns’ plugin outputs an error E5560 in neovim
I am new to neovim. After I learned to install neovim and lazyvim, gitsigns plugin reported an error every time I opened a file in a project.
The error is as follows
> Error executing luv callback:
...
1
vote
0
answers
61
views
Rust-analyzer documentation window resize (coc.nvim)
I'm using coc.nvim with rust-analyzer, and it works fine. My problem is having the documentation window take up half the screen (as can be seen here)
I've tried to change its size from withing my init....
0
votes
0
answers
72
views
configure autocomplete snippits in nvim for .hbs file
How do I configure autocomplete snippets for .hbs (Handlebars) files in Neovim using the NvChad framework?
I'm using Neovim with the NvChad configuration framework, and I want to enable autocomplete/...
2
votes
1
answer
630
views
Is there a way for nvim-dap-ui to display the values of elements in vectors?
When I try to debug my c++ programs with neovim while using nvim-dap-ui along with nvchad. The debugger is gdb along with vscode-cpptools. I am unable to see all the elements inside a vector and ...
0
votes
0
answers
103
views
Nvim ESLint not working properly in React TypeScript
I have a React TypeScript project, here is .eslintrc.json:
"env": {
"browser": true,
"es2021": true
},
"extends": ["eslint:...
1
vote
0
answers
119
views
Why can't I install different icons in nvimtree?
I'm trying to install these icons to nvimtree.
But the icons appear to me with different colors and the folders do not have icons, I am not very expert in Lua and Neovim (I am a beginner), so from ...
3
votes
0
answers
135
views
How to configure language server to support JavaFX?
SOLUTION :
my bad it was a build.gradle problem, by removing 'org.javamodularity.moduleplugin' version 1.8.12 from it, coc-java worked again !! But thank you all for your help !
I am working with ...
0
votes
0
answers
15
views
How to use vscode plugin api to get the current window/group structure [duplicate]
TLDR. How to get vscode group structure information using plugin api or any kind of workaround?
I am a neovim user. Due to the rapid development of llm, I tried almost all plug-ins in the neovim ...
0
votes
1
answer
81
views
neovim Lazy load local pluguin with cmd returns: Command `Test` not found after loading `test`
I have created a minimal Neovim configuration (Test) that only includes the plugin and the lazy.nvim setup.
The local neovim plugin Test loads with lazy.nvim using Lazy-load on command: cmd = "...
-1
votes
1
answer
46
views
Nvim is automatically commenting variable types [closed]
For some reason Neovim is adding variable tags to my code. It's not breaking anything and it doesn't change the code at all, but it's annoying and too verbose (added an image link, see the highlighted ...
0
votes
0
answers
31
views
Problem with astronvim with unnecessary characters
I have a problem with astronvim. I want to disable autofill of forging brackets. This is when you write "(" and the code editor immediately fills it in with ")"
I tried through the ...
2
votes
1
answer
2k
views
Snacks file explorer will close on every open if it already open
I am attempting to configure the file explorer in snacks and the documentation is both confusing and very sparse in some weird areas. I want to focus the file explorer every time I use Snacks.explorer(...
0
votes
1
answer
243
views
Peek.nvim does not open anything when :PeekOpen
I've been trying to install peek.nvim on my Windows laptop, but when I type :PeekOpen and press Enter, nothing happens.
this is my peek.lua file
return {
"toppair/peek.nvim",
event = ...
1
vote
1
answer
85
views
Difference between require("some.module") and require("some").module?
I currently have this (working) configuration in my neovim:
{
"nvim-telescope/telescope.nvim",
dependencies = {
...
"jvgrootveld/telescope-...
1
vote
0
answers
111
views
Neovim cursor jumps parenthasis while scrolling
I am relatively new to the world and Neovim, I have been using vim for a while and wanted to make the jump to Neovim to get all the cool plugins. I'm using Lazy as a plugin manager and when I install ...
2
votes
1
answer
654
views
How to change the which-key plugin popup position
When I open LazyVim and press the leader key (space) the which-key plugin popup appears and shows options of what action key I could press next.
Explorer NeoTree
space >> e
The position of the ...
1
vote
0
answers
479
views
How do I configure git-blame.nvim?
I'm using neovim with lazy package manager to configure the git-blame plugin.
This is my config, but it is not formatting the date correctly for me. According to the docs, the %r format is supposed to ...
0
votes
0
answers
71
views
How I can delete React fragment with vim-surround?
I love vim, but it doesn't always work as expected. When I wrote React code, often time I need to use React fragement shorthand, which is <></>, neither vim-surround nor nvim-surround ...
1
vote
0
answers
181
views
Documentation rendering with nvim-jdtls and treesitter in Neovim
I recently switched from VSCode to neovim and managed to create a nice setup for java editing. However, I an not happy with the way how treesitter renders documentation (see images). Basically, ...
0
votes
1
answer
379
views
Cannot install Markdown-Preview on Neovim on windows
I am new to Neovim and am trying to add the markdown-preview plugin, but it's not loading even though other plugins are working fine
Here is my nvim folder structure.
nvim/
├── init.lua
├── plugins/
│ ...
0
votes
0
answers
73
views
How do I use pcall with vimscript functions?
I'm writing a neovim plugin.
I want json decoding to fail silently. This is what I have tried:
partial_chunk = partial_chunk .. chunk
pcall(function()
-- vim.defer_fn(function()
...
4
votes
1
answer
371
views
How to make copilot not leak secret credentials with Neovim plugin?
If you install the copilot neovim plugin following the official instructions, it is always on, also when you type -say- pass edit www.mybank.com/credentials which decrypts your GPG encrypted file and ...
0
votes
0
answers
92
views
Is it possible in coq_nvim to configure autocomplete behaviour like vscode
In VS Code when I typing something like var. and press ctrl+space, I can continue typing some prefix with opened autocomplete menu and it will filter it's list. In coq_nvim when I use vim.g....
0
votes
1
answer
1k
views
Nvim-cmp is working as I didn't expected on nvim.lazy
I am using nvim.lazy, nvim-cmp and luasnip. I was coding c++ program, and I got the autocompletions, but it is autocompleting only strings that I used before, not the functions of c++.
in example, if ...
1
vote
0
answers
779
views
How to disable Copilot in Neovim
I'm struggeling with a problem concerning my neovim config.
I'm really struggeling and I think I must oversee something because the task can not be more easier.
Right now I'm struggeling to deactivate ...
4
votes
1
answer
467
views
Neovim : Display total search occurrences in status line when count exceeds 999
I am using Neovim (0.10.2) with the "lualine" plugin.
I know how to display searchcount on the status line, which works for up to 999 occurrences.
However, I would like to know how to ...
1
vote
0
answers
49
views
Can I copy the vim api in neovim
I want to make a neovim plugin but my plugin need to be able to copy the whole vim api, do some changes to it and roll back later
backup = vim
-- do some stuff with `vim`
vim = backup
I tried to do ...
1
vote
1
answer
728
views
Why treesitter syntax highlighting not working correctly with FastAPI Python decorators in Neovim?
I'm having an issue with syntax highlighting for FastAPI decorators. In VSCode everything works perfectly out of the box (after installed some Python extensions), but in Neovim the whole decorator ...
1
vote
1
answer
1k
views
Avante plugin won't generate Responses
Problem: Avante plugin never responds with a generated response. It just hangs forever.
Suspicion: There is something wrong with the API key or way it is being used.
Question:
How do I properly set ...
-2
votes
1
answer
195
views
Instalation problem with mrcjkb/haskell-tools.nvim plugin
So, i was trying to use the package in the title, but its not working by nothing. I did how they said to do in the github link, but didnt work. Ive try to use a config exacly as a friend which get to ...
1
vote
3
answers
1k
views
Nvim indent-blankline dashed line
I use for Nvim 0.10.2 the plugin indent-blankline.
I try to get a solid coloured indent guide for the active block where my cursor is on but it turns to a shade dashed line instead.
I tried :
opts = {
...
1
vote
0
answers
675
views
How do I resolve treesitter error on Windows?
I keep getting this error after trying to set up treesitter. I've seen advice online saying to read the Windows support page for treesitter, but I can't seem to understand what's going on in the ...
3
votes
0
answers
831
views
How to fix the indentation problem for Javascript/Typescript on Neovim?
Problem Description
It's been a week since I started taking Neovim (lazyvim). Neovim has been used by me exclusively for Python and MERN Stack development. The indentation in Python is operating ...
0
votes
1
answer
941
views
Setting the number of tabs in NvChad
Details of the problem
I like write programs with 4 tab space. Please help.
I don't know if this can be set in Neovim or NvChad, if this is a setting of Neovim, please also help me and also indicate ...
1
vote
1
answer
704
views
Neovim (Windows) with LazyVim Only Loading 4/42 Plugins
enter image description here
I'm using Neovim on Windows 11 with LazyVim, but only 4 out of 42 plugins are loading. I've done a clean install of both Neovim and LazyVim, but many plugins remain ...
1
vote
1
answer
379
views
My neovim config stopped working, but I have tried other configs and templates and it did not work as well
My neovim returns the following error message everytime I try to open it:
Error detected while processing /home/garamog/dotfiles/nvim/.config/nvim/init.lua: ...
1
vote
0
answers
1k
views
Lazy Loading Copilot to Neovim but not autocompleting after that
I use Neovim with Lazy.nvim and I want to use GitHub Copilot only for very specific cases. For me, is better to have it unabled than enabled by default, and just activate it when I need to use it (...
1
vote
1
answer
717
views
How to use Nix as a Package Manager for Neovim to manage plugins and configurations?
I want to use Nix as a package manager for managing my Neovim plugins and configurations instead of using traditional methods like Vim-Plug or Packer. I'm looking for guidance on the following points:
...