Code Monkey home page Code Monkey logo

init.lua's Introduction

ThePrimeagen's init.lua

Prerequisite: install ripgrep.

The full video of me setting up this repo

For anyone that is interested in my vimrc, i will have a commit log below documenting each one of my commits (easy to C-f the change you want to know about though i would just suggest git log -S).

Change Log

  • 33eee9ad initial commits
  • cb210006 netrw, autogroups for yank highlighting, and auto remove whitespace
  • c8c0bf4a zenmode. i really like this plugin
  • 81c770d2 copilot testing
  • 4a96e645 fugitive mappings for push and pull
  • a3bad06a disabled eslint. driving me crazy

init.lua's People

Contributors

alitokur avatar demarcot avatar georgeanderson avatar hendriknielaender avatar igorgue avatar luizcorreia avatar og-mrk avatar paulfrische avatar sc4ramouche avatar theprimeagen avatar vgadzh avatar vonheikemen avatar yochem avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

init.lua's Issues

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.

image


Issue

Command used: :so
Location: File remap.lua

Any fix would be greatly appreciated.
:)

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.

Erorr while sourcing colors.lua

When I try to source colors.lua file it says:

Screenshot from 2023-06-15 13-52-16

I copied the exact content from colors.lua file in after/plugin directory.

Thanks in advance for your help.

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?

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]]
  • In packer.lua : vim.cmd.colorscheme("tokyonight")
    • Resolved by changing to vim.cmd [[colorscheme tokyonight]]
  • In remap.lua : vim.cmd.Ex
    • Resolved by changing to ":Ex<CR>"
  • 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.

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

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.

Default terminal does not work with rose-pine

Can someone reccommend what I need to put into my .vimrc file inorder for this to work? currently my rose-pine terminal looks like this. which is nothing short of utter garbage.

Screen Shot 2022-12-31 at 10 16 54 PM

running cat ~/.vimrc results in No such file or directory which i feel like might be a problem.

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.

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.

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 )

Weird background with rose-pine

I followed the youtube tutor and also tried to simply clone this repo but results are the same:
nvim โ€” nvim   โ–ธ node โ€” 109ร—31 2023-01-19 17-13-13

I cannot seem to figure out why this is happening...
nvim โ€” nvim   โ–ธ lua-language-server โ€” 109ร—31 2023-01-19 17-14-29

Please anyone...
@raz-cohen

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!

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.

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")

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?

[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

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?

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.

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
image
image

(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?

plugins in after is not load

all my plugins in after is not load when I start neovim, it used to work fine when im on Window 11, I am new to Linux and stuff.
Screenshot from 2023-05-09 00-34-47

`<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!

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"

[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 ?

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

vim-go-definition

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 :)

: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

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?

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.

Fail to 'source' packer.lua

I'm unable to :so packer.lua. Despite reopening terminal and vim - still getting:
image

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?

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!

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
})

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?

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.

comparison

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.

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' }
            }
        }
    }
})

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

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?

Screen Shot 2023-02-10 at 2 12 18 PM

Screen Shot 2023-02-10 at 2 16 46 PM

fresh log file:
lsp.log

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?

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

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.