feat: initial vis config
This commit is contained in:
commit
d3de51fe24
6 files changed
+52
No files matched your search
@@ -0,0 +1 @@
|
||||
plugins/vis-plug/
|
||||
@@ -0,0 +1,14 @@
|
||||
## anth64's visrc.lua
|
||||
|
||||
My configuration for [vis](https://github.com/martanne/vis).
|
||||
|
||||
### Setup
|
||||
|
||||
[vis-plug](https://github.com/erf/vis-plug) manages the plugins:
|
||||
|
||||
```sh
|
||||
git clone https://github.com/erf/vis-plug ~/.config/vis/plugins/vis-plug
|
||||
```
|
||||
|
||||
[ripgrep](https://github.com/BurntSushi/ripgrep), [fzf](https://github.com/junegunn/fzf) and
|
||||
[lua-language-server](https://github.com/LuaLS/lua-language-server) are required.
|
||||
@@ -0,0 +1,3 @@
|
||||
settings = {
|
||||
lua = { "set expandtab on", "set tabwidth 2" },
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
local plug = require("plugins/vis-plug")
|
||||
local n = vis.modes.NORMAL
|
||||
|
||||
vis:map(n, "=", plug.plugins.format.apply)
|
||||
|
||||
vis:map(n, "<C-p>", ":fzf<Enter>")
|
||||
vis:map(n, " pf", ":fzf<Enter>")
|
||||
vis:map(n, " ps", ":grep ")
|
||||
vis:map(n, " pv", ":e .<Enter>")
|
||||
@@ -0,0 +1,5 @@
|
||||
vis.events.subscribe(vis.events.WIN_OPEN, function()
|
||||
vis:command("set number on")
|
||||
vis:command("set relativenumbers on")
|
||||
vis:command("set colorcolumn 80")
|
||||
end)
|
||||
@@ -0,0 +1,20 @@
|
||||
require("vis")
|
||||
|
||||
local plug = require("plugins/vis-plug")
|
||||
|
||||
plug.init({
|
||||
{ "https://codeberg.org/muhq/vis-lspc" },
|
||||
{ "https://codefloe.com/mcepl/vis-fzf-open" },
|
||||
{ "milhnl/vis-format", alias = "format" },
|
||||
{ "jocap/vis-filetype-settings", file = "vis-filetype-settings" },
|
||||
{ "https://codeberg.org/wf/vis-paw" },
|
||||
{ "https://repo.or.cz/vis-quickfix.git", alias = "qf" },
|
||||
{ "przmv/base16-vis", theme = true, file = "themes/base16-brewer" },
|
||||
}, true)
|
||||
|
||||
plug.plugins.format.options.on_save = true
|
||||
plug.plugins.qf.grepprg = "rg --vimgrep --sort path </dev/null"
|
||||
|
||||
require("set")
|
||||
require("remap")
|
||||
require("filetypes")
|
||||
Reference in new issue
Block a user