Initial commit
This commit is contained in:
commit
bb3a44a28a
2 changed files with 115 additions and 0 deletions
27
README.md
Normal file
27
README.md
Normal file
|
@ -0,0 +1,27 @@
|
|||
# VIM Server Config
|
||||
|
||||
My personal configuration for lighter-weight vim config for use on my servers.
|
||||
|
||||
## Installation
|
||||
|
||||
Uses vim-plug.
|
||||
|
||||
### vim
|
||||
|
||||
```
|
||||
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
|
||||
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
|
||||
|
||||
vim +'PlugInstall --sync' +qa
|
||||
```
|
||||
|
||||
### neovim
|
||||
|
||||
```
|
||||
sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \
|
||||
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
|
||||
|
||||
nvim --headless +'PlugInstall --sync' +qa
|
||||
```
|
||||
|
||||
### Headless:
|
88
init.lua
Normal file
88
init.lua
Normal file
|
@ -0,0 +1,88 @@
|
|||
local vim = vim
|
||||
local Plug = vim.fn["plug#"]
|
||||
|
||||
-- ========================================================== BEGIN = PLUGINS ===================
|
||||
vim.call("plug#begin")
|
||||
-- require("config.plugins")
|
||||
-- Shorthand notation for GitHub; translates to https://github.com/junegunn/seoul256.vim.git
|
||||
-- Plug("junegunn/seoul256.vim")
|
||||
Plug("nanotech/jellybeans.vim")
|
||||
Plug("datsfilipe/vesper.nvim")
|
||||
|
||||
-- Any valid git URL is allowed
|
||||
Plug("junegunn/vim-easy-align")
|
||||
|
||||
-- Post-update hook: run a shell command after installing or updating the plugin
|
||||
Plug("junegunn/fzf", { ["dir"] = "~/.fzf", ["do"] = "./install --all" })
|
||||
|
||||
-- On-demand loading: loaded when the specified command is executed
|
||||
Plug("preservim/nerdtree", { ["on"] = "NERDTreeToggle" })
|
||||
|
||||
Plug("tpope/vim-sensible")
|
||||
Plug("echasnovski/mini.nvim", { ["branch"] = "stable" })
|
||||
|
||||
Plug("nvim-tree/nvim-web-devicons") -- OPTIONAL: for file icons
|
||||
Plug("lewis6991/gitsigns.nvim") -- OPTIONAL: for git status
|
||||
Plug("romgrk/barbar.nvim")
|
||||
-- Plug("rebelot/heirline.nvim")
|
||||
|
||||
-- Plug("liuchengxu/vim-which-key", { ["on"] = ['WhichKey', 'WhichKey!'] })
|
||||
Plug("liuchengxu/vim-which-key")
|
||||
Plug("AckslD/nvim-whichkey-setup.lua")
|
||||
|
||||
vim.call("plug#end")
|
||||
-- ============================================================ END = PLUGINS ===================
|
||||
|
||||
-- Color schemes should be loaded after plug#end().
|
||||
-- We prepend it with 'silent!' to ignore errors when it's not yet installed.
|
||||
-- vim.cmd("silent! colorscheme jellybeans")
|
||||
vim.cmd("silent! set termguicolors")
|
||||
vim.cmd("silent! set number")
|
||||
vim.cmd("silent! set relativenumber")
|
||||
|
||||
require("vesper").setup({
|
||||
transparent = true,
|
||||
italics = {
|
||||
comments = true,
|
||||
keywords = true,
|
||||
functions = true,
|
||||
strings = true,
|
||||
variables = true,
|
||||
},
|
||||
overrides = {},
|
||||
palette_overrides = {},
|
||||
})
|
||||
|
||||
require("mini.starter").setup()
|
||||
require("mini.icons").setup()
|
||||
-- require('mini.tabline').setup()
|
||||
require("mini.statusline").setup()
|
||||
require("mini.notify").setup()
|
||||
require("mini.indentscope").setup()
|
||||
-- require('mini.ai').setup()
|
||||
-- require('mini.surround').setup()
|
||||
|
||||
vim.g.barbar_auto_setup = false -- disable auto-setup
|
||||
require("barbar").setup({
|
||||
animation = true,
|
||||
auto_hide = false,
|
||||
tabpages = true,
|
||||
clickable = true,
|
||||
})
|
||||
|
||||
-- require("whichkey_setup").config{
|
||||
-- hide_statusline = false,
|
||||
-- default_keymap_settings = {
|
||||
-- silent = true,
|
||||
-- noremap = true,
|
||||
-- },
|
||||
-- default_mode = 'n',
|
||||
-- }
|
||||
|
||||
-- vim.cmd("let g:mapleader = '<Space>'")
|
||||
-- vim.cmd("let g:maplocalleader = ','")
|
||||
-- vim.cmd("nnoremap <silent> <leader> :<c-u>WhichKey '<Space>'<CR>")
|
||||
-- vim.cmd("nnoremap <silent> <localleader> :<c-u>WhichKey ','<CR>")
|
||||
|
||||
-- require('heirline').setup()
|
||||
--
|
Loading…
Add table
Add a link
Reference in a new issue