Skip to content

Commit

Permalink
perf: remove is.vim, add luacheck (#260)
Browse files Browse the repository at this point in the history
* perf(is): remove is.vim

* perf: remove dead cod

* ci: luacheck

* doc: badge

* doc

* doc

* fix: add eza

* doc
  • Loading branch information
linrongbin16 committed Sep 28, 2023
1 parent ea52f0b commit a6067aa
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 30 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: CI
on:
pull_request: ~
push:
branches:
- main
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
typecheck:
name: Type check
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Neovim Typecheck linter
uses: stevearc/nvim-typecheck-action@v1
with:
path: lua
level: Information
configpath: ".luarc.json"
neodev-version: stable
luacheck:
name: Lua check
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Luacheck linter
uses: lunarmodules/luacheck@v1
with:
args: lua --config .luacheckrc
4 changes: 4 additions & 0 deletions .luacheckrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
globals = { "vim", "describe", "before_each", "it", "assert" }
max_line_length = 200
unused = false
unused_args = false
19 changes: 7 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
# lin.nvim : Lin Rongbin's Neovim Distribution

[![Neovim-v0.9.1](https://img.shields.io/badge/Neovim-v0.9.1-blueviolet.svg?style=flat-square&logo=Neovim&logoColor=green)](https://github.com/neovim/neovim/releases/tag/stable)
[![License](https://img.shields.io/github/license/linrongbin16/lin.nvim?style=flat-square&logo=GNU)](https://github.com/linrongbin16/lin.nvim/blob/main/LICENSE)
![Linux](https://img.shields.io/badge/Linux-%23.svg?style=flat-square&logo=linux&color=FCC624&logoColor=black)
![macOS](https://img.shields.io/badge/macOS-%23.svg?style=flat-square&logo=apple&color=000000&logoColor=white)
![Windows](https://img.shields.io/badge/Windows-%23.svg?style=flat-square&logo=windows&color=0078D6&logoColor=white)

[![Top Language](https://img.shields.io/github/languages/top/linrongbin16/lin.nvim?style=flat-square)](https://github.com/linrongbin16/lin.nvim/search?l=lua)
![Repo Size](https://img.shields.io/github/repo-size/linrongbin16/lin.nvim?style=flat-square&)
[![Commit Activity](https://img.shields.io/github/commit-activity/m/linrongbin16/lin.nvim?style=flat-square)](https://github.com/linrongbin16/lin.nvim/graphs/commit-activity)
[![Last Commit](https://img.shields.io/github/last-commit/linrongbin16/lin.nvim/main)](https://github.com/linrongbin16/lin.nvim/commits/main)
[![Contributors](https://img.shields.io/github/contributors/linrongbin16/lin.nvim?style=flat-square)](https://github.com/linrongbin16/lin.nvim/graphs/contributors)
<p align="center">
<a href="https://github.com/neovim/neovim/releases/tag/stable"><img alt="Neovim-stable" src="https://img.shields.io/badge/Neovim-stable-blueviolet.svg?style=flat-square&logo=Neovim&logoColor=green" /></a>
<a href="https://github.com/linrongbin16/lin.nvim/search?l=lua"><img alt="Top Language" src="https://img.shields.io/github/languages/top/linrongbin16/lin.nvim?style=flat-square&label=Lua&logo=lua&logoColor=darkblue" /></a>
<a href="https://github.com/linrongbin16/lin.nvim/blob/main/LICENSE"><img alt="License" src="https://img.shields.io/github/license/linrongbin16/lin.nvim?style=flat-square&logo=GNU&label=License" /></a>
<a href="https://github.com/linrongbin16/lin.nvim/actions/workflows/ci.yml"><img alt="ci.yml" src="https://img.shields.io/github/actions/workflow/status/linrongbin16/lin.nvim/ci.yml?style=flat-square&logo=GitHub&label=Luacheck" /></a>
</p>

> Leave Vim behind, this is the next generation of [lin.vim](https://github.com/linrongbin16/lin.vim).
Expand Down Expand Up @@ -115,7 +110,7 @@ Even `install.sh` (`install.ps1`) already installed the
you still need to manually config it in your terminal, e.g.
[gnome-terminal](https://help.gnome.org/users/gnome-terminal/stable/) (Ubuntu),
[item2](https://iterm2.com/) (MacOS),
[Windows Terminal](https://github.com/microsoft/terminal) (Windows 10),
[Windows Terminal](https://github.com/microsoft/terminal) (Windows),
[kitty](https://sw.kovidgoyal.net/kitty/),
[alacritty](https://github.com/alacritty/alacritty),
[wezterm](https://wezfurlong.org/wezterm/), etc.
Expand Down
1 change: 1 addition & 0 deletions install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ function RustDependency()
InstallOrSkip -command "cargo install ripgrep" -target "rg"
InstallOrSkip -command "cargo install fd-find" -target "fd"
InstallOrSkip -command "cargo install --locked bat" -target "bat"
InstallOrSkip -command "cargo install eza" -target "eza"
}

function GoDependency()
Expand Down
18 changes: 0 additions & 18 deletions lua/plugins/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -83,31 +83,13 @@ local M = {
init = lua_init("inkarkat/vim-mark"),
keys = lua_keys("inkarkat/vim-mark"),
},
{
"haya14busa/is.vim",
event = { VeryLazy, BufReadPre, BufNewFile, CmdlineEnter },
},
{
"markonm/traces.vim",
event = { CmdlineEnter },
},

-- ---- UI ----

-- File explorer
-- {
-- "nvim-tree/nvim-tree.lua",
-- event = { VimEnter },
-- config = lua_config("nvim-tree/nvim-tree.lua"),
-- keys = lua_keys("nvim-tree/nvim-tree.lua"),
-- },
-- {
-- "ms-jpq/chadtree",
-- event = { VimEnter },
-- branch = "chad",
-- build = "python3 -m chadtree deps",
-- init = lua_init("ms-jpq/chadtree"),
-- },
{
"MunifTanjim/nui.nvim",
lazy = true,
Expand Down

0 comments on commit a6067aa

Please sign in to comment.