2,458 questions
2
votes
0
answers
553
views
How to disable nvim-treesitter highlighter in LazyVim
I am trying to disable nvim-treesitter highlight module in LazyVim (nvim). This is my ~/.config/nvim/lua/plugins/treesitter.lua file:
-- disable treesitter highlight
return {
{
"nvim-...
1
vote
3
answers
271
views
How to get path of filename relative to another directory in vim/neovim
Suppose I have a filename f that may or may not be absolute. And I have a directory d that f is in, that isn't (or at least might not be) the current working directory, or the home directory.
What is ...
2
votes
1
answer
473
views
clangd doesn't respect include directories defined in .clangd
I recently switched from ctags to clangd for better lsp support in neovim. Now clangd doesn't recognize my local include directories.
I tried the following .clangd files without success (with the ...
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
79
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
45
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 ...
2
votes
1
answer
366
views
How to switch stack frames when debugging with LazyVim with dap?
How do I switch stack frames and jump to the corresponding source file in NeoVim's dap provided by LazyVim? I want something like shown in this video around 3:25 but I don't know which key should I ...
0
votes
1
answer
560
views
How to execute Nushell commands inside nvim command line?
I am using Neovim in Windows 11 26100.3476, with msys2 for gcc to run Zsh.
I used to use this Zsh command in Neovim:
# this is my config in ~/.zshrc
function ngr(){
cd /c/SoftWare/Nginx && ./...
1
vote
1
answer
242
views
How do I start a lldb-dap server while loading some data formatters (pretty printers)?
I am using nvim and nvim-dap for debugging, in particular with Rust. I would like to make use of rust's pretty printers for lldb while debugging in nvim.
Rust provides some pretty printers here: https:...
0
votes
0
answers
30
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
0
answers
589
views
lua_ls not working when opening .lua file from startup
The lua-language-server not started while opening a .lua file from startup using nvim a.lua. :LspInfo showing 0 client(s) attached to this buffer.
But it works when switching to another .lua file: :e ...
1
vote
1
answer
315
views
LSP for c/c++ on Windows only works when I have Visual Studio installed
On Windows, my lsp doesnt work if I dont have visual studio installed. I used to only have a hdd and befor trying nvim I was using Visual Studio (the purple one) for c/c++ programming. The config ...
0
votes
0
answers
80
views
Neovim -Lsp "angularls" cannot find root. Runs in "Single File Mode"
So I'm running my angular project in Neovim (started recently) and when I open a project file and run :LspInfo it says root directory: Running in single file mode. But that doesen't help me at all ...
0
votes
0
answers
94
views
coc-pyright inlay hint position
I'm using neovim on my local machine for few years now and my inlay hint are like that :
The hint is on the right of the line : y = foo(3) : int
Now I installed nvim on a new VM with --as far as I ...
2
votes
0
answers
89
views
Code and Diagnostic in Separate Terminal Windows with Neovim LSP
I am having trouble with trying to figure this out. I recently started using neovim and have come across learning about the LSP features. One thing I didn't like was the virtual text on screen as it ...
4
votes
0
answers
205
views
Specify c++ Standard revision with Nvim.kickstarter
I’m new to Linux and nvim and have heard a lot of great things about the Kickstart.nvim configuration by tj. I’m learning C++ and trying to configure the compiler to use --std=c++20 by default, but I’...
1
vote
1
answer
270
views
In Neovim, is there a way of set a keybind that allows to hold <leader> and press another key multiple times?
Considering the following example of key binding in nvim init file:
vim.keymap.set(
'n',
'<leader>x',
function()
print('megatron')
end )
Let's assume my leader is space ' '.
If I ...
3
votes
2
answers
130
views
Return to normal mode when I stop typing
When I edit files in vim I mostly stay in the normal mode. To type text I go to the insert mode, but eventually I stop typing to "think". Usually, that's the moment when I need to hit <...
2
votes
1
answer
151
views
Customizing and Color-Highlighting Specific Unicode Characters in Neovim
I'm using Neovim and want to use listchars to replace certain Unicode code points, such as U+3000 (Ideographic Space) with U+2B1C (White Large Square).
vim.opt.listchars = {
tab = '→ ',
-- space = ...
2
votes
1
answer
91
views
Shifted indentation when wrapping text in TeX file with AstroNvim
I'm using AstroNvim to edit a .tex file. When I use gw to wrap some text, it introduces an indentation on every line after the first of the paragraph, as shown below:
I don't understand why this ...
1
vote
0
answers
55
views
Two unpacks into one table doesn't work in lua [duplicate]
I want to assemble a table based on the values of other tables. For this I'm unpacking a two tables into the new table. Here's what I have
local function assemble_abspath_candidates()
-- Make sure ...
1
vote
1
answer
1k
views
Vue LSP(Volar 2.0) in neovim doesn't work for script section
I recently start working on vue3 framework. As a neovim(neovim 10.0) user I wanted to integrate lsp server in my workflow. I finally wrote the the config like this.
local lspconfig = require "...
0
votes
3
answers
536
views
How to move in neovim insertmode
Hi I wanted to create a key map of ctrl + {hjkl} to be able to move through the code, with these keys while I'm in insert mode.
Here is what i wrote in my keymaps.lua file:
local function map(mode, ...
0
votes
1
answer
241
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 = ...
3
votes
2
answers
2k
views
problem with eslint_d in neovim (none-ls)
I am having a problem with eslint_d in Neovim, where it only seems to work with json, whenever I open a Javascript or Typescript file, I get an error in the very first line even if the file is empty:
...