Coder Social home page Coder Social logo

kickstart.nvim's People

Contributors

amtoine avatar anthony-fiddes avatar chillerdragon avatar dam9000 avatar dennisrall avatar feoh avatar gangelop avatar kaminskypavel avatar kdheepak avatar luizcalliari avatar mech-a avatar nphyn1t3 avatar numkil avatar nwvi avatar pbnj avatar saccarosium avatar samposh avatar shashwatagrawal20 avatar slara avatar sudo-tee avatar taliraj avatar theopn avatar tinylittlewheatley avatar tjdevries avatar togglebyte avatar ttibsi avatar usernoemail-com avatar vladexa avatar vzaa avatar wommy 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  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

kickstart.nvim's Issues

Treesitter indent currently broken for Python

Describe the bug
Out of the box right now, using Treesitter's indentation w/ Python is broken. I've changed the treesitter config to read:
indent = { enable = true; disable = { "python" } }
which is not ideal, but breaking indentation for new users might be worse?

To Reproduce
Steps to reproduce the behavior:

  1. Open a python file w/ nvim. Open a line after a "def xxxx" line, and watch nvim not indent properly.

Desktop (please complete the following information):

  • OS: Linux
  • Terminal: kitty

** Neovim Version **

  • Output of running :version from inside of neovim:
    0.8.1

Modules not found upon fresh installation of nvim

Describe the bug
After fresh installation of nvim and using the kickstart script I get errors below. Some modules seem to not be found.

To Reproduce
Steps to reproduce the behavior:

  1. Copy current master version of init.lua to ~/.config/nvim/init.lua.
  2. Run nvim, wait until packer deps are installed
  3. Exit nvim
  4. Run nvim again

Desktop (please complete the following information):

  • OS: macOS 12.6
  • Terminal: kitty 12.6

** Neovim Version **

  • Output of running :version from inside of neovim: NVIM v0.9.0-dev-525+ga7332ba9b
Error detected while processing /Users/alex/.config/nvim/init.lua:                                                                                                                                                    
E5113: Error while calling lua chunk: ...cker/start/nvim-treesitter/lua/nvim-treesitter/query.lua:2: module 'vim.treesitter.query' not found:                                                                         
        no field package.preload['vim.treesitter.query']                                                                                                                                                              
        no file './vim/treesitter/query.lua'                                                                                                                                                                          
        no file '/Users/runner/work/neovim/neovim/.deps/usr/share/luajit-2.1.0-beta3/vim/treesitter/query.lua'                                                                                                        
        no file '/usr/local/share/lua/5.1/vim/treesitter/query.lua'                                                                                                                                                   
        no file '/usr/local/share/lua/5.1/vim/treesitter/query/init.lua'                                                                                                                                              
        no file '/Users/runner/work/neovim/neovim/.deps/usr/share/lua/5.1/vim/treesitter/query.lua'                                                                                                                   
        no file '/Users/runner/work/neovim/neovim/.deps/usr/share/lua/5.1/vim/treesitter/query/init.lua'                                                                                                              
        no file './vim/treesitter/query.so'                                                                                                                                                                           
        no file '/usr/local/lib/lua/5.1/vim/treesitter/query.so'                                                                                                                                                      
        no file '/Users/runner/work/neovim/neovim/.deps/usr/lib/lua/5.1/vim/treesitter/query.so'                                                                                                                      
        no file '/usr/local/lib/lua/5.1/loadall.so'                                                                                                                                                                   
        no file './vim.so'                                                                                                                                                                                            
        no file '/usr/local/lib/lua/5.1/vim.so'                                                                                                                                                                       
        no file '/Users/runner/work/neovim/neovim/.deps/usr/lib/lua/5.1/vim.so'                                                                                                                                       
        no file '/usr/local/lib/lua/5.1/loadall.so'                                                                                                                                                                   
stack traceback:                                                                                                                                                                                                      
        [C]: in function 'require'                                                                                                                                                                                    
        ...cker/start/nvim-treesitter/lua/nvim-treesitter/query.lua:2: in main chunk                                                                                                                                  
        [C]: in function 'require'                                                                                                                                                                                    
        ...er/start/nvim-treesitter/lua/nvim-treesitter/configs.lua:3: in main chunk                                                                                                                                  
        [C]: in function 'require'                                                                                                                                                                                    
        /Users/alex/.config/nvim/init.lua:222: in main chunk                                                                                                                                                          
E484: Can't open file /share/nvim/syntax/syntax.vim                                                                                                                                                                   
Error in packer_compiled: /Users/alex/.config/nvim/plugin/packer_compiled.lua:206: Vim(packadd):E5113: Error while calling lua chunk: vim/_init_packages.lua:0: module 'vim.treesitter' not found:^@^Ino field package
.preload['vim.treesitter']^@^Ino file './vim/treesitter.lua'^@^Ino file '/Users/runner/work/neovim/neovim/.deps/usr/share/luajit-2.1.0-beta3/vim/treesitter.lua'^@^Ino file '/usr/local/share/lua/5.1/vim/treesitter.l
ua'^@^Ino file '/usr/local/share/lua/5.1/vim/treesitter/init.lua'^@^Ino file '/Users/runner/work/neovim/neovim/.deps/usr/share/lua/5.1/vim/treesitter.lua'^@^Ino file '/Users/runner/work/neovim/neovim/.deps/usr/shar
e/lua/5.1/vim/treesitter/init.lua'^@^Ino file '/Users/alex/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/vim/treesitter.lua'^@^Ino file '/Users/alex/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/v
im/treesitter/init.lua'^@^Ino file '/Users/alex/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/vim/treesitter.lua'^@^Ino file '/Users/alex/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rock
s-5.1/vim/treesitter/init.lua'^@^Ino file './vim/treesitter.so'^@^Ino file '/usr/local/lib/lua/5.1/vim/treesitter.so'^@^Ino file '/Users/runner/work/neovim/neovim/.deps/usr/lib/lua/5.1/vim/treesitter.so'^@^Ino file
 '/usr/local/lib/lua/5.1/loadall.so'^@^Ino file '/Users/alex/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/vim/treesitter.so'^@^Ino file './vim.so'^@^Ino file '/usr/local/lib/lua/5.1/vim.so'^@^Ino file '/Use
rs/runner/work/neovim/neovim/.deps/usr/lib/lua/5.1/vim.so'^@^Ino file '/usr/local/lib/lua/5.1/loadall.so'^@^Ino file '/Users/alex/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/vim.so'^@stack traceback:^@^I[C
]: in function 'require'^@^Ivim/_init_packages.lua: in function '__index'^@^I...er/start/nvim-treesitter/lua/nvim-treesitter/parsers.lua:2: in main chunk^@^I[C]: in function 'require'^@^I...er/start/nvim-treesitter
/lua/nvim-treesitter/install.lua:6: in main chunk^@^I[C]: in function 'require'^@^I...ack/packer/start/nvim-treesitter/lua/nvim-treesitter.lua:1: in main chunk^@^I[C]: in function 'require'^@^I.../packer/start/nvim
-treesitter/plugin/nvim-treesitter.lua:9: in main chunk^@^I[C]: in function 'cmd'^@^I/Users/alex/.config/nvim/plugin/packer_compiled.lua:206: in function </Users/alex/.config/nvim/plugin/packer_compiled.lua:10>^@^I
[C]: in function 'pcall'^@^I/Users/alex/.config/nvim/plugin/packer_compiled.lua:10: in main chunk                                                                                                                     
Please check your config for correctness
Error detected while processing /Users/alex/.local/share/nvim/site/pack/packer/start/nvim-lspconfig/plugin/lspconfig.lua:                                                                                             
E5113: Error while calling lua chunk: vim/_init_packages.lua:0: module 'vim.lsp' not found:                                                                                                                           
        no field package.preload['vim.lsp']                                                                                                                                                                           
        no file './vim/lsp.lua'                                                                                                                                                                                       
        no file '/Users/runner/work/neovim/neovim/.deps/usr/share/luajit-2.1.0-beta3/vim/lsp.lua'                                                                                                                     
        no file '/usr/local/share/lua/5.1/vim/lsp.lua'                                                                                                                                                                
        no file '/usr/local/share/lua/5.1/vim/lsp/init.lua'                                                                                                                                                           
        no file '/Users/runner/work/neovim/neovim/.deps/usr/share/lua/5.1/vim/lsp.lua'                                                                                                                                
        no file '/Users/runner/work/neovim/neovim/.deps/usr/share/lua/5.1/vim/lsp/init.lua'                                                                                                                           
        no file '/Users/alex/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/vim/lsp.lua'                                                                                                                      
        no file '/Users/alex/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/vim/lsp/init.lua'                                                                                                                 
        no file '/Users/alex/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/vim/lsp.lua'                                                                                                             
        no file '/Users/alex/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/vim/lsp/init.lua'                                                                                                        
        no file './vim/lsp.so'                                                                                                                                                                                        
        no file '/usr/local/lib/lua/5.1/vim/lsp.so'                                                                                                                                                                   
        no file '/Users/runner/work/neovim/neovim/.deps/usr/lib/lua/5.1/vim/lsp.so'                                                                                                                                   
        no file '/usr/local/lib/lua/5.1/loadall.so'                                                                                                                                                                   
        no file '/Users/alex/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/vim/lsp.so'                                                                                                                         
        no file './vim.so'                                                                                                                                                                                            
        no file '/usr/local/lib/lua/5.1/vim.so'                                                                                                                                                                       
        no file '/Users/runner/work/neovim/neovim/.deps/usr/lib/lua/5.1/vim.so'                                                                                                                                       
        no file '/usr/local/lib/lua/5.1/loadall.so'                                                                                                                                                                   
        no file '/Users/alex/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/vim.so'                                                                                                                             
stack traceback:                                                                                                                                                                                                      
        [C]: in function 'require'                                                                                                                                                                                    
        vim/_init_packages.lua: in function '__index'                                                                                                                                                                 
        ...te/pack/packer/start/nvim-lspconfig/plugin/lspconfig.lua:1: in main chunk                                                                                                                                  
Error detected while processing /Users/alex/.local/share/nvim/site/pack/packer/start/cmp_luasnip/after/plugin/cmp_luasnip.lua:                                                                                        
E5113: Error while calling lua chunk: ...e/pack/packer/start/cmp_luasnip/lua/cmp_luasnip/init.lua:2: module 'vim.lsp.util' not found:                                                                                 
        no field package.preload['vim.lsp.util']                                                                                                                                                                      
        no file './vim/lsp/util.lua'                                                                                                                                                                                  
        no file '/Users/runner/work/neovim/neovim/.deps/usr/share/luajit-2.1.0-beta3/vim/lsp/util.lua'                                                                                                                
        no file '/usr/local/share/lua/5.1/vim/lsp/util.lua'                                                                                                                                                           
        no file '/usr/local/share/lua/5.1/vim/lsp/util/init.lua'                                                                                                                                                      
        no file '/Users/runner/work/neovim/neovim/.deps/usr/share/lua/5.1/vim/lsp/util.lua'                                                                                                                           
        no file '/Users/runner/work/neovim/neovim/.deps/usr/share/lua/5.1/vim/lsp/util/init.lua'                                                                                                                      
        no file '/Users/alex/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/vim/lsp/util.lua'                                                                                                                 
        no file '/Users/alex/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/vim/lsp/util/init.lua'                                                                                                            
        no file '/Users/alex/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/vim/lsp/util.lua'                                                                                                        
        no file '/Users/alex/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/vim/lsp/util/init.lua'                                                                                                   
        no file './vim/lsp/util.so'                                                                                                                                                                                   
        no file '/usr/local/lib/lua/5.1/vim/lsp/util.so'                                                                                                                                                              
        no file '/Users/runner/work/neovim/neovim/.deps/usr/lib/lua/5.1/vim/lsp/util.so'                                                                                                                              
        no file '/usr/local/lib/lua/5.1/loadall.so'                                                                                                                                                                   
        no file '/Users/alex/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/vim/lsp/util.so'                                                                                                                    
        no file './vim.so'                                                                                                                                                                                            
        no file '/usr/local/lib/lua/5.1/vim.so'                                                                                                                                                                       
        no file '/Users/runner/work/neovim/neovim/.deps/usr/lib/lua/5.1/vim.so'                                                                                                                                       
        no file '/usr/local/lib/lua/5.1/loadall.so'                                                                                                                                                                   
        no file '/Users/alex/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/vim.so'                                                                                                                             
stack traceback:                                                                                                                                                                                                      
        [C]: in function 'require'                                                                                                                                                                                    
        ...e/pack/packer/start/cmp_luasnip/lua/cmp_luasnip/init.lua:2: in main chunk                                                                                                                                  
        [C]: in function 'require'                                                                                                                                                                                    
        ...ck/packer/start/cmp_luasnip/after/plugin/cmp_luasnip.lua:1: in main chunk

Does not work on macOS Ventura 13.1

I don't know where to start. Installing plugins by packers seems to work fine but after restarting nvim some lua thing (sumneko_lua) is loading for a long time, and it starts loading again every time I press :w. In addition to that I see some treesitter issues and when I select the code I see different things rendered under selection.

What is going on??? πŸ˜‚ Please help.

To Reproduce

Steps to reproduce the behavior:

  1. Install neovim on macOS Ventura 13.1
  2. Create init.lua with kickstart.nvim init.lua contents
  3. Just open neovim follow installation instructions and restart

Desktop

  • OS: macOS Ventura 13.1
  • Terminal: zsh (using alacritty but the same happens inside of kitty). I have oh-my-zsh installed

** Neovim Version **

NVIM v0.8.1
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by brew@Ventura

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

   system vimrc file: "$VIM/sysinit.vim"

https://user-images.githubusercontent.com/25861704/209447827-3a295e2f-5e28-451a-b78b-4830a6989621.mp4


  fall-back for $VIM: "/usr/local/Cellar/neovim/0.8.1/share/nvim"

Run :checkhealth for more info
2022-12-24.19-32-04.mp4

Dockerfile build failing

Some error notes:

Step 6/8 : RUN apk --no-cache add     fd      ctags     ripgrep     git
 ---> Running in 7791d7762965
fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/x86_64/APKINDEX.tar.gz
(1/3) Installing ctags (5.9.20220327.0-r0)
(2/3) Installing fd (8.3.2-r0)
(3/3) Installing ripgrep (13.0.0-r0)
Executing busybox-1.35.0-r17.trigger
OK: 309 MiB in 74 packages
Removing intermediate container 7791d7762965
 ---> 9700c6228472
Step 7/8 : COPY ./init.lua /root/.config/nvim/init.lua
COPY failed: file not found in build context or excluded by .dockerignore: stat init.lua: file does not exist

I believe the dockerfile is is a bit mistaken somewhere about where the init.lua exists.

On new installation ask for working environment on every startup

To reproduce, after automatic install of plugins and TS i save the init.lua or just open the init.lua and ask everytime if i want to

"Do you need to configure your work environment as luassert?:"

I don't know if this is intended or needed for every change, but found in this issue on nvim-lspconfig that disabling checkThirdParty = false in the settings.workspace stops asking

Link to the issue that solved my problem:
neovim/nvim-lspconfig#1700

Cannot find color scheme 'onedark'

Describe the bug
After pasting the init.lua contents into my init.lua, writing and closing, then executing nvim, I get:

Error detected while processing /Users/naz/.config/nvim/init.lua:
E5113: Error while calling lua chunk: /Users/naz/.config/nvim/init.lua:120: Vim(colorscheme):E185: Cannot find color scheme 'onedark'
stack traceback:
        [C]: in function 'cmd'
        /Users/naz/.config/nvim/init.lua:120: in main chunk

To Reproduce
See the above

Desktop (please complete the following information):

  • OS: Mac OS 12.5.1
  • Terminal: Hyper 3.3.0

Neovim Version

  • Output of running :version from inside of neovim:
NVIM v0.9.0-dev-533+ga6747545b-dirty
Build type: Release
LuaJIT 2.1.0-beta3

init.lua not working

Following the instructions in https://www.youtube.com/watch?v=stqUbv-5u2s, the configuration did not work as expected.

To Reproduce
Steps to reproduce the behavior:

  1. copy init.lua from this repo to ~/config/nvim/
  2. Start nvim

Expected results:
Plugins get loaded, new features such as file search, colors etc are available.
Actual resuts:

no change in nvim before installing init.lua

Error detected while processing /home/admin/.config/nvim/init.lua:
E5113: Error while calling lua chunk: /home/admin/.config/nvim/init.lua:7: Vim(p
ackadd):E919: Directory not found in 'packpath': "pack/*/opt/packer.nvim"
stack traceback:
[C]: in function 'cmd'
/home/admin/.config/nvim/init.lua:7: in main chunk

Desktop (please complete the following information):

  • OS: Linux ubuntu 22.04.01
  • Terminal: bash?

** Neovim Version **

  • Output of running :version from inside of neovim:
    :version
    NVIM v0.6.1
    Build type: Release
    LuaJIT 2.1.0-beta3
    Compiled by [email protected]

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

Multiple language server instances on save

Not sure if this is intended but saving the init.lua file will cause a new instance of sumneko getting started. I assuming that this is not intended as it will slow down vim eventually.

Editing the init.lua file causes nvim to crash

When editing the init.lua file, nvim seems to crash back to the shell it was started from.
It also completely messes up the STDIN, forcing me to close the shell altogether.
See img:

image

OS: Win10
Nvim version: v0.8.0
Shell: Nushell, running under Windows Terminal

Add tree-sitter-context?

Thank you for this basic configuration. Now I have something as inspiration Γ‘nd to share with friends. Time to spread neovim love!

Do you consider treesitter-context part of a minimal configuration?

I think it has also found it's way as a default into VSCode iirc, so in that line of thought it would not be additional bloat to me.

Let me know and I can create a PR.

Default setting + frequent `:w` = use up all the ram and system freeze

From the youtube video https://y.com.sb/watch?v=stqUbv-5u2s, I notice this project exist.
So I want to test it out and replace my old init.vim and explore more about lua.

However, while playing around with the init.lua, my system freeze.
Below is how to reproduce it:

Running nvim ~/.config/nvim/init.lua with default setting.
in htop it will display it spawn a process lua-language-server
when I press :w Enter, one more lua-language-server spawn, and use up maybe more 2% of ram.
when I do the :w Enter again, and use more 2% of ram. and so on

However I just have a bad habit to frequently save the files.
When I do :w too frequently, say 1 sec once for 15 sec
The ram usage surge rapidly, which is much more than 2% per :w mentioned above
and my system freeze.

And I later find out that it is caused by "Automatically source and re-compile packer whenever you save this init.lua" setting.

Just simply do a :wq also help release the ram.

Since this script may target new user of neovim as stated in the video
I think it worth mentioning in the readme file.

Error when yanking a V-block with lines containing utf-8 chars

Hi,

I noticed the following with my fork of kickstart.nvim (and verified with a vanilla init.lua from this repo):

I have the following minimal markdown:

# Introduction
- pΓ€ivitettΓ€vΓ€ uudempaan; test
- pΓ€ivitettΓ€vΓ€ uudempaan; edu

If I C-v and select a rectangular region from upper "uudempaan" to the end of "edu", and yank the selection, I get an error:

Error detected while processing TextYankPost Autocommands for "*":
Error executing lua callback: vim/_editor.lua:0: index out of range
stack traceback:
        [C]: in function 'str_byteindex'
        vim/_editor.lua: in function 'region'
        ...ar/neovim/0.8.0/share/nvim/runtime/lua/vim/highlight.lua:51: in function 'range'
        ...ar/neovim/0.8.0/share/nvim/runtime/lua/vim/highlight.lua:129: in function 'on_yank'
        /Users/self/.config/nvim/init.lua:115: in function </Users/juharu/.config/nvim/init.lua:114>

Note that I do not need to select "pΓ€ivitettΓ€vΓ€" word, it only need to exist on the line. While pasting the above error, I noticed that str_byteindex is the point of error. The problematic word contains Γ€, which is a two byte 'character'. My guess, without knowing nothing about the implementation is that that function should take into account utf-8 characters.

ps. "pΓ€ivitettΓ€vΓ€" is a Finnish word for "to be updated".

Unable to push to a new branch

Describe the bug
I'm looking at raising a PR to include some bits, but unable to push anything to a branch - Is there a security limitation / I can only push code to a specific branch name?

development language assumptions bad?

I'm wondering if it's "bad" to make so many assumptions on which languages people will want to develop with:

ensure_installed = { 'c', 'cpp', 'go', 'lua', 'python', 'rust', 'typescript', 'help' },
...
local servers = { 'clangd', 'rust_analyzer', 'pyright', 'tsserver', 'sumneko_lua', 'gopls' }

Granted, on one hand I can see how it's good to have examples, however:

  1. Such assumptions can cause problems. One such example is this one for gopls: #58 (comment)
  2. It's unnecessary to take the time to download and install so many language servers, when it's unlikely that most people will be developing in all those languages.

My opinion is that things should be a lot more minimal and "safe" (dependency-wise):

ensure_installed = { 'lua', 'vim', 'help' },
...
local servers = { 'sumneko_lua', 'vimls' }

Thoughts?

Fresh ubuntu/neovim error: Provider "github" "get_latest_release" failed

Describe the bug
I get the following errors when checking MasonLog. This is on a fresh ubuntu 20.04 system and with a fresh neovim stable v.0.8.1 version.

I also double checked in a fresh docker to confirm I got the same errors a second time.

...acker/start/mason.nvim/lua/mason-core/installer/init.lua:119: Executing installer for Package(name=lua-language-server)
...acker/start/mason.nvim/lua/mason-core/providers/init.lua:58: Provider "github" "get_latest_release" failed: spawn: wget failed with exit code 4 and signal 0.
...acker/start/mason.nvim/lua/mason-core/providers/init.lua:69: No provider implementation found for github.get_latest_release
...acker/start/mason.nvim/lua/mason-core/installer/init.lua:155: Installation failed for Package(name=lua-language-server) error="...acker/start/mason.nvim/lua/mason-core/installer/init.lua:122: ...start/mason.nvim/l      ua/mason-core/managers/github/init.lua:55: Failed to fetch latest release from GitHub API. Refer to :h mason-provider-errors for more information."

To Reproduce
Steps to reproduce the behavior:

  1. Install ubuntu 20.04
  2. Install git, gcc, g++
  3. Install neovim v.0.8.1 via deb release
  4. Copy kickstart.nvim into $HOME/.config/nvim/init.lua
  5. Run nvim and see that all packages except telescope-fzf-native.nvim is installed correctly
  6. Quit and run nvim again, 8/8 treesitter modules is installed correctly
  7. Quit and run nvim again to see that nvim prints [mason-lspconfig.nvim] installing sumneko_lua forever.
  8. Run :MasonLog and see error.

Desktop (please complete the following information):

  • OS: Ubuntu 20.04
  • Terminal: gnome-terminal

Neovim Version

  • Output of running :version from inside of neovim:
NVIM v0.8.1
Build type: Release
LuaJIT 2.1.0-beta3

handle lua language server when saving init.lua

saving init.lua will source the file to update config current neovim process. It will also trigger a re-spawn of lua language server (unless it wasn't configured/setup for editing init.lua, which is unlikely).

Eventually, after saving a few times, users will run out of memory.

I haven't tested with other language servers being opened, but I don't see why they wouldn't share this problem. Maybe print a warning that LSP will be re-spawned? Maybe a guard variable to do lspconfig[server].setup() once in current session + print warning?

Protected call for colorscheme

pcall(vim.cmd, "colorscheme onedark")

At the first run of if the internet does not work properly it does not returns any error

treesitter error on every vim.cmd

Hi guys,

I was checking this promising config when I found this issue:

image

This happen on every vim.cmd line

image

I made sure that I have treesitter syntax updated with TSUpdate.

Blue-ish theme after install

Describe the bug
After install successfully installing nvim from scratch, I added this lua config file and ran PackerInstall via nvim. The installation seems to succeed but the color scheme looks super off. I have made no changed from the init.lua (version from commit 5219406 ) .

The background is blue and this does not look like the onedark theme. πŸ™‚

This is a fresh installation on nvim on a mac machine (sw_vers -productVersion gives macos 13.0.1.

I know this is very little information, so if you need anything or have any idea of useful information that I could provide to find the issue / bug I am happy to do so.

Have a look at the screenshot:

BildschirmΒ­foto 2022-12-21 um 16 18 17

To Reproduce
Steps to reproduce the behavior:

  1. Run on mac 13.0.1 with the default Terminal app.
  2. Fresh install of nvim
  3. Create init.lua
  4. Run PackerInstall
  5. Close and re-open neovim

Desktop (please complete the following information):

  • OS: MacOS 13.0.1
  • Terminal: Default macos terminal

** Neovim Version **

  • Output of running :version from inside of neovim:
:version
NVIM v0.8.1
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by brew@Ventura

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

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

Run :checkhealth for more info

Other than that: Cool tool, I always searched for a nice way installing quickly a vim version with good defaults that go beyond the default editor :) !! Nice work!

"[mason-lspconfig.nvim] installing rust_analyzer" on every startup

Describe the bug

I see this on every startup:

image

To Reproduce
Steps to reproduce the behavior:

  1. Start fresh
  2. Get latest init.lua (https://github.com/nvim-lua/kickstart.nvim/blob/d37a3a946288c97e52e3d82e8a710c099eb6bd90/init.lua at time of writing)
  3. Start Neovim
  4. Let it install the plugins
  5. Restart Neovim when complete
  6. Let it finish the install
  7. Restart Neovim when complete

Desktop (please complete the following information):

  • OS: Windows 10
  • Terminal: N/A (Neovim GUI)

Neovim Version

  • Output of running :version from inside of neovim: Neovim 0.8.1

I have the same issue on an Ubuntu computer, except there the output is slightly different:

[mason-lspconfig.nvim] installing pyright
[mason-lspconfig.nvim] installing tsserver
[mason-lspconfig.nvim] installing gopls

multi-version support

I have a work-related nvim setup that I can not (and don't want to) mess around (since that's highly customized for my work related stuff). But I do hope to have an easy setup to get a workable nvim setup for my open-source (or personal) development. Is it possible to support multi-version nvim out-of-the-box?

Newbie question about LSP settings -- on_attach

I'd be shocked if this were a real issue; it's posted as a newbie question.

In init.lua there is:

-- LSP settings.
--  This function gets run when an LSP connects to a particular buffer.
local on_attach = function(_, bufnr)
[body of function omitted]

What is it that associates this event handler with LSP? Thanks for any enlightenment...
EDIT (after 3 minutes): Never mind! Thanks for not sending out a posse.

is it normal to have many sumneko_lua clients connected to a single lua file ?

Hi,

I'm using kickstart.nvim as a sigle nvim configuration, and I'm noticing that there are many sumneko_lua clients connected to it as reported by LspInfo.

It starts with one client, at the first save it goes to 3, one more save it adds two more.

Here, it's the output of the last one

Client: sumneko_lua (id: 6, bufnr: [1])
 	filetypes:       lua
 	autostart:       true
 	root directory:  Running in single file mode.
 	cmd:             lua-language-server

Regards,

Geraldo Lopes de Souza

Troubles installing it on Windows (E5113 & E919)

I get this error while trying to install it on windows, what is the issue?

E5113: Error while calling lua chunk: C:\Users\MIO PC\AppData\Local\nvim\init.lua:7: Vim(packadd):E919: Directory not fo und in 'packpath': "pack/*/opt/packer.nvim"
stack traceback:
[C]: in function 'cmd'
C:\Users\MIO PC\AppData\Local\nvim\init.lua:7: in main chunk

[mason-lspconfig.nvim] installing gopls

[mason-lspconfig.nvim] installing gopls is stuck. restarted nvim and waited 5 min still show the message
LspInfo show that gopls is installed but message will not go away

Treesitter crashes on [[ ]] lua syntax in init.lua

It seems that whenever the [[ xxx ]] pattern is encountered in init.lua is encountered, TS crashes with the following back trace:

ERR 2022-12-17T09:36:32.033 nvim.63645.0 decor_provider_invoke:38: error in provider treesitter/highlighter:line: Error executing lua: ...im/0.8.0/share/nvim/runtime/lua/vim/treesitter/query.lua:219: query: invalid node type at position 2765 for language vim
stack traceback:
[C]: in function '_ts_parse_query'
...im/0.8.0/share/nvim/runtime/lua/vim/treesitter/query.lua:219: in function 'get_query'
....0/share/nvim/runtime/lua/vim/treesitter/highlighter.lua:36: in function 'new'
....0/share/nvim/runtime/lua/vim/treesitter/highlighter.lua:160: in function 'get_query'
....0/share/nvim/runtime/lua/vim/treesitter/highlighter.lua:182: in function 'fn'
...0/share/nvim/runtime/lua/vim/treesitter/languagetree.lua:210: in function 'for_each_tree'
...0/share/nvim/runtime/lua/vim/treesitter/languagetree.lua:214: in function 'for_each_tree'
....0/share/nvim/runtime/lua/vim/treesitter/highlighter.lua:168: in function 'on_line_impl'
....0/share/nvim/runtime/lua/vim/treesitter/highlighter.lua:231: in function <....0/share/nvim/runtime/lua/vim/treesitter/highlighter.lua:225>

Happend both on nvim 0.8.0 and 0.8.1 - I have not had this issue with my previous config which happily parsed any lua file.

Suggestion: secure way of loading colorscheme

If by any change packer fails on installing the colorscheme the starting process will not fail or bother the user more than needed:

-- in my config I use ayu colorscheme
local colorscheme = "ayu-dark"
local status_ok, _ = pcall(vim.cmd, "colorscheme " .. colorscheme)
if not status_ok then
    vim.notify("colorscheme " .. colorscheme .. " not found!")
    return
end

Startup time is over 300ms on Windows

I'm new to NeoVim configurations, and thanks to your latest video, I'm trying out kickstart.nvim

I did what is in the README. I also ran PackerSync just in case there's some upstream updates that I missed. But the startup time is consistently over 300ms on Windows. The output of nvim --startuptime vim.log is: vim.log. I am using:

  1. PowerShell 7 in Windows Terminal
  2. NeoVim 0.8.1
  3. decent specs: 5900HX/SSD/16GB RAM

I understand the goal of kickstart.nvim is to be under 40ms. I also cloned the repo, built the Dockerfile, and that takes around 80ms for startup, which I'm okay with. Is there some known limitation of any upstream plugin on Windows? Or maybe I have made a mistake in the setup?

attempt to call field 'default_capabilities' (a nil value)?

OS Ventura 13.1 macOS,

using neovim installed via brew install --HEAD neovim

$ nvim -v
NVIM v0.9.0-dev-522+g174335923-dirty
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by [email protected]

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

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/opt/homebrew/Cellar/neovim/HEAD-1743359/share/nvim"

Run :checkhealth for more info

and I am getting the error

Error detected while processing /Users/matthiasdebernardini/.config/nvim/init.lua:
E5113: Error while calling lua chunk: /Users/matthiasdebernardini/.config/nvim/init.lua:349: attempt to call field 'default_capabilities' (a nil value)
stack traceback:
        /Users/matthiasdebernardini/.config/nvim/init.lua:349: in main chunk

I copied and pasted the init.lua and ran :PackerInstall and I am not sure what the issue is.

Any tips for troubleshooting this would be great.

Terminal.app is stuck in the 1970s (Mac colors broken)

I saw a youtube video recommending this directory ( https://www.youtube.com/watch?v=stqUbv-5u2s&t=240s ) and it's very cool is crazy useful the LSP and everything I used worked, but the color scheme I don't know if it was my system, I have macOS 12.5.1 but everything is blue, very different from the video, I even tried to run it in a docker container with ubuntu, it had the same result, everything blue and changing the color scheme to other sometimes wasn't totally right, text won't highlight very rare

treesitter error when I open doc throught telescope

When I hit <leader>sh which is mapped to telescope help_tags function, this error comes up:

image

Error executing vim.schedule lua callback: /usr/local/share/nvim/runtime/lua/vim/treesitter/query.lua:219: query: invalid node type at position 14 for language help                                           
stack traceback:                                                                                                                                                                                               
        [C]: in function '_ts_parse_query'                                                                                                                                                                     
        /usr/local/share/nvim/runtime/lua/vim/treesitter/query.lua:219: in function 'get_query'                                                                                                                
        ...l/share/nvim/runtime/lua/vim/treesitter/languagetree.lua:52: in function 'new'                                                                                                                      
        /usr/local/share/nvim/runtime/lua/vim/treesitter.lua:45: in function '_create_parser'                                                                                                                  
        /usr/local/share/nvim/runtime/lua/vim/treesitter.lua:96: in function 'get_parser'                                                                                                                      
        .../start/telescope.nvim/lua/telescope/previewers/utils.lua:129: in function 'ts_highlighter'                                                                                                          
        .../start/telescope.nvim/lua/telescope/previewers/utils.lua:106: in function 'highlighter'                                                                                                             
        ...scope.nvim/lua/telescope/previewers/buffer_previewer.lua:242: in function ''                                                                                                                        
        vim/_editor.lua: in function <vim/_editor.lua:0>                                                                                                                                                       
Press ENTER or type command to continue                 

I have no idea how to deal with this and maybe I should open this issue on telescope?

Defined plugins in 'custom.plugins' are not synced

The latest change introduced the option to use a seperate file for defining plugins ootb. At least on my machine, this does not seem to work as expected.

How to reproduce

  1. check out kickstart.nvim in ~/.config/nvim
  2. add file lua/costum/plugins.lua
  3. copy relevant snippet from Readme
  4. save and reopen neovim
  5. run :PackerSync
  6. no new plugins are added :(

Can anybody reproduce this, or is there something wrong with my setup? Thx

Should the README mention system dependencies?

I think that in order to use this repository a user's system must have several things already installed. One example is a C compiler to compile treesitter parsers.

What level of documentation would be appropriate for the README regarding these system dependencies? On one end of the spectrum we could provide instruction for how to install the system dependencies on a bunch of different OSes. On the other end of the spectrum, we could just link to the docker file and say 'make sure your system has the things this dockerfile installs'. As with most things, the best answer is probably somewhere in the middle.

speed at the level

why is there no plugin "impatient.nvim", I don't understand something, or does it no longer speed up the startup and work time in new versions of neovim

Add auto-update for treesitter?

I'm wondering if the config shouldn't come with auto-update for treesitter parsers. nvim-treesitter 'strongly recommends' this in their repo and I think it's a pretty obvious win towards making a plug-and-play config. It's not strictly necessary, but I can't think of a single reason anyone wouldn't enable this immediately, and it would have made things a little smoother for me as a new user if it was enabled by default.

Here is my proposed change:

  use 'nvim-treesitter/nvim-treesitter'  -- Highlight, edit, and navigate code

becomes:

    use {

        'nvim-treesitter/nvim-treesitter',
        run = function()
            local ts_update = require('nvim-treesitter.install').update({ with_sync = true })
            ts_update()
        end,
    } -- Highlight, edit, and navigate code

I call the function directly because according to https://github.com/nvim-treesitter/nvim-treesitter/wiki/Installation, it would otherwise fail on first install.

Lua LSP Gets Sent home dir as workspace

Every time I open a lua file nvim shows this message.

LSP[sumneko_lua] Your workspace is set to `/home/james`. Lua language server refused to load this directory.
Please check your configuration.
[learn more here](https://github.com/sumneko/lua-language-server/wiki/FAQ#why-is-the-server-scanning-the-wrong-folder)

Looks like this is behavior introduced in sumneko/vscode-lua version 3.2.4

Is anyone else seeing this and know of a fix or a way to silence the warning?

I'm on nvim v0.9.0

init.lua fails in NeoVim 0.8 with ^M error

I have a fresh NeoVim install with nothing in init.vim or init.lua.

NVIM v0.8.0
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by [email protected]

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

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/opt/homebrew/Cellar/neovim/0.8.0/share/nvim"

When I copy the kickstart init.lua to my machine and restart nvim, I get errors.

This is the Packer report. Some of them failed.

               packer.nvim - finished in 11.848s                 
 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 
 βœ“ Installed nvim-lualine/lualine.nvim                           
 βœ— Failed to install lukas-reineke/indent-blankline.nvim         
 βœ— Failed to install tpope/vim-sleuth                            
 βœ“ Installed nvim-telescope/telescope-fzf-native.nvim            
 βœ— Failed to install tpope/vim-fugitive                          
 βœ— Failed to install tpope/vim-rhubarb                           
 βœ“ Installed lewis6991/gitsigns.nvim                             
 βœ— Failed to install nvim-lua/plenary.nvim                       
 βœ“ Installed numToStr/Comment.nvim                               
 βœ“ Installed nvim-treesitter/nvim-treesitter                     
 βœ“ Installed nvim-treesitter/nvim-treesitter-textobjects         
 βœ“ Installed nvim-telescope/telescope.nvim/0.1.x                 
 βœ“ Installed neovim/nvim-lspconfig                               
 βœ“ Installed williamboman/mason.nvim                             
 βœ“ Installed williamboman/mason-lspconfig.nvim                   
 βœ“ Installed hrsh7th/nvim-cmp                                    
 βœ“ Installed hrsh7th/cmp-nvim-lsp                                
 βœ— Failed to install L3MON4D3/LuaSnip                            
 βœ“ Installed saadparwaiz1/cmp_luasnip                            
 βœ“ Installed mjlbach/onedark.nvim                                
                                                                 
 Press 'q' to quit                                               
 Press '<CR>' to show more info                                  
 Press 'd' to show the diff                                      
 Press 'r' to revert an update                                   
 Press 'R' to retry failed operations

The following error message is reported down the bottom, about five times over:

[packer.nvim] [ERROR 16:40:53] async.lua:20: Error in coroutine: ...ack/packer/start/packer.nvim/lua/packer/plugin_utils.lua:204: Vim:E492: Not an editor command: ^M

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.