ESSO0428 / lvim

0 stars 0 forks source link

title: My Neovim Config (lunarvim) author: Andy6 date: Sunday, October, 08, 2023

My Neovim Config

use neovim pre-config lunarvim

Introduction

Current support neovim version

NVIM v0.10.2 (release)

$ nvim --version
NVIM v0.10.2
Build type: Release
LuaJIT 2.1.1713484068
Run "nvim -V1 -v" for more info

Overview (use this config)

Some notice

some server install neovim will get below error:

/lib64/libc.so.6: version `GLIBC_2.2X...' not found

need to use sudo compile glibc-2.31 or sudo compile glibc-2.27 (if you use low_glibc_support_version) if you are only a user, suggest ask your admin to help you install glbc-2.31 or glibc-2.27

Copilot

CopilotChat

Through the CopilotChat.nvim plugin, an interactive interface with Copilot is provided, allowing you to open a chat interface to interactively modify code.

About update lunarvim and neovim core to Latest Release

  1. Can use below command to update lunarvim and neovim core to Latest Release
    • # NOTE: Update lunarvim and neovim core to Latest Release
      sh ~/.config/lvim/UpdateNvimReleaseAndLunarCore.sh
      # NOTE: or you only want to update neovim to Latest Release
      # sh ~/.config/lvim/UpdateNvimReleaseOnly.sh
  2. If update (or install) success (can use below command to init lunarvim)
    • # NOTE: init lvim (install plugins and install treesitter parsers)
      # Maybe restart lvim two times above (because solve plugin dependency)
      $ lvim .
    • " NOTE: Some Python based plugins may need this command to be run after installation.
      :UpdateRemotePlugins
  3. below is some maybe error and how to solve
    • vim-hexokinase
    • " erro
      vim-hexokinase needs updating. Run `make hexokinase` in project root. See `:h hexokinase-installation` for more info.
      " solve in vim cmd
      :!export PATH=$HOME/bin/go/bin/:$PATH && cd ~/.config/lvim/plugged/vim-hexokinase/ && git submodule init && git submodule update && cd hexokinase/ && go build
    • # or solve in terminal
      export PATH=$HOME/bin/go/bin/:$PATH && cd ~/.config/lvim/plugged/vim-hexokinase/ && git submodule init && git submodule update && cd hexokinase/ && go build && cd ~