Coder Social home page Coder Social logo

dotfiles's Introduction

ใ€๐Ÿ˜ไธญๆ–‡ๆ–‡ๆกฃใ€‘

๐ŸŽ‰ Support Neovim 0.10.0-dev๏ผ๏ผ๏ผ

- Tip: If you only want to use neovim's configuration, please manually switch to the `nvim` branch!!!
+ It is recommended to update all plugins to the latest first.

Quickly start

Dependencies

sudo apt install wget curl git python3-pip ripgrep ranger lolcat -y
pip3 install pynvim
sudo npm install -g tree-sitter-cli
# or use cargo to install tree-sitter-cli
# cargo install tree-sitter-cli
echo "export PATH=$HOME/.local/share/nvim/mason/bin:$PATH" >> ~/.bashrc
source ~/.bashrc
# if you use zsh, pls add masonbin to your zsh config and then source it
# source ~/.zshrc

Install Config

# backup your old neovim config
mv ~/.config/nvim{,.bak}
# download my config to your local machine.
git clone -b nvim https://github.com/AGou-ops/dotfiles.git ~/.config/nvim

If you have any problems with the installation, please submit an issue.

Let's go!

# After opening neovim, lazy.nvim will automatically install all plugins.
nvim
# if you have Neovim python error, https://github.com/gelguy/wilder.nvim/issues/16, run below command and restart neovim.
:UpdateRemotePlugins

๐ŸŽ‰Done.

Plugin list

.
โ”œโ”€โ”€ Comment.nvim
โ”œโ”€โ”€ LeaderF
โ”œโ”€โ”€ LuaSnip
โ”œโ”€โ”€ asyncrun.vim
โ”œโ”€โ”€ autoclose.nvim
โ”œโ”€โ”€ barbecue.nvim
โ”œโ”€โ”€ better-escape.nvim
โ”œโ”€โ”€ bufferline.nvim
โ”œโ”€โ”€ cmp-buffer
โ”œโ”€โ”€ cmp-emoji
โ”œโ”€โ”€ cmp-look
โ”œโ”€โ”€ cmp-nvim-lsp
โ”œโ”€โ”€ cmp-nvim-lsp-signature-help
โ”œโ”€โ”€ cmp-path
โ”œโ”€โ”€ cmp-tabnine
โ”œโ”€โ”€ cmp_luasnip
โ”œโ”€โ”€ dashboard-nvim
โ”œโ”€โ”€ drop.nvim
โ”œโ”€โ”€ fidget.nvim
โ”œโ”€โ”€ flash.nvim
โ”œโ”€โ”€ friendly-snippets
โ”œโ”€โ”€ gitsigns.nvim
โ”œโ”€โ”€ goimpl.nvim
โ”œโ”€โ”€ gotests.nvim
โ”œโ”€โ”€ goto-preview
โ”œโ”€โ”€ gruvbox-material
โ”œโ”€โ”€ guard.nvim
โ”œโ”€โ”€ indent-blankline.nvim
โ”œโ”€โ”€ lazy.nvim
โ”œโ”€โ”€ lspsaga.nvim
โ”œโ”€โ”€ lualine.nvim
โ”œโ”€โ”€ markdown-preview.nvim
โ”œโ”€โ”€ mason-lspconfig.nvim
โ”œโ”€โ”€ mason.nvim
โ”œโ”€โ”€ muren.nvim
โ”œโ”€โ”€ neodev.nvim
โ”œโ”€โ”€ neoformat
โ”œโ”€โ”€ neogen
โ”œโ”€โ”€ neoscroll.nvim
โ”œโ”€โ”€ neotest
โ”œโ”€โ”€ neotest-go
โ”œโ”€โ”€ neovim-session-manager
โ”œโ”€โ”€ nvim-cmp
โ”œโ”€โ”€ nvim-colorizer.lua
โ”œโ”€โ”€ nvim-cursorword
โ”œโ”€โ”€ nvim-dap
โ”œโ”€โ”€ nvim-dap-ui
โ”œโ”€โ”€ nvim-gomove
โ”œโ”€โ”€ nvim-hlslens
โ”œโ”€โ”€ nvim-lspconfig
โ”œโ”€โ”€ nvim-navic
โ”œโ”€โ”€ nvim-picgo
โ”œโ”€โ”€ nvim-scrollbar
โ”œโ”€โ”€ nvim-surround
โ”œโ”€โ”€ nvim-tree.lua
โ”œโ”€โ”€ nvim-treehopper
โ”œโ”€โ”€ nvim-treesitter
โ”œโ”€โ”€ nvim-treesitter-context
โ”œโ”€โ”€ nvim-treesitter-textobjects
โ”œโ”€โ”€ nvim-ts-rainbow
โ”œโ”€โ”€ nvim-ufo
โ”œโ”€โ”€ nvim-web-devicons
โ”œโ”€โ”€ playground
โ”œโ”€โ”€ plenary.nvim
โ”œโ”€โ”€ popup.nvim
โ”œโ”€โ”€ promise-async
โ”œโ”€โ”€ rnvimr
โ”œโ”€โ”€ suda.vim
โ”œโ”€โ”€ tagbar
โ”œโ”€โ”€ telescope-dap.nvim
โ”œโ”€โ”€ telescope-fzf-native.nvim
โ”œโ”€โ”€ telescope.nvim
โ”œโ”€โ”€ todo-comments.nvim
โ”œโ”€โ”€ toggleterm.nvim
โ”œโ”€โ”€ trouble.nvim
โ”œโ”€โ”€ undotree
โ”œโ”€โ”€ vim-startuptime
โ”œโ”€โ”€ vim-translator
โ”œโ”€โ”€ vim-visual-multi
โ”œโ”€โ”€ which-key.nvim
โ””โ”€โ”€ wilder.nvim

82 directories, 0 files

ScreenShot

  • Neovim dashboard

image

  • Tmux

image-20220408084010889

  • Zen mode

image

  • Golang

Code completion:

image

dap debug:

image

Unit Test:

image

preview definition:

image

lspsaga finder:

image

startupTime

โญ๏ธlazy.nvim

82 plugins.

image

dotfiles's People

Contributors

agou-ops avatar cants7 avatar fenghe-liu avatar maxwell0604 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

dotfiles's Issues

healthcheck error

The following errors have been detected:

  • ERROR: lua(highlights): ...im/0.8.1/share/nvim/runtime/lua/vim/treesitter/query.lua:219: query: invalid node type at position 1141 for language lua
    lua(highlights) is concatenated from the following files:
    | [ERROR]:"/Users/xxx/.vim/plugged/nvim-treesitter/queries/lua/highlights.scm", failed to load: ...im/0.8.1/share/nvim/runtime/lua/vim/treesitter/query.lua:219: query: invalid node type at position 1141 for language lua
  • ERROR: help(highlights): ...im/0.8.1/share/nvim/runtime/lua/vim/treesitter/query.lua:219: query: invalid node type at position 100 for language help
    help(highlights) is concatenated from the following files:
    | [ERROR]:"/Users/xxx/.vim/plugged/nvim-treesitter/queries/help/highlights.scm", failed to load: ...im/0.8.1/share/nvim/runtime/lua/vim/treesitter/query.lua:219: query: invalid node type at position 100 for language help

language not found

Spawning language server with cmd: vim-language-server failed. The language server is either not installed, missing from PATH, or not executable

i found export PATH=~/.local/share/nvim/lsp_servers/bin. you configure

But I found that the real install path is configured with ~/.local/share/lsp_servers

why

ไฝฟ็”จtelescopeๆ—ถๆœ‰้—ฎ้ข˜

ไผไธšๅพฎไฟกๆˆชๅ›พ_530fd9aa-fc13-4bf7-bc23-ec82a25f4561

ๆˆ‘่ฟ›ๅ…ฅไธ€ไธช้กน็›ฎ๏ผŒไฝฟ็”จtelescope ๆ‰“ๅผ€ไธ€ไธชๆ–‡ไปถๆ˜ฏๆญฃๅธธ็š„๏ผŒ็„ถๅŽๆˆ‘ๅ†ๆฌกไฝฟ็”จtelescope ๆ‰“ๅผ€ๅฆไธ€ไธชๆ–‡ไปถ๏ผŒ็™พๅˆ†ไน‹็™พๅ‡บ็Žฐ้—ฎ้ข˜๏ผŒๆˆ‘ไธ็Ÿฅ้“ๆ˜ฏไป€ไนˆๅŽŸๅ› ๏ผŒๅคงไฝฌๆœ‰้‡ๅˆฐ่ฟ‡ๅ˜›

[lua]attempt to index field 'window' (a nil value)

ไฝ ๅฅฝ๏ผŒๆˆ‘ๆ‰€ๆœ‰็š„ๆ’ไปถๅฎ‰่ฃ…ๅฎŒๆˆๅŽ๏ผŒๆ‰“ๅผ€nvimๆ็คบๅฆ‚ไธ‹้”™่ฏฏใ€‚
ไฝฟ็”จไธป็›ฎๅฝ•ไธ‹็š„ init.vim ๅ’Œ neovim-with-lua ็š„ init.vim ้ƒฝไผšๆ็คบ็›ธๅŒ้”™่ฏฏใ€‚

Error detected while processing /root/.config/nvim/init.vim:

line  565:
E5108: Error executing lua /root/.config/nvim/lua/AGou/nvim-cmp.lua:27: attempt to index field 'window' (a nil value)
stack traceback:
        /root/.config/nvim/lua/AGou/nvim-cmp.lua:27: in main chunk
        [C]: in function 'require'
        /root/.config/nvim/lua/AGou/init.lua:9: in main chunk
        [C]: in function 'require'
        [string ":lua"]:1: in main chunk

ไปฅไธ‹ๆ˜ฏๆ’ไปถๅฎ‰่ฃ…ไปฅๅŠ.config/nvim็›ฎๅฝ•
image
image

Can't require AGou lua module

Hi @AGou-ops
่ฌ่ฌไฝ ๆไพ›็š„้…็ฝฎ๏ผŒ็œ‹ไบ†่ฆ–้ ปๅพŒ่ฆบๅพ—ๅพˆๆฃ’๏ผ๐Ÿ˜†

็›ฎๅ‰ไฝฟ็”จ neovim-with-lua ็š„้…็ฝฎๅพŒ๏ผŒๅ‡บ็พไปฅไธ‹็š„้Œฏ่ชคใ€‚

image

toggleterm

ไธ‹้ขๅˆ ๆŽ‰ๅฐฑๅฏไปฅไบ†ๅบ”่ฏฅ
image

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.