init.lua's Issues
Red square in sign column
I'm guessing this is because my terminal (urxvt) doesn't support wide characters and just replaces them with a box. I would like to just disable devicons/glyphs/nerd fonts all together with my LSP. Any idea how to do that?
Nill value when try to get vim undo directory
I try to copy Prime's config from YT tutorial, When I try to :so the set.lua file, it gives me the following error on windows:
Error detected while processing :source (no file):
E5108: Error executing lua [string ":source (no file)"]:17: attempt to concatenate a nil value
stack traceback:
[string ":source (no file)"]:17: in main chunk
Line number 17 is:
vim.opt.undodir = os.getenv("HOME") .. "/.vim/undodir"
Also I have a question: why Prime doesn't have autosave enabled as some one coming from vscode, it has autosave, so I am wondering if there is some kind of advantage to that?! If so what is it?
If not, why Prime doesn't talk about autosave, what's the easiest way to enable autosave without going into plugins, I explored options like autowrite
and autowritedelay
but couldn't get them to work!
Will I lose all my work if I forget to save it without autosave, I understand buffers keep your text but even after machine restart?
Sorry for asking too many question! I am just a newbie!
Include a LICENSE file
Something like the Unlicense would probably be sufficient?
remap.lua, Line: 42, Remap with double brackets and word replacement
Hello ThePrimeagen;
Thanks for the video "0 to LSP : Neovim RC From Scratch"
I had been looking for something to level-up my Neovim experience, I found it in your video.
I am a bit new to Git, and Github and wanted to try out the issues side of Github, I hope this
is the correct place for such a subject.
In your file
init.lua/lua/theprimeagen/remap.lua
line 42 you have the remap:
vim.keymap.set("n", "<leader>s", [[:%s/\<<C-r><C-w>\>/<C-r><C-w>/gI<Left><Left><Left>]])
Using this remap, with the cursor on the word "little", on the text:
Mary had a little lamb
little lamb little lamb
Mary had a little lamb
whose fleece was white as snow
produces a Neovim command line of:
:%s/\<little\>/little/gI
I'm not sure what this does as I've not seen the double open and closing brackets before. Testing it seems to have my cursor jumping all over the place. I have a similar remap to quickly replace a/all word[s] under the cursor. If the intent is to setup a quick replacement of the word under the cursor, I have:
-- setup a replacment for the word under the cursor globally
vim.keymap.set("n", "<leader>*", ":%s/\\<<C-r><C-w>\\>//g<left><left>")
-- setups a replacement for the word under the cursor with confirm
vim.keymap.set("n", "<leader>&", ":%s/\\<<C-r><C-w>\\>//gc<left><left><left>")
Using these on "little"
Mary had a little lamb
little lamb little lamb
Mary had a little lamb
whose fleece was white as snow
produces a Neovim command line of:
:%s/\<little\>/_/g[c]
Where the underscore is the location of the cursor and typing from here will replace the word[s] little with what you type either globally (no "c" in the remap) or with confimation (with "c" in the remap).
Using your video "Neovim from Scratch" I have since had to replace the backslashes
with escaped backslashes. I am guessing this has something to do with lua, as
my old-school init.vim file did not have the escaped backslashes.
Please let me know if I have stumble upon an issue, or if I've just not realized the actual intent of the mapping. Thanks for all you have done for us with the use of Vim and Neovim.
I was reluctant to start using Vim, you got me Vim-ing like a pro. I was not impressed with Neovim, you changed that. Now I feel that I am Coconut Oil level 10, thanks to your help on, Neovim with lua, Thanks again.
Cheers;
itsf4llofstars
Errors with vim.cmd and vim.lsp.buf.format
I was going through and updating my config files and Neovim complained about the following:
- In packer.lua :
vim.cmd.packeradd("packer.nvim")
- Resolved by changing to
vim.cmd [[packeradd packer.nvim]]
- Resolved by changing to
- In packer.lua :
vim.cmd.colorscheme("tokyonight")
- Resolved by changing to
vim.cmd [[colorscheme tokyonight]]
- Resolved by changing to
- In remap.lua :
vim.cmd.Ex
- Resolved by changing to
":Ex<CR>"
- Resolved by changing to
- In remap.lua :
vim.lsp.buf.format
- Resolved by changing to `function() vim.lsp.buf.format {} end)
I'm not sure what changed, but it affected 1 of 2 of my linux installs as well as my windows install.
Rose-pine colors are different in the video
Hi, what could be causing ThePrimeagen's neovim colors to differ from rose-pine's defaults and how to reproduce that?
The difference appears in ThePrimeagen's video "Neovim RC from scratch" right after he installs rose-pine package. It also persists in all subsequent videos. Here is a comparison of his colors and actual rose-pine defaults.
Following steps in the video does not produce such colors and I couldn't find any configuration in ThePrimeagen's dotfiles that could cause this.
E492: Not an editor command: PackerSync
Issue : upon relaunching nvim, commands like :PackerSync
show the error message : "E492: Not an editor command: PackerSync"
Going to /lua/[your_name]/packer.lua
and :so
the file fixes the issue, so I figured this packer.lua never gets loaded.
I did compare my setup to this very config and have the same settings, but I think I found a possible cause : in /lua/[your_name]/init.lua
, we actively require the packages [your_name].remap
and [your_name].set
, but we never require [your_name].packer
I tried adding this to my /lua/[your_name]/init.lua
and the problem goes away.
require("jubi.remap")
require("jubi.set")
require("jubi.packer")
lsp.lua still getting undefined global ‘vim’ with lsp.nvim_workspace()
Hi
For some reason I still get undefined global ‘vim’
There seems to be a fix see below, however, its still not working for me.
Line 10 in 97c039b
-- Fix Undefined global 'vim'
lsp.nvim_workspace()
W112: mutating non-standard global variable 'vim'
I am having problem. I am getting this error. If I have a file called init.lua
in ~/.config/nvim/
and if I add few basic configs like
vim.g.mapleader = " "
vim.opt.nu = true
vim.opt.relativenumber = true
vim.opt.termguicolors = true
and so on...
I am not seeing the effect. Probably because of this warning. But this is a warning right? It should no affect anyway right? Moreover how to handle this warning?
Note: I am trying to gradually build the neovim configs.
pressing Tab doesnt autocomplete
i dont know how to explain it except using an example:
While editing a file (a .py for example), tipyng s
, lsp suggest:
sorted(iterable, key, reverse)
if i press Tab
, it just jumps 4 spaces, pressing C-y
autocompletes, but just sorted
My .config/nvim is pretty much the one that appears on the video
renamed sumneko_lua -> lua_ls and 'vim' global undefined
Error
just finished setting up through the video and reading documentation however Mason.confi gave me this error :
server "sumneko_lua" is not valid entry in ensure installed. makesure to only provid lspconfig server names
Finding
sumneko_lua just deprecated the name and change it to lua_ls
Issue
'vim' global undefined appearing everywhere there is vim in .lua files so is this not working?
lsp.configure('lua-ls', {
settings = {
Lua = {
diagnostics = {
globals = { 'vim' }
}
}
}
})
Undo doesn't work in Windows
There is no environment variable HOME
in windows. So, this fails vim.opt.undodir = os.getenv("HOME") .. "/.vim/undodir"
.
This is the solution:
local home = os.getenv("HOME")
if (home == nil) then
home = os.getenv("UserProfile")
end
opt.undodir = home .. "/.vim/undodir"
How is packer.lua sourced?
I just watched the Youtube video and checked the source code.
I don't really understand how the packer.lua is sourced, because when I open neovim and try to call PackerInstall
the function is not accessible, without me explicitly add require("theprimeagen.packer")
Could this be a missing require statement or did I overlook something?
`<leader>ps` not working without ripgrep
Hey there! Thanks for "Neovim from scratch" video, it's so great!
One issue I stumbled upon is that <leader>ps
didn't work on my system by default.
I searched through youtube comments to see if someone else had the same, and indeed someone did. The comment from the user EmeraldWhovian
:
Thanks for the content !
An issue I had was setting the grep_string function. It didn't work, after checking :checkhealth, I found out it's because you need ripgrep installed on your system
I went and installed ripgrep as suggested and <leader>ps
now works for me. Just thought I'll open an issue here in case more people run into the same thing, maybe it's worth a comment or something. Cheers!
Recommended approach to add configuration for linters?
Where is it recommended to store configuration for linters please?
For example, I've installed the Golang linter (golangci-lint
) using Mason and need to customise how it works and how to invoke it. Is the recommended place to create and customise settings for it in the after/plugin/
folder?
Strange behaviour go to definition shortcut when ~/.config/nvim is symlink
Hi i have strange behaviour for "gd" shortcut but only when ~/.config/nvim directory is symlink to nvim -> /home/mfederowicz/git-repos/vim-primeagen
when ~/.config/nvim is standalone directory then gd shortcut works well - jumps to selected definition
of course the problem also exist when I create configuration step by step presented in video : https://www.youtube.com/watch?v=w7i4amO_zaE
any suggetions/ideas how to fix this, of course at least i made bash script to copy dir from repo dir to final location :)
Getting issue while installing the packer files
Error detected while processing :source (no file): E5108: Error executing lua [string ":source (no file)"]:6: module 'packer' not found: no field package.preload['packer'] no file './packer.lua' no file '/data/data/com.termux/files/usr/share/luajit-2.1.0-beta3/packer.l ua' no file '/usr/local/share/lua/5.1/packer.lua' no file '/usr/local/share/lua/5.1/packer/init.lua' no file '/data/data/com.termux/files/usr/share/lua/5.1/packer.lua' no file '/data/data/com.termux/files/usr/share/lua/5.1/packer/init.lua' no file './packer.so' no file '/usr/local/lib/lua/5.1/packer.so' no file '/data/data/com.termux/files/usr/lib/lua/5.1/packer.so' no file '/usr/local/lib/lua/5.1/loadall.so' stack traceback: [C]: in function 'require' [string ":source (no file)"]:6: in main chunk
Lua snips not working after complete reinstall
Lua snip are not working anymore, just reinstalled neovim and noticed the snippets are not showing up.
To replicate this you can remove ~/.local/share/nvim and ~/.cache/nvim
(This will completely remove packages and stuff )
Lsp.stop stop tsserver end eslint
Hello everyone,
I have followed the video "0 to LSP : Neovim RC From Scratch" to setup my rust light saber (Thank you so much ThePrimeagen).
However, the config is causing tsserver and eslint to stop. If anyone have the isssue with tsserver and eslint got detached everytime you navigate with telescope or open new buffer, please comment those line. This is a temporary fix because I am not experience with neovim config. If you have a proper solution, please point out for me
if client.name == "eslint" then
vim.cmd.LspStop('eslint')
return
end
E471: Argument required on using :so
Summary
Hi, I'm a vim novice, so I'm not sure why this error comes up and I haven't found a comprehensive solution on the internet so far. Upon creating the plugins remap.lua
, using :so
to source the file returns E471: Argument required
.
Issue
Command used: :so
Location: File remap.lua
Any fix would be greatly appreciated.
:)
Enable inlay hints
That's something I appreaciate a lot in Rust, but I can't find how to enable them with lsp-zero
.
I used to use rust-tools
for that, but I'm not sure it's a good idea to combine that and lsp-zero
.
[help] How do I select completion from lsp ?
Ik, I'm dumb, no need to say that again.
I'm from vscode, I've no idea how to use vim, I manage to set this up, lsp works fine, but cant i select from autocompletion ? pressing enter
is creating a new line.., I'm from shit world (vscode), how does this work in chad world ?
Don' have auto import function in react
The default lsp and nvim cmp config from the link below have auto import function and path
https://github.com/neovim/nvim-lspconfig
Undefined Global Vim
lsp.configure('lua-language-server', {
settings = {
Lua = {
diagnostics = {
globals = { 'vim' }
}
}
}
}) , even after adding this vim is not defined as global
Completion with npm modules
Hello,
I've been racking my brain on this one for a few days. Can't seem to find any reference out there on this problem. I have a TS project with lodash installed. Following the 0 to LSP tut I was able to make some good adjustments to my current neovim setup! Completion is not working for modules I've installed via NPM. I am running macOS 12.2 with neovim v0.8.3 via brew and have the same config as lsp.lua. :LspInfo
seems to show the tsserver working just fine, note eslint must not be configured properly. I assume I'm missing a dependency?
fresh log file:
lsp.log
E5108: Error executing lua
I got error:
E5108: Error executing lua [string ":source (no file)"]:2: attempt to index field 'cmd' (a function value) stack traceback: [string ":source (no file)"]:2: in main chunk
after adding vim.keymap.set("n", "pv", vim.cmd.Ex) and doing :so
I'm using windows 10.
Packer not required
Shouldn't you require also the packer.lua
file here?
init.lua/lua/theprimeagen/init.lua
Line 2 in 249f3b1
all the simple ways of "keep pasting" (without cursor movement, word replace, strcpy, strcpy + truncate until EOL)
-- my_utils.lua
local M = {}
-- starting at cursor: overwrite text to right with register content
-- keep_suffix defines, if remaining line suffix should be kept
M.pasteOverwriteFromRegister = function(register, keep_suffix)
local line_content = vim.api.nvim_get_current_line()
local reg_content = vim.fn.getreg(register)
local tup_rowcol = vim.api.nvim_win_get_cursor(0) -- [1],[2] = y,x = row,col
local col_nr = tup_rowcol[2] -- 0 indexed => use +1
local col = col_nr + 1
local reg_len = string.len(reg_content)
local line_len = string.len(line_content)
local prefix = string.sub(line_content, 1, col-1) -- until before cursor
local suffix = string.sub(line_content, col+reg_len, line_len) -- starting at cursor
if keep_suffix == true then
vim.api.nvim_set_current_line(prefix .. reg_content .. suffix)
else
vim.api.nvim_set_current_line(prefix .. reg_content)
end
end
return M
-- my_keymaps.lua
-- suggested keymapings
local opts = { noremap = true, silent = true }
local map = vim.api.nvim_set_keymap
map('n', '<leader>p', [[<cmd> lua require("my_utils").pasteOverwriteFromRegister('+', true)<CR>]], opts)
map('n', '<leader>P', [[<cmd> lua require("my_utils").pasteOverwriteFromRegister('+', false)<CR>]], opts) -- replacement for broken [[v$P]]
map('n', '<C-p>', 'p`[', opts) -- ] paste without cursor movement
map('n', ',', [[viwP]], opts) -- keep pasting over the same thing for current word, simple instead of broken for EOL [["_diwP]]
Opinions?
Default terminal does not work with rose-pine
Use my dicts
Some people like to say "grab life by the horns", but I like to say "grab life by the dict". With this in mind, I would greatly appreciate some consideration of the utility of dicts, both big and small, and how they can improve the quality of any software. If I had my way, I would put my dicts everywhere proper, for all to see, because I value their concise and performant nature when used correctly. appreciate your time and consideration of my dicts.
Thanks, and dicts for all.
How are we jumping around in snippets?
Hello. Thank you for this repo. As a result, I have some really sweet bindings set for the purpose of handling completion. However, I've been unable to setup my Tab and S-Tab bindings so they can be used exclusively to jump around between snippet placeholders. Adding the contents of my after/plugin/lsp.lua here in the hopes someone might shed some light. Thanks in advance.
local lsp = require("lsp-zero")
lsp.preset("recommended")
lsp.ensure_installed({
'pyright',
'bashls',
'yamlls',
'sumneko_lua',
})
lsp.nvim_workspace()
local cmp = require('cmp')
local luasnip = require("luasnip")
local cmp_select = {behavior = cmp.SelectBehavior.Select}
local cmp_mappings = lsp.defaults.cmp_mappings({
['<C-k>'] = cmp.mapping.select_prev_item(cmp_select),
['<C-j>'] = cmp.mapping.select_next_item(cmp_select),
['<C-y>'] = cmp.config.disable,
['<C-e>'] = cmp.config.disable,
-- toggle completion
['<C-l>'] = cmp.mapping(function()
if cmp.visible() then
cmp.abort()
else
cmp.complete()
end
end),
-- navigate snippet placeholders
['<Tab>'] = cmp.mapping(function(fallback)
if luasnip.jumpable(1) then
luasnip.jump(1)
else
fallback()
end
end, { "i", "s" }),
['<S-Tab>'] = cmp.mapping(function(fallback)
if luasnip.jumpable(-1) then
luasnip.jump(-1)
else
fallback()
end
end, { "i", "s" }),
})
lsp.setup_nvim_cmp({
mapping = cmp_mappings
})
lsp.set_preferences({
suggest_lsp_servers = false,
sign_icons = {
error = 'E',
warn = 'W',
hint = 'H',
info = 'I'
}
})
lsp.on_attach(function(client, bufnr)
local opts = {buffer = bufnr, remap = false, desc = "LSP mapping" }
-- LSP actions
vim.keymap.set("n", "K", vim.lsp.buf.hover, opts)
vim.keymap.set("n", "gd", vim.lsp.buf.definition, opts)
vim.keymap.set("n", "gD", vim.lsp.buf.declaration, opts)
vim.keymap.set("n", "<leader>la", vim.lsp.buf.code_action, opts)
vim.keymap.set("n", "<leader>lr", vim.lsp.buf.references, opts)
vim.keymap.set("n", "<leader>lR", vim.lsp.buf.rename, opts)
vim.keymap.set("n", "<C-h>", vim.lsp.buf.signature_help, opts)
vim.keymap.set("i", "<C-h>", vim.lsp.buf.signature_help, opts)
-- Diagnostics
vim.keymap.set("n", "[d", vim.diagnostic.goto_prev, opts)
vim.keymap.set("n", "]d", vim.diagnostic.goto_next, opts)
vim.keymap.set("n", "gl", vim.diagnostic.open_float, opts)
end)
lsp.setup()
vim.diagnostic.config({
virtual_text = false
})
Should lua require('packer_<config...>')
Guessing.
using packer.lua for the packer config file doesn't result in running packer. I renamed packer.lua to packer_config.lua and import from the bottom level init.lua.
What theme is this?
after plugins not loading
so I cloned the repo into ~/.config/nvim and tried to open nvim
but got this error:
Error detected while processing /home/slikedollar/.config/nvim/after/plugin/colors.lua:
E5113: Error while calling lua chunk: /home/slikedollar/.config/nvim/after/plugin/colors.lua:1: module 'rose-pine' not found:
no field package.preload['rose-pine']
no file './rose-pine.lua'
no file '/usr/share/luajit-2.1.0-beta3/roseError detected while processing /home/slikedollar/.config/nvim/after/plugin/colors.lua:
E5113: Error while calling lua chunk: /home/slikedollar/.config/nvim/after/plugin/colors.lua:1: module 'rose-pine' not found:
no field package.preload['rose-pine']
no file './rose-pine.lua'
no file '/usr/share/luajit-2.1.0-beta3/rose-pine.lua'
no file '/usr/local/share/lua/5.1/rose-pine.lua'
no file '/usr/local/share/lua/5.1/rose-pine/init.lua'
no file '/usr/share/lua/5.1/rose-pine.lua'
no file '/usr/share/lua/5.1/rose-pine/init.lua'
no file '/home/mpaulson/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/rose-pine.lua'
no file '/home/mpaulson/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/rose-pine/init.lua'
no file '/home/mpaulson/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/rose-pine.lua'
no file '/home/mpaulson/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/rose-pine/init.lua'
no file './rose-pine.so'
no file '/usr/local/lib/lua/5.1/rose-pine.so'
no file '/usr/lib/x86_64-linux-gnu/lua/5.1/rose-pine.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
no file '/home/mpaulson/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/rose-pine.so'
stack traceback:
[C]: in function 'require'
/home/slikedollar/.config/nvim/after/plugin/colors.lua:1: in main chunk-pine.lua'
no file '/usr/local/share/lua/5.1/rose-pine.lua'
no file '/usr/local/share/lua/5.1/rose-pine/init.lua'
no file '/usr/share/lua/5.1/rose-pine.lua'
no file '/usr/share/lua/5.1/rose-pine/init.lua'
no file '/home/mpaulson/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/rose-pine.lua'
no file '/home/mpaulson/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/rose-pine/init.lua'
no file '/home/mpaulson/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/rose-pine.lua'
no file '/home/mpaulson/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/rose-pine/init.lua'
no file './rose-pine.so'
no file '/usr/local/lib/lua/5.1/rose-pine.so'
no file '/usr/lib/x86_64-linux-gnu/lua/5.1/rose-pine.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
no file '/home/mpaulson/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/rose-pine.so'
stack traceback:
[C]: in function 'require'
/home/slikedollar/.config/nvim/after/plugin/colors.lua:1: in main chunk
i copied only one plugin output but its actually happens with all plugins in that directory. Any ideas of what can cause an issue?
indexing vim.cmd requires neovim version greater than 0.8.0
The version of Neovim provided by Debian and Ubuntu is currently 0.7.2, which may not fully support the use of the "vim.cmd." notation. Perhaps this is worth noting for those guys who want to try your vimrc setup.
Disable LSP while in a comment
Can anyone point me in the right direction on which setting needs to be set/which plugin needs to be looked at for this?
Weird background with rose-pine
I followed the youtube tutor and also tried to simply clone this repo but results are the same:
I cannot seem to figure out why this is happening...
Please anyone...
@raz-cohen
plugins in after is not load
`vim.opt.guicursor` seems to reset everything and does not make the cursor block-shaped + possible solution + weird behavior
Wasn't quite sure where else to mention this but,
vim.opt.guicursor = ""
did not enable the block-shaped cusor for me initially.
but vim.opt.guicursor = "a:block"
worked.
weirdly, after that, when I go back to ""
empty string, the issue no longer exists.
Duplicate `vim.g.mapleader = " "`
The command vim.g.mapleader = " "
is present in both /lua/theprimeagen/remap.lua
and /lua/theprimeagen/set.lua
Erorr while sourcing colors.lua
Fail to 'source' packer.lua
I'm unable to :so
packer.lua. Despite reopening terminal and vim - still getting:
I'm on macOS 12.6
with Intel. I've tried to reinstall nvim in different versions (also 0.9 dev) but it just didn't work. The issue appears as soon as I add the return to the packer.lua
. If I remove it - it works fine - but then I can't use the packer...
Exactly the same config file works fine on Mac with M1 🤔
LuaJIT is the same on both machines:
LuaJIT 2.1.0-beta3
Not sure what I'm doing wrong?
Errors when trying to install treesitter
How to reproduce
I just followed the video, everything was working fine until I tried to install treesitter
My packer.lua is the following:
vim.cmd [[packadd packer.nvim]]
return require('packer').startup(function(use)
use 'wbthomason/packer.nvim'
use {
'nvim-telescope/telescope.nvim', tag = '0.1.0',
requires = { {'nvim-lua/plenary.nvim'} }
}
use({
'rose-pine/neovim',
as = 'rose-pine',
config = function()
vim.cmd('colorscheme rose-pine')
end
})
use('nvim-treesitter/nvim-treesitter', {run = ':TSUpdate'})
end)
Then I run PackerSync and treesitter is installed as expected. When I open neovim again, it just give me a lot of errors
(By the way, 'gabri' is my user)
nvim --version
output:
NVIM v0.9.0-dev-522+g174335923
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
Compilation: /usr/bin/gcc-10 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DNVIM_TS_HAS_SET_MATCH_LIMIT -DNVIM_TS_HAS_SET_ALLOCATOR -O2 -g -Og -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wdouble-promotion -Wmissing-noreturn -Wmissing-format-attribute -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fno-common -fdiagnostics-color=always -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -DMIN_LOG_LEVEL=3 -I/home/runner/work/neovim/neovim/build/cmake.config -I/home/runner/work/neovim/neovim/src -I/home/runner/work/neovim/neovim/.deps/usr/include -I/usr/include -I/home/runner/work/neovim/neovim/build/src/nvim/auto -I/home/runner/work/neovim/neovim/build/include
Compiled by runner@fv-az443-679
Features: +acl +iconv +tui
See ":help feature-compile"
system vimrc file: "$VIM/sysinit.vim"
fall-back for $VIM: "/share/nvim"
Run :checkhealth for more info
My treesitter.lua:
require'nvim-treesitter.configs'.setup {
ensure_installed = {"typescript"},
sync_install = false,
auto_install = true,
highlight = {
enable = true,
additional_vim_regex_highlighting = false,
},
}
Am I missing something? Should I use another version of neovim?
Getting past errors to do PackerSync?
How to bootstrap this config?
E5113: Error while calling lua chunk: /home/waifu3000/.config/nvim/after/plugin/colo
rs.lua:4: Vim:E185: Cannot find color scheme 'rose-pine'
Add to README to edit :e lua/theprimeagen/packer.lua
and do :so
then :PackerSync
is available.
<leader>ps not working with ripgrep
hey I installed ripgrep as said in the readme but <leader>ps
still doesn't work.
Where are you importing your packer packages?
Where are you importing your packer.lua
module.
I can see this in your packer.lua
-- This file can be loaded by calling `lua require('plugins')` from your init.vim
In your ./lua/theprimeagen/init.lua
, you're only importing
require("theprimeagen.set")
require("theprimeagen.remap")
Will this work? If this will work, then why does it work? I.e. how can you have packer packages and not import it and yet you can PackerSync
. I can't sleep thinkin about this.
:lua ColorMyPencils() not working
I have Primes dotfiles and rose pine works but the background isn't transparent only way to sort it is going into the colors.lua and :so
Where to configure plugins?
More of a question than an issue. When configuring plugins, packer has the config
option which I have been using to set up plugins. Neovim-from-scratch directly requires the configuration files. What are the advantages of using the after
directory if any? I couldn't find a good discussion anywhere else.
Thanks for the great stuff!
Wrong number arguments issue
init.lua/after/plugin/fugitive.lua
Line 22 in a184d58
It seems that the right way is:
vim.cmd.Git("pull --rebase")
But maybe I miss something :) thanks a lot for your sharing 👍
[help] Error opening any file
When open a file, this error appears in neovim:
Spawning language server with cmd: lua-language-server failed. The language server is either not installed, missing from PATH, or not executable. Press ENTER or type command to continue
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.