GithubHelp home page GithubHelp logo

ecosse3 / nvim Goto Github PK

View Code? Open in Web Editor NEW
1.1K 27.0 106.0 9.93 MB

A non-minimal Neovim config built to work most efficiently with Frontend Development

License: GNU General Public License v3.0

Lua 96.65% Shell 2.97% Scheme 0.07% Vim Script 0.31%
neovim vim dotfiles frontend nvim reactjs

nvim's Introduction

Ecovim: Frontend Neovim Config

Last commit Stars License Neovim Version

A non-minimal Neovim config built to work most efficiently with Frontend Development.

Features

  • Configured for TypeScript Development (React.js, Next.js, Vue.js, Angular, Node.js etc.)
  • Great default theme: Tokyonight
  • Lazy loaded via lazy.nvim
  • Highly performant (90ms load time)
  • Extendable LSP configuration via mason.nvim
  • Support for 🤖 AI: ChatGPT, GitHub Copilot, Codeium and Tabnine
  • Support for TailwindCSS with highlighted colors
  • JSON autocompletion for most popular Frontend configs
  • NPM packages autocompletion in package.json
  • Internal Jest testing and Coverage support
  • Debugging with nvim-dap (works with React.js & React Native)
  • Automatic Treesitter-based folding with imports folded by default
  • Current code context via nvim-navic
  • Beautiful and functional custom statusline built with galaxyline.nvim
  • Git management with Lazygit, custom telescope commits view with git-delta, gitsigns & diffview, custom git blame

And of course usage of telescope, nvim-tree, barbar, cmp, treesitter, blankline & more!

Screenshots

Dashboard

Dashboard

Overview

Neovim

More screenshots

Some of screenshots can be old

TailwindCSS with nvim-cmp

TailwindCSS

Which Key Menu

WhichKey

Lazygit

Lazygit

Telescope

Telescope

Git Commits w/ Telescope

Commits

Git Side Blame

Side Blame

Installation

Just clone GitHub repo into ~/.config/nvim.

Prerequisities

  • Make sure you have installed the latest version of Neovim v0.9.0+ (nightly is preferred).
  • Have wget, curl, unzip, git, make, pip, python, npm, node, luarocks, fd, ripgrep and cargo installed on your system. You can check if you are missing anything with :checkhealth command.
  • Have any nerd font installed. Fira Code has been used in screenshots. You can download it from nerdfonts.com.

After install configuration:

  1. Selected treesitter Languages are installed by default. To check it run :TSInstallInfo. Make sure to run :TSInstall <lang> for specific language you want to install.
  2. LSP servers are enabled by default. You can check installed LSP servers by :Mason command.

Configuration

To change EcoVim related config use the config/EcoVim.lua file.

To change vim settings use the config/options.lua file.

To change plugin related settings use the specific plugins/[name].lua file. Some of the plugin config can be set up during plugin installation in config/plugins.lua file, where you can add new plugins.

Keybindings

Currently I have no idea how to write for you my whole workflow of using Ecovim config in React.js projects I am working on,
but I can write you the most useful custom key bindings by the frequency I use them.

Space (SPC) is my Leader key.

File Explorer

File Explorer

Key Bindings Description
<C - e> Open File Explorer
Backspace Back to file explorer (in editor normal mode)
g? Open commands menu
a Create new file/directory
x Cut
c Copy
y Copy name
r Rename
I Toggle git ignore files
Searching

Searching

Key Bindings Description
<C - p> Telescope git files
<S - p> Telescope live grep
s Enables lightspeed
SPC s d Search dotfiles
SPC s h Search file history
SPC s s Search history
Working with LSP

Working with LSP:

Key Bindings Description
<C - Space> or SPC c a Code action
<S - K> Show documentation under cursor
gd Go to definition
gr Go to references
]g Go to next diagnostic
[g Go to prev diagnostic
SPC c f Format document (usually ESLint/Prettier)
SPC c r Rename
SPC c q Quick fix - when I exactly know if it will fix it
SPC c d Local diagnostics list
SPC c o Organize imports
Working with Git

Working with Git:

Key Bindings Description
SPC g g Lazygit - for committing and branch change
SPC g s Telescope status - when I want to change/search file I am working on with git changes
]c Go to next change hunk
[c Go to prev change hunk
SPC g d Advanced powerful diff view with many filters for debugging code, checking previous changes etc.
SPC g m View hunk diff of a line under cursor
SPC g h r Reset changed hunk under cursor - I like to check quickly what I have changed in that line and then just type 'u' to go back
SPC g h s Stage hunk under cursor - Sometimes it's faster than selecting lines in Lazygit, so I can stage specific lines and then just do a commit
SPC g l c Quick check of previous commit in current buffer, inside to switch preview
SPC g w c Creates a new worktree. Recommended directory is ../path
SPC g w w Switches to a worktree. removes worktree.
Working with Project

Working with Project:

Key Bindings Description
<C - e> Toggles nvim-tree file explorer
SPC p w Find word under cursor in project - very useful to find where component is used. Just use binding and type '<'. There is a lot of alternatives like LSP references but I like it with telescope and to not find only references but whole text under cursor.
SPC p f Find file under cursor in project - it finds files in project which contains text under cursor. Useful when you name directories by component name in React and wants to go quickly to file. 'gd' is better but in some projects without TS or with mixed JS/TS it cannot work properly
SPC p t Finds TODOs/NOTES in project
SPC p l Switch between projects
SPC p s Save session to load it later from Dashboard
Commenting

Commenting

Key Bindings Description
gcc Create/remove comment
gc (visual) Create/remove comment
gcO Create comment line before
gco Create comment line after
Table Mode / Alignment

Table Mode / Alignment

Key Bindings Description
ga (visual) Aligns selection based on separator (comma, semi-colon, colon etc.)
SPC t m Enables Table Mode. Do it in markdown file with some table and you will see magic
SPC t i C (Only when Table Mode Enabled) Insert column before
SPC t i c (Only when Table Mode Enabled) Insert column after
SPC t d c (Only when Table Mode Enabled) Delete column
SPC t d r (Only when Table Mode Enabled) Delete row
SPC t s (Only when Table Mode Enabled) Sort table alphabetically
Other

Other VERY useful bindings

Key Bindings Description
<S - q> Smartly closes current buffer without breaking UI
<C - a> It is not only increases number, but switches between true/false/const/let/function/arrow function/increment dates etc.
<C - n> Finds next occurrence (like *) of word and puts multi-cursor there. Then you can go to Insert mode, Append, Change or Delete. Read more
<C - o> Jumps to previous cursor in jumplist. I use it very often.
v Smartly selects next subjects of current treesitter context
s Standalone jump to any word with folke/flash.nvim
ciq Change inside ANY quotes (`` or '' or "" etc.) with mini.ai
cib Change inside ANY brackets ({} or [] or () etc.) with mini.ai
za Toggle folds. By LSP and nvim-ufo they are automatically added to supported files in smart way.
zM Close all folds
zR Open all folds
zr Open all folds except imports/comments
gJ Smartly joins lines based on treesitter
gS Smartly splits lines based on treesitter. I do if VERY often when I want to put import element to new lines (e.g. import { A, B, C, D, E } from ...)
< F12 > Opens/closes terminal
~ Switch function arguments smartly

Check out the which-key menu and keymappings.lua for most used maps.

Performance

Measured on M1.

Ecovim started in 91.13ms

Future Todo

Description Progress
Support more LSPs (not only frontend? - already possible via Mason) 50%
Better configuration of additional LSPs (already possible via Mason) 50%
Project Logo Planned
Auto resize for more consistent UI behavior Planned
Reload in-time support Planned
Done
Description Progress
lazy.nvim instead of packer 100%
Better support for null-ls and local formatting 100%
Better support to project word refactor 100%
Support for nvim-dap debugger for React 100%
Support ESLint & Prettier in Native LSP 100%
Replace coc-explorer with nvim-tree.lua 100%
Replace coc.nvim with Native LSP 100%
Change fzf.nvim to telescope.nvim 100%
Update statusline to support LSP diagnostics 100%
Rewrite most config to lua 100%
Support TailwindCSS with colors 100%
Provide current screenshots 100%
Create shell installer for Linux & MacOS 100%

nvim's People

Contributors

akiletour avatar badhan-abhishek avatar ding-fan avatar dmmulroy avatar ecosse3 avatar h4ckint0sh avatar killerart avatar snjypl avatar techapostle 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

nvim's Issues

Turn Off Autocomplete First Item Selection on Enter Key Press

I'm running into an issue where whatever plugin is being used to offer autocompletion suggestions is also automatically selecting the first one if I press the enter key, which is inserting a lot of extra text into my normal editing workflow that I then have to go back and delete...

Is there a way to turn this off?

image

If I press enter it inserts the extra blah entires instead of breaking onto the next line... I realize some people may want the "select first suggestion on enter" functionality, but I do not because in a lot of cases it's causing a bunch of extra text to be entered that I don't want there.

How do you change size of devicons?

Absolutely love this repo! One thing I noticed is how large the icons are in your tree and tabs. Have you done anything to manipulate this? React logos are quite small for me. Thanks!

Error detected while processing function UltiSnips#TrackChange:

When I launch nvim and start editing I face the below error -

Error detected while processing function UltiSnips#TrackChange:
line    1:
E319: No "python3" provider found. Run ":checkhealth provider"
Press ENTER or type command to continue

I've python3 in my PATH.

Here is the link to my error screenshot.

More Details -

OS Details -

$lsb_release -a
LSB Version:    1.4
Distributor ID: EndeavourOS
Description:    EndeavourOS Linux
Release:        rolling
Codename:       rolling

Neovim details -

c10 nvim -version     
NVIM v0.6.0
Build type: Release
LuaJIT 2.0.5
Compiled by builduser

Features: +acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/share/nvim"

Run :checkhealth for more info

git log - 214e264

E492: Not an editor command: PackerSync

So I tried multiple fixes, and none of them worked. It is thrown when I use the command bash <(curl -s https://raw.githubusercontent.com/ecosse3/nvim/master/.install/run.sh). I know its probably not a bugg or smth, but after searching for the right solution for hrs, I dont know anymore haha

Also, I am very sorry abt my bad english, if u cant understand smth, just tell me :)

[BUG] TypeScript Format Document

When running a format document command, that is gg=G, it completely blows up the formatting TypeScript files. I use this command pretty often to make sure formatting is "good" with JavaScript before committing code, but it's basically unusable in any project that uses TypeScript.

I'm not sure if this is a bug with neovim, the tsserver language server, or another plugin that is in-use within Ecovim, but it renders document formatting unusable in the context of anything-TypeScript.

Here's an example video of me formatting one of the files coming out of a remix framework base install using the indie-stack template (https://remix.run/docs/en/v1/tutorials/blog#creating-the-project)

ts-bad-formatting.mp4

tmux integration

Hi Łukasz, by far this is the best and most well-thought dotfiles I've ever used, great job! Do you think it is it possible to integrate tmux into this? I'd love to have the status bar at least.

nvim 0.8 (nightly) install issue - winbar

Hello,

I've tried both master + dev branches, but i'm getting the same error when running the installer script.

Error detected while processing BufWinEnter Autocommands for "*":
Error executing lua callback: /Users/alan/.config/nvim/lua/autocmds.lua:40: attempt to index a boolean value
stack traceback:
        /Users/alan/.config/nvim/lua/autocmds.lua:40: in function </Users/alan/.config/nvim/lua/autocmds.lua:18>
Press ENTER or type command to continue

Post install, nvim opens and packer fetches everything ok it seems. Following plugin installation, nvim opens with the following error.

Error detected while processing BufWinEnter Autocommands for "*":
Error executing lua callback: /Users/alan/.config/nvim/lua/autocmds.lua:40: attempt to index a boolean value
stack traceback:
        /Users/alan/.config/nvim/lua/autocmds.lua:40: in function </Users/alan/.config/nvim/lua/autocmds.lua:18>
E5108: Error executing lua ...m/site/pack/packer/start/packer.nvim/lua/packer/load.lua:165: Vim(echomsg):E114: Missing quote: "
Error in packer_compiled: ...m/site/pack/packer/start/packer.nvim/lua/packer/load.lua:110: Vim(append):Error executing lua call
back: /Users/alan/.config/nvim/lua/autocmds.lua:40: attempt to index a boolean value
stack traceback:
        [C]: in function 'cmd'
        ...m/site/pack/packer/start/packer.nvim/lua/packer/load.lua:165: in function <...m/site/pack/packer/start/packer.nvim/l
ua/packer/load.lua:161>
        [string ":lua"]:1: in main chunk
Press ENTER or type command to continue

Sorry I don't feel capable of debugging this, as i'm not sure if the lua api has regressed somewhere, etc. This is my first steps into any of the new lua features in nvim.

Thanks!

Need support for few more LSP

Hi,

Thanks for the amazing neovim config. Could you please add support for below languages -

  1. java - nvim-jdtls
  2. scala - nvim-scala
  3. clojure - there is a sample config available in this repo

I don't know lua very much if you could add these 3 languages support it would be great

Install Script not working

I wanted to install it, but the installation script freezes when installing plugins, and then it is half installed, so I can't use it correctly and I have to remove all the configuration manually.
image
image
Am I doing something wrong?

Fresh install error

CleanShot 2022-06-01 at 10 35 59@2x

Hello - I am trying to install a fresh install of this setup and I am getting this error - any idea?

Using nvim-gps plugin

As far as the Smitesh/nvim-gps that is part of this awesome config, is there a way to make the actual function/method name (or class name or variable name or whatever) show up in the galaxyline status bar.

By default it looks like the plugin displays the full path to the file (which is fantastic), the file type, and the file size. I heard that this plugin can actually display on a status bar the name of a method (in my case, JavaScript/React) that the cursor is inside of, in real time. I can't seem to get that to work.

Is there something I need to enable in the custom plugin settings or something like that? Thanks for any help or info!

error during install

i've tried to install but get this error

Cloning Ecovim configuration... 
Cloning into '/home/thiago/.config/nvim/ecovim'...
warning: Could not find remote branch install_script to clone.
fatal: Remote branch install_script not found in upstream origin
Failed to clone repository. Installation failed.

zenmode error executing lua

Fresh install, playing around in the dasboard and tried to enter zen mode

E5108: Error executing lua ...ite/pack/packer/opt/gitsigns.nvim/lua/gitsigns/async.lua:67: The coroutine failed with this message: ...e/pack/packer/opt/gitsigns.nvim/lua/gitsigns/manager.lua:420: attempt to index upvalue 'signs' (a nil value) stack traceback: ...e/pack/packer/opt/gitsigns.nvim/lua/gitsigns/manager.lua: in function 'reset_signs' ...e/pack/packer/opt/gitsigns.nvim/lua/gitsigns/actions.lua:1127: in function <...e/pack/packer/opt/gitsigns.nvim/lua/gitsigns/actions.lua:1126> stack traceback: [C]: in function 'error' ...ite/pack/packer/opt/gitsigns.nvim/lua/gitsigns/async.lua:67: in function 'step' ...ite/pack/packer/opt/gitsigns.nvim/lua/gitsigns/async.lua:83: in function 'execute' ...ite/pack/packer/opt/gitsigns.nvim/lua/gitsigns/async.lua:114: in function 'refresh' ...e/pack/packer/opt/gitsigns.nvim/lua/gitsigns/actions.lua:177: in function 'toggle_current_line_blame' /Users/mircea.dumitrescu/.config/nvim/lua/plugins/zen.lua:43: in function 'on_open' ...te/pack/packer/start/zen-mode.nvim/lua/zen-mode/view.lua:175: in function 'create' ...te/pack/packer/start/zen-mode.nvim/lua/zen-mode/view.lua:68: in function 'open' ...te/pack/packer/start/zen-mode.nvim/lua/zen-mode/view.lua:76: in function 'toggle' [string ":lua"]:1: in main chunk

Some Plugins Can't Install

Hi,
i want to try out your nvim configuration. But i got some errors. First error caused by "impatient" and i solved it by commenting first line in init.vim lua require('impatient'). (After the :PackerInstall command finished i added that line again)

The error that i couldn't solve is caused by plugins. Some plugin's couldn't install. I tried install them via :PackerInstall but that did not work.

2021-10-18_12-28_1
2021-10-18_12-28_2
2021-10-18_12-28

When i try to open neo vim after those errors:

2021-10-18_12-17

Launching nvim (ecovim) on a fresh Arch system throws the following errors:

Error detected while processing /home/kiand/.config/nvim/init.lua:
E5113: Error while calling lua chunk: /home/kiand/.config/nvim/lua/snippets/react.lua:1: module 'luasnip' not found:
no field package.preload['luasnip']
no file './luasnip.lua'
no file '/usr/share/luajit-2.1.0-beta3/luasnip.lua'
no file '/usr/local/share/lua/5.1/luasnip.lua'
no file '/usr/local/share/lua/5.1/luasnip/init.lua'
no file '/usr/share/lua/5.1/luasnip.lua'
no file '/usr/share/lua/5.1/luasnip/init.lua'
no file './luasnip.so'
no file '/usr/local/lib/lua/5.1/luasnip.so'
no file '/usr/lib/lua/5.1/luasnip.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
[C]: in function 'require'
/home/kiand/.config/nvim/lua/snippets/react.lua:1: in main chunk
[C]: in function 'require'
/home/kiand/.config/nvim/init.lua:16: in main chunk
Error detected while processing BufWinEnter Autocommands for "":
Error executing lua callback: vim/_meta.lua:0: Not a valid option name: winbar
stack traceback:
[C]: in function 'assert'
vim/_meta.lua: in function ''
vim/_meta.lua: in function '__newindex'
/home/kiand/.config/nvim/lua/autocmds.lua:43: in function </home/kiand/.config/nvim/lua/autocmds.lua:16>
E5108: Error executing lua ...m/site/pack/packer/start/packer.nvim/lua/packer/load.lua:165: Vim(echomsg):E114: Missing quote: "Error in packer_compiled: ...m/site/pack/packer/start/packer.nvim/lua/packer/loa
d.lua:110: Vim(append):Error executing lua callback: vim/_meta.lua:0: Not a valid option name: winbar
stack traceback:
[C]: in function 'cmd'
...m/site/pack/packer/start/packer.nvim/lua/packer/load.lua:165: in function <...m/site/pack/packer/start/packer.nvim/lua/packer/load.lua:161>
[string ":lua"]:1: in main chunk
Press ENTER or type command to continue
Error detected while processing CursorMoved Autocommands for "
":
Error executing lua callback: vim/_meta.lua:0: Not a valid option name: winbar
stack traceback:
[C]: in function 'assert'
vim/_meta.lua: in function ''
vim/_meta.lua: in function '__newindex'
/home/kiand/.config/nvim/lua/autocmds.lua:33: in function </home/kiand/.config/nvim/lua/autocmds.lua:16>

nvim_create_augroup error and keymap error (in git repositories)

Noticing a few issues: one with startup and using nvim_create_augroup and another when selecting files from nvim-tree - the issue with nvim-tree and selecting files appears to be specific to git repositories.

Not sure how you like bug/issue reports (if this is even a bug?) to be submitted, but I don't mind submitting a separate one if that's what you'd prefer... just let me know!

This happens immediately upon startup:

Error detected while processing /Users/my.user.dir/.config/nvim/init.lua:                                                                                    
E5113: Error while calling lua chunk: /Users/my.user.dir/.config/nvim/lua/autocmds.lua:1: attempt to call field 'nvim_create_augroup' (a nil value)          
stack traceback:                                                                                                                                              
        /Users/my.user.dir/.config/nvim/lua/autocmds.lua:1: in main chunk                                                                                    
        [C]: in function 'require'                                                                                                                            
        /Users/my.user.dir/.config/nvim/init.lua:7: in main chunk                                                                                            
Press ENTER or type command to continue   

And this happens when opening a file from a git repository using nvim-tree:

Error executing vim.schedule lua callback: ...ite/pack/packer/opt/gitsigns.nvim/lua/gitsigns/async.lua:68: The coroutine failed with this message: /Users/my.user.dir/.config/nvim/lua/plugi
ns/gitsigns.lua:49: attempt to index field 'keymap' (a nil value)
stack traceback:
        /Users/my.user.dir/.config/nvim/lua/plugins/gitsigns.lua: in function 'map'
        /Users/my.user.dir/.config/nvim/lua/plugins/gitsigns.lua:53: in function 'on_attach'
        ...nvim/site/pack/packer/opt/gitsigns.nvim/lua/gitsigns.lua:282: in function 'attach0'
        ...nvim/site/pack/packer/opt/gitsigns.nvim/lua/gitsigns.lua:344: in function 'attach'
        ...nvim/site/pack/packer/opt/gitsigns.nvim/lua/gitsigns.lua:567: in function <...nvim/site/pack/packer/opt/gitsigns.nvim/lua/gitsigns.lua:505>
stack traceback:
        [C]: in function 'error'
        ...ite/pack/packer/opt/gitsigns.nvim/lua/gitsigns/async.lua:68: in function <...ite/pack/packer/opt/gitsigns.nvim/lua/gitsigns/async.lua:63>
Press ENTER or type command to continue

Installation guide

Can you please write a 1-2 line guide on how to use this setup ? 🙏🏼

Opening the file explorer

I've re-installed Ecovim now, but whenever i want to open a file toogle the file explorer, the nvim-tree do a vertical split of the file that it's currently on in the file explorer. See the clip below.

Anyone else is having this issue?

Neovim.mp4

Error from nvim-treesitter when saving a file

When saving a file, there is an error/warning (not sure which) thrown that is caused by a deprecated function call from nvim-treesitter.
The error states:
nvim-treesitter.ts_utils.get_node_text is deprecated: use vim.treesitter.query.get_node_text

Module not found WSL

I have just tried installing the config in WSL 2 running Arch I get the following error:

Error detected while processing /home/pilchh/.config/nvim/init.lua:
E5113: Error while calling lua chunk: /home/pilchh/.config/nvim/init.lua:1: module 'impatient' not found:
        no field package.preload['impatient']
        no file './impatient.lua'
        no file '/usr/share/luajit-2.1.0-beta3/impatient.lua'
        no file '/usr/local/share/lua/5.1/impatient.lua'
        no file '/usr/local/share/lua/5.1/impatient/init.lua'
        no file '/usr/share/lua/5.1/impatient.lua'
        no file '/usr/share/lua/5.1/impatient/init.lua'
        no file './impatient.so'
        no file '/usr/local/lib/lua/5.1/impatient.so'
        no file '/usr/lib/lua/5.1/impatient.so'
        no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
        [C]: in function 'require'
        /home/pilchh/.config/nvim/init.lua:1: in main chunk
Press ENTER or type command to continue

I'm not sure if this is an issue with WSL 2 or something else entirely.

Different theme

Any chance to add NeoSolarized theme or brief instructions of how to add it?

How does this actually work on someone's local machine?

Hey, so this setup looks absolutely incredible!! I would love to start using this asap. I have recently uninstalled Neovim and SpaceVim in an effort to "start fresh" (I backed up all my older configs of course), and what I did was just clone down your repo to a random sandbox folder on my Mac, and then just moved the necessary files/folders (basically everything besides the screenshots folder and the README file, which obviously are not needed for install) into ~/.config/nvim. Is that not right?

I ask because even something as simple as just starting to try and do :PackerInstall when inside Neovim yields an error of

E492: Not an editor command: PackerInstall

Am I missing something? Am I doing something wrong, or should I not have moved the folders into the ~/.config/nvim directory? Any help you could provide would be tremendously appreciated, especially since there is no install guide or quick start guide or anything. In any case, awesome job on this setup!! I hope I get to experience it....

error on autocompletion because of cmp documentation deprecation

documentation = {...} was deprecated in favour of window = { documentation = ...}. Also I don think you need to state the window borders anymore in an object you can just do window = { documentation = cmp.config.window.bordered() } inside the cmp.lua config file. Sorry if I explained it badly.

Can't open lazygit

First i just want to say thank you for this project that you've made opensource! Because of you i started to use Neovim im my day to day workflow! 👍🏻

So my issue is that when a want to open LazyGit it just opens for like 0.5 seconds then immediately closes. I'm in a project that uses git. When i want to open LazyGit i press gg.

Usage of filetypes in LSP

Hello,

Thanks you for your amazing setup :) I love it !

I wanted to know how the LSP configuration files work.

For example on the HTML one, I would like to add filetypes but I don't know how to do it.

Should we do it in M.settings = {}?

Thanks a lot

Telescope hanging on grep

Hey.

I am getting huge memory spikes after running builtin.grep_string() or the picker rg.

  • Results in nvim completely hanging for about 2 minutes or so, before exiting telescope with error message:

  • error executing vim.schedule lua callback

  • buffer previewer expected lua number

  • Git files does not hang, or the other finders. I have tried the fzf-native plugin and the fzy-native plugin with no luck.

  • The grep string seems to only cause issues on particular searches.

  • if I grep 'hi' in my project, I get over 1000 matches, and I am able to navigate between the matches fine.

  • However if I search 'player' in my project, I get 500 matches, and telescope completely hangs the nvim client.

image
Seeing this odd memory spike behaviour after running grep.

Tried to replicate this on a minimal nvim init.lua with only Telescope installed, and saw that Telescope runs fine, so this is a matter of plugin conflict, or some other performance issue. I am running this on a pretty powerful 16Gb laptop.

typescript (tsx) format indentation not working

Hi,

Not sure this is related to nvim builds:
NVIM v0.8.0-dev+452-gb2ed439bd
Build type: Release
LuaJIT 2.1.0-beta3

cf nor vim.lsp.buf.format* works.
Only ggVG then = indents the file.

I have done nothing different or any customization

Error when opening neovim for the first time after the installation of ecovim

Errors executing /home/michele/.config/nvim/init.lua:
E5113: Error while calling lua chunk: /home/michele/.config/nvim/lua/packer_commands.lua:1: attempt to call field '
nvim_create_user_command' (a nil value)
stack traceback:
/home/michele/.config/nvim/lua/packer_commands.lua:1: in main chunk
[C]: in function 'require'
/home/michele/.config/nvim/init.lua:3: in main chunk
Error executing command line:
E492: Is not an editor command: PackerSync

Using impatient/mpack on a Mac M1

Hello @ecosse3

I'm using ecovim on Mac and I'm having a problem with impatient and mpack.

It is not possible to install mpack on Mac.

Is this extension mandatory? Is there an alternative ?

CleanShot 2022-02-15 at 00 48 37

If you have an idea, I'm interested

'TabNine' is not executable

After fiddling around with the config and reinstalling it multiple times, I got everything working apart from whenever I enter insert mode or use fzf, I get the following error. Any idea what is going on?

Error executing vim.schedule lua callback: Vim:E475: Invalid value for argument cmd: '/home/pilchh/.local/share/nvim/sit
e/pack/packer/opt/cmp-tabnine/binaries/4.4.8/x86_64-unknown-linux-musl/TabNine' is not executable
stack traceback:
        [C]: in function 'jobstart'
        ...e/pack/packer/opt/cmp-tabnine/lua/cmp_tabnine/source.lua:234: in function '_on_exit'
        ...e/pack/packer/opt/cmp-tabnine/lua/cmp_tabnine/source.lua:135: in function 'new'
        ...ite/pack/packer/opt/cmp-tabnine/lua/cmp_tabnine/init.lua:8: in function <...ite/pack/packer/opt/cmp-tabnine/l
ua/cmp_tabnine/init.lua:7>

Side note: Is it possible to make nvim tree have a transparent background?

Module nvim-lsp-installer not found

Hi, I love the look and functionality of this config but every time I launch nvim I get the following error. I've not tried fixing it myself as I don't want to break anything.

E5113: Error while calling lua chunk: /home/pilchh/.config/nvim/lua/lsp/setup.lua:4: module 'nvim-lsp-installer' not found:
        no field package.preload['nvim-lsp-installer']
        no file './nvim-lsp-installer.lua'
        no file '/usr/share/luajit-2.1.0-beta3/nvim-lsp-installer.lua'
        no file '/usr/local/share/lua/5.1/nvim-lsp-installer.lua'
        no file '/usr/local/share/lua/5.1/nvim-lsp-installer/init.lua'
        no file '/usr/share/lua/5.1/nvim-lsp-installer.lua'
        no file '/usr/share/lua/5.1/nvim-lsp-installer/init.lua'
        no file './nvim-lsp-installer.so'
        no file '/usr/local/lib/lua/5.1/nvim-lsp-installer.so'
        no file '/usr/lib/lua/5.1/nvim-lsp-installer.so'
        no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
        [C]: in function 'require'
        /home/pilchh/.config/nvim/lua/lsp/setup.lua:4: in main chunk
        [C]: in function 'require'
        /home/pilchh/.config/nvim/init.lua:11: in main chunk
Press ENTER or type command to continue```

Attempting to format any file returns error

When calling on the format function or setting format on save for any given file, the following error is returned.

Format:
E5108: Error executing lua [string ":lua"]:1: attempt to call field 'format' (a nil value)
stack traceback:
[string ":lua"]:1: in main chunk

Format on save:
Highlight group 'Normal' has no background highlight
Please provide an RGB hex value or highlight group with a background value for 'background_colour' option.
This is the colour that will be used for 100% transparency.
require("notify").setup({
background_colour = "#000000",
})
Defaulting to #000000

and attempting to save with this option:
Error detected while processing BufWritePre Autocommands for "*":
Error executing lua callback: /home/kian/.config/nvim/lua/lsp/functions.lua:6: attempt to call field 'format' (a nil value)

How to disable openrgb

I have rgb keyboard but dont want to install opnenrgb server.

Is there any way to disable it?
If I remove openrgb plugin or change anything else status line does not seem to be working.

It shows when nvim is opening but on focus gain it goes away.

something wrong when loading the theme

environment: mac os terminal.app + zsh latest
image

I haven't changed anything in .config/neovim

Something was wrong with the installation but I don't think that's a problem, still, I took a screenshot of the installation process.

image

image

image

No active LSP with not-included LSP servers

Before the last 1 or 2 commits, I could edit c++, python, and java files with the LSP servers that I installed in addition to your included ones. I could do this without creating any additional config files of my own. Now though, I can't use clangd or pyright or any other LSP server that isn't included with your package. Any guidance on how I can enable/configure these LSP servers?

Everything broken and all errors relate to winbar

E5108: Error executing lua ...e/pack/packer/start/nvim-tree.lua/lua/nvim-tree/view.lua:83: Vim(append):Error execut
ing lua callback: vim/_meta.lua:0: Not a valid option name: winbar
stack traceback:
        [C]: in function 'assert'
        vim/_meta.lua: in function ''
        vim/_meta.lua: in function '__newindex'
        /Users/mugur/.config/nvim/lua/autocmds.lua:46: in function </Users/mugur/.config/nvim/lua/autocmds.lua:18>
        [C]: in function 'nvim_buf_set_name'
        ...e/pack/packer/start/nvim-tree.lua/lua/nvim-tree/view.lua:83: in function 'create_buffer'
        ...e/pack/packer/start/nvim-tree.lua/lua/nvim-tree/view.lua:180: in function 'open'
        ...te/pack/packer/start/nvim-tree.lua/lua/nvim-tree/lib.lua:78: in function 'open_view_and_draw'
        ...te/pack/packer/start/nvim-tree.lua/lua/nvim-tree/lib.lua:104: in function 'open'
        ...m/site/pack/packer/start/nvim-tree.lua/lua/nvim-tree.lua:52: in function 'open'
        ...m/site/pack/packer/start/nvim-tree.lua/lua/nvim-tree.lua:36: in function 'toggle'
        [string ":lua"]:1: in main chunk
stack traceback:
        [C]: in function 'nvim_buf_set_name'
        ...e/pack/packer/start/nvim-tree.lua/lua/nvim-tree/view.lua:83: in function 'create_buffer'
        ...e/pack/packer/start/nvim-tree.lua/lua/nvim-tree/view.lua:180: in function 'open'
        ...te/pack/packer/start/nvim-tree.lua/lua/nvim-tree/lib.lua:78: in function 'open_view_and_draw'
        ...te/pack/packer/start/nvim-tree.lua/lua/nvim-tree/lib.lua:104: in function 'open'
        ...m/site/pack/packer/start/nvim-tree.lua/lua/nvim-tree.lua:52: in function 'open'
        ...m/site/pack/packer/start/nvim-tree.lua/lua/nvim-tree.lua:36: in function 'toggle'
        [string ":lua"]:1: in main chunk

on nvim start :

lugins.dashboard' not found:^@^Ino field package.preload['plugins.dashboard']^@^Ino file './plugi
@^Ino file '/usr/local/Cellar/luajit-openresty/2.1-20220411/share/luajit-2.1.0-beta3/plugins/dash
ile '/usr/local/share/lua/5.1/plugins/dashboard.lua'^@^Ino file '/usr/local/share/lua/5.1/plugins
a'^@^Ino file '/usr/local/Cellar/luajit-openresty/2.1-20220411/share/lua/5.1/plugins/dashboard.lu
r/local/Cellar/luajit-openresty/2.1-20220411/share/lua/5.1/plugins/dashboard/init.lua'^@^Ino file
che/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/plugins/dashboard.lua'^@^Ino file '/Users/mug
ker_hererocks/2.1.0-beta3/share/lua/5.1/plugins/dashboard/init.lua'^@^Ino file '/Users/mugur/.cac
erocks/2.1.0-beta3/lib/luarocks/rocks-5.1/plugins/dashboard.lua'^@^Ino file '/Users/mugur/.cache/
cks/2.1.0-beta3/lib/luarocks/rocks-5.1/plugins/dashboard/init.lua'^@^Ino file './plugins/dashboar
/usr/local/lib/lua/5.1/plugins/dashboard.so'^@^Ino file '/usr/local/Cellar/luajit-openresty/2.1-2
1/plugins/dashboard.so'^@^Ino file '/usr/local/lib/lua/5.1/loadall.so'^@^Ino file '/Users/mugur/.
hererocks/2.1.0-beta3/lib/lua/5.1/plugins/dashboard.so'^@^Ino file './plugins.so'^@^Ino file '/us
1/plugins.so'^@^Ino file '/usr/local/Cellar/luajit-openresty/2.1-20220411/lib/lua/5.1/plugins.so'
local/lib/lua/5.1/loadall.so'^@^Ino file '/Users/mugur/.cache/nvim/packer_hererocks/2.1.0-beta3/l
.so'
Please check your config for correctness
Error detected while processing BufWinEnter Autocommands for "*":
Error executing lua callback: vim/_meta.lua:0: Not a valid option name: winbar
stack traceback:
        [C]: in function 'assert'
        vim/_meta.lua: in function ''
        vim/_meta.lua: in function '__newindex'
        /Users/mugur/.config/nvim/lua/autocmds.lua:46: in function </Users/mugur/.config/nvim/lua
Press ENTER or type command to continue```

Keybindings and shortcuts explained

Hi,
Thanks for this config!
Once i updated to the latest neovim, the installer worked perfectly.
Now I'm trying to understand your key-bindings. For instance, could you please explain exactly what you mean for:

<C - e>

What keys is that exactly?

Is there a shortcut for toggling between opened files?
Or for searching for a file inside the File-Explorer?
Is it possible to open files next to each other in a split-display?
How do you comment out a single line?

Many thanks!

Errors after install

I am trying to install this project, apparently the installation works well, but I have some error messages

Error detected while processing /home/lramirez/.config/nvim/init.lua:
E5113: Error while calling lua chunk: /home/lramirez/.config/nvim/lua/autocmds.lua:1: attempt to call field 'nvim_create_augroup' (a nil valu
e)
stack traceback:
        /home/lramirez/.config/nvim/lua/autocmds.lua:1: in main chunk
        [C]: in function 'require'
        /home/lramirez/.config/nvim/init.lua:7: in main chunk

In some files I also have this error when I open a file:

Error executing vim.schedule lua callback: ...ite/pack/packer/opt/gitsigns.nvim/lua/gitsigns/async.lua:68: The coroutine failed with this message: /home/lramirez/.config/nvim/lua/plugins/gitsigns.lua:49: attemp
t to index field 'keymap' (a nil value)                                                                                                                                                                   
stack traceback:
        /home/lramirez/.config/nvim/lua/plugins/gitsigns.lua: in function 'map'
        /home/lramirez/.config/nvim/lua/plugins/gitsigns.lua:53: in function 'on_attach'
        ...nvim/site/pack/packer/opt/gitsigns.nvim/lua/gitsigns.lua:282: in function 'attach0'
        ...nvim/site/pack/packer/opt/gitsigns.nvim/lua/gitsigns.lua:344: in function 'attach'
        ...nvim/site/pack/packer/opt/gitsigns.nvim/lua/gitsigns.lua:567: in function <...nvim/site/pack/packer/opt/gitsigns.nvim/lua/gitsigns.lua:505>
stack traceback:
        [C]: in function 'error'
        ...ite/pack/packer/opt/gitsigns.nvim/lua/gitsigns/async.lua:68: in function <...ite/pack/packer/opt/gitsigns.nvim/lua/gitsigns/async.lua:63>

Possibly I have to do something on my side, but I don’t understand yet nvim and lua

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.