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++.
How to disable Copilot in Neovim
Im struggeling with a problem concerning my neovim config.
Why the event “VeryLazy” make my lsp-config not work
Background I’m a beginner to neovim and is trying to configure it. But I met with a problem. I referred to some blogs and tried to configure lsp. Some suggests that I should set the event for nvim-lspconfig as “VeryLazy”. event = { “VeryLazy” }, But after doing this, my lspconfig doesn’t work. If I […]
extmark was remove when use `nvim_buf_set_lines`
I am writing a indent (chunk) plugin, and encounter a bug, when comment a line which has extmark, the extmark was remove, detail can be seen here https://github.com/shellRaining/hlchunk.nvim/issues/109
How to format on save in neovim
vim.api.nvim_create_autocmd(
“BufWritePost”,
{
pattern = “*.py”,
group = “AutoFormat”,
callback = function()
vim.cmd(“silent !black –quiet %”)
vim.cmd(“edit”)
end,
}
)
E5113: Error while calling lua chunk: ./tokyonight.lua
I’m new to neovim and I’m going through a configuration tutorial but when I entered neovim I recieved this error about the colorscheme tokoynight
:
How to fix this isseue
img