Giter VIP home page Giter VIP logo

lvim's Introduction

lvim

Custom lvim config

lvim 自定义配置

使用LunarVim作为基础

前言

最近感觉手腕疼,网上搜索了一下,得了鼠标手,开始折腾多用键盘编程方式。

先后尝试过 helix,nvchad等开源项目,感觉helix可定制行太差,临时用一下比较可以。 nvchad也是开起来好看,如果要安装新的包什么的也不是很方便.

后面尝试了一下LunarVim,感觉还不错。

折腾良久,不喜勿喷!

配合neovide效果更酷炫,默认脚本已设置好字体。

安装

如何安装,参考,lunarvim 的文档。 https://www.lunarvim.org/

首先你需要安装字体nerd-fonts,不然安装好,也会图标显示不出来。

你需要安装LunarVim,安装依赖包括:

  1. neovim-0.9每日构建版本
  2. git
  3. python pip
  4. nodejs npm
  5. rust cargo(可选,你可以手动安装 ripgrep 和 fd-find)

linux 用户

bash <(curl -s https://raw.githubusercontent.com/lunarvim/lunarvim/master/utils/installer/install.sh)

windows 用户

Invoke-WebRequest https://raw.githubusercontent.com/LunarVim/LunarVim/master/utils/installer/install.ps1 -UseBasicParsing | Invoke-Expression

用我这个定制包,只需要替换你用户目录的lvim文件夹即可, 首次运行,需要,运行

  :PackerSync

neovide 使用

打开 ~/.local/bin/lvim 这样修改:

#exec -a "$NVIM_APPNAME" nvim -u "$LUNARVIM_BASE_DIR/init.lua" "$@"
exec -a "$NVIM_APPNAME" neovide -- -u "$LUNARVIM_BASE_DIR/init.lua" "$@"

功能介绍

我这个自定义配置,主要为了方便自己编码,完全没有考虑调试代码的情况

目录结构

lvim/
    config.lua          配置入口和一些LunarVim内建配置

功能列表

快捷键 名字 功能
F1 diagnostic 到错误行上,显示详细错误信息
F2 WhichKey 快捷键帮助
F3 Telescope live_grep_args 全文搜索 使用方式同 rg带参数搜索,这个不能按照程序方式进行搜索
F4 SymbolsOutline 大纲模式,在右侧显示 函数、结构等信息
F5 Telescope treesitter 搜索的时候使用 treesitter来进行,面向程序
F6 terminal 命令行窗口,打开后,i进行输入
Z zen-mode 装逼模式,试试就知道
ctrl+v Telescope paste 在Telescope提示窗口粘贴
sdy surround 编辑字符串
. repeat 重复
rainbow 彩虹配对,默认打开
<空格> +e neovimtree 文件浏览器

更详细的功能,多按F2

效果

lvim

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.