modify gitignore, keybinds shade config
This commit is contained in:
parent
6d31cfec51
commit
892f76f591
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,2 +1,2 @@
|
|||||||
*.sh
|
*.sh
|
||||||
./plugin/
|
plugin/*
|
||||||
|
@ -3,6 +3,7 @@ local opt = vim.o
|
|||||||
local global = vim.g
|
local global = vim.g
|
||||||
|
|
||||||
-- look and feel
|
-- look and feel
|
||||||
|
vim.opt.shortmess:append({ I = true }) -- remove intro message
|
||||||
opt.relativenumber = true
|
opt.relativenumber = true
|
||||||
opt.number = true
|
opt.number = true
|
||||||
opt.showmode = false
|
opt.showmode = false
|
||||||
@ -19,8 +20,10 @@ opt.smartindent = true
|
|||||||
opt.mouse = "i"
|
opt.mouse = "i"
|
||||||
|
|
||||||
-- completion for lua
|
-- completion for lua
|
||||||
opt.completeopt = 'menuone,noselect'
|
opt.completeopt = 'noinsert'
|
||||||
|
|
||||||
-- neoformat settings.
|
-- neoformat settings.
|
||||||
global.neoformat_basic_format_align = 1
|
global.neoformat_basic_format_align = 1
|
||||||
global.neoformat_basic_format_trim = 1
|
global.neoformat_basic_format_trim = 1
|
||||||
|
-- leader settings
|
||||||
|
global.mapleader = ' '
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
-- generic mappings
|
-- generic mappings
|
||||||
|
|
||||||
vim.api.nvim_set_keymap('v', '<', '<gv', {noremap = true})
|
vim.api.nvim_set_keymap('v', '<', '<gv', {noremap = true})
|
||||||
vim.api.nvim_set_keymap('v', '>', '>gv', {noremap = true})
|
vim.api.nvim_set_keymap('v', '>', '>gv', {noremap = true})
|
||||||
vim.api.nvim_set_keymap('n', 'Y', 'y$', {noremap = true})
|
vim.api.nvim_set_keymap('n', 'Y', 'y$', {noremap = true})
|
||||||
@ -21,3 +20,20 @@ vim.api.nvim_set_keymap('i', ',', ',<c-g>u', {noremap = true})
|
|||||||
vim.api.nvim_set_keymap('i', '.', '.<c-g>u', {noremap = true})
|
vim.api.nvim_set_keymap('i', '.', '.<c-g>u', {noremap = true})
|
||||||
vim.api.nvim_set_keymap('i', '!', '!<c-g>u', {noremap = true})
|
vim.api.nvim_set_keymap('i', '!', '!<c-g>u', {noremap = true})
|
||||||
vim.api.nvim_set_keymap('i', '?', '?<c-g>u', {noremap = true})
|
vim.api.nvim_set_keymap('i', '?', '?<c-g>u', {noremap = true})
|
||||||
|
|
||||||
|
-- plugin mappings
|
||||||
|
-- toggle NvimTree
|
||||||
|
vim.api.nvim_set_keymap('', '<C-n>', ':NvimTreeToggle<cr>', {})
|
||||||
|
-- toggle formatter
|
||||||
|
vim.api.nvim_set_keymap('', '<leader>fm', ':Neoformat<cr>', {})
|
||||||
|
vim.api.nvim_set_keymap('', '<leader>/', ':CommentToggle<cr>', {})
|
||||||
|
vim.api.nvim_set_keymap('', '<leader>r', ':SnipRun<cr>', {})
|
||||||
|
vim.api.nvim_set_keymap('', '<leader>b', ':HopWordBC<cr>', {})
|
||||||
|
vim.api.nvim_set_keymap('', '<leader>w', ':HopWordAC<cr>', {})
|
||||||
|
vim.api.nvim_set_keymap('', '<leader>k', ':HopLineStartBC<cr>', {})
|
||||||
|
vim.api.nvim_set_keymap('', '<leader>j', ':HopLineStartAC<cr>', {})
|
||||||
|
vim.api.nvim_set_keymap('', '<leader>tf', ':Telescope fd<cr>', {})
|
||||||
|
vim.api.nvim_set_keymap('', '<leader>tdd',
|
||||||
|
':Telescope lsp_document_diagnostics<cr>', {})
|
||||||
|
vim.api.nvim_set_keymap('', '<leader>tdw',
|
||||||
|
':Telescope lsp_workspace_diagnostics<cr>', {})
|
||||||
|
@ -28,7 +28,7 @@ return require('packer').startup(function(use)
|
|||||||
}
|
}
|
||||||
use {
|
use {
|
||||||
'RRethy/nvim-base16',
|
'RRethy/nvim-base16',
|
||||||
event = 'VimEnter',
|
after = 'packer.nvim',
|
||||||
config = function() require "plugins.base16" end
|
config = function() require "plugins.base16" end
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -54,9 +54,15 @@ return require('packer').startup(function(use)
|
|||||||
'ms-jpq/coq_nvim',
|
'ms-jpq/coq_nvim',
|
||||||
branch = 'coq',
|
branch = 'coq',
|
||||||
event = 'BufEnter',
|
event = 'BufEnter',
|
||||||
|
run = ':COQdeps',
|
||||||
config = function() require "plugins.coq" end
|
config = function() require "plugins.coq" end
|
||||||
}
|
}
|
||||||
use {'ms-jpq/coq.artifacts', after = 'coq_nvim', branch = 'artifacts'}
|
use {
|
||||||
|
'ms-jpq/coq.artifacts',
|
||||||
|
run = ':COQdeps',
|
||||||
|
after = 'coq_nvim',
|
||||||
|
branch = 'artifacts'
|
||||||
|
}
|
||||||
|
|
||||||
-- formating and editing
|
-- formating and editing
|
||||||
use {"sbdchd/neoformat", cmd = "Neoformat"}
|
use {"sbdchd/neoformat", cmd = "Neoformat"}
|
||||||
@ -111,7 +117,7 @@ return require('packer').startup(function(use)
|
|||||||
-- eye-candy
|
-- eye-candy
|
||||||
use {
|
use {
|
||||||
'sunjon/shade.nvim',
|
'sunjon/shade.nvim',
|
||||||
event = "BufAdd",
|
event = "VimEnter",
|
||||||
config = function() require "plugins.shade" end
|
config = function() require "plugins.shade" end
|
||||||
}
|
}
|
||||||
use {
|
use {
|
||||||
|
@ -1,7 +1,4 @@
|
|||||||
require'shade'.setup({
|
require'shade'.setup({
|
||||||
overlay_opacity = 50,
|
overlay_opacity = 70,
|
||||||
opacity_step = 1,
|
keys = {toggle = '<Leader>s'}
|
||||||
keys = {
|
|
||||||
toggle = '<Leader>s',
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
|
@ -141,6 +141,9 @@ _G.packer_plugins = {
|
|||||||
["nvim-base16"] = {
|
["nvim-base16"] = {
|
||||||
after = { "indent-blankline.nvim" },
|
after = { "indent-blankline.nvim" },
|
||||||
config = { "\27LJ\1\2.\0\0\2\0\2\0\0044\0\0\0%\1\1\0>\0\2\1G\0\1\0\19plugins.base16\frequire\0" },
|
config = { "\27LJ\1\2.\0\0\2\0\2\0\0044\0\0\0%\1\1\0>\0\2\1G\0\1\0\19plugins.base16\frequire\0" },
|
||||||
|
load_after = {
|
||||||
|
["packer.nvim"] = true
|
||||||
|
},
|
||||||
loaded = false,
|
loaded = false,
|
||||||
needs_bufread = false,
|
needs_bufread = false,
|
||||||
path = "/home/juan/.local/share/nvim/site/pack/packer/opt/nvim-base16"
|
path = "/home/juan/.local/share/nvim/site/pack/packer/opt/nvim-base16"
|
||||||
@ -208,7 +211,7 @@ _G.packer_plugins = {
|
|||||||
path = "/home/juan/.local/share/nvim/site/pack/packer/opt/nvim-web-devicons"
|
path = "/home/juan/.local/share/nvim/site/pack/packer/opt/nvim-web-devicons"
|
||||||
},
|
},
|
||||||
["packer.nvim"] = {
|
["packer.nvim"] = {
|
||||||
after = { "nvim-web-devicons" },
|
after = { "nvim-web-devicons", "nvim-base16" },
|
||||||
loaded = false,
|
loaded = false,
|
||||||
needs_bufread = false,
|
needs_bufread = false,
|
||||||
path = "/home/juan/.local/share/nvim/site/pack/packer/opt/packer.nvim"
|
path = "/home/juan/.local/share/nvim/site/pack/packer/opt/packer.nvim"
|
||||||
@ -308,11 +311,10 @@ vim.cmd [[augroup packer_load_aucmds]]
|
|||||||
vim.cmd [[au!]]
|
vim.cmd [[au!]]
|
||||||
-- Event lazy-loads
|
-- Event lazy-loads
|
||||||
time([[Defining lazy-load event autocommands]], true)
|
time([[Defining lazy-load event autocommands]], true)
|
||||||
vim.cmd [[au BufRead * ++once lua require("packer.load")({'vim-sandwich', 'nvim-colorizer.lua', 'range-highlight.nvim', 'hop'}, { event = "BufRead *" }, _G.packer_plugins)]]
|
|
||||||
vim.cmd [[au BufAdd * ++once lua require("packer.load")({'shade.nvim'}, { event = "BufAdd *" }, _G.packer_plugins)]]
|
|
||||||
vim.cmd [[au VimEnter * ++once lua require("packer.load")({'nvim-treesitter', 'packer.nvim', 'nvim-base16'}, { event = "VimEnter *" }, _G.packer_plugins)]]
|
|
||||||
vim.cmd [[au FileType html,css ++once lua require("packer.load")({'emmet-vim'}, { event = "FileType html,css" }, _G.packer_plugins)]]
|
|
||||||
vim.cmd [[au BufEnter * ++once lua require("packer.load")({'coq_nvim'}, { event = "BufEnter *" }, _G.packer_plugins)]]
|
vim.cmd [[au BufEnter * ++once lua require("packer.load")({'coq_nvim'}, { event = "BufEnter *" }, _G.packer_plugins)]]
|
||||||
|
vim.cmd [[au FileType html,css ++once lua require("packer.load")({'emmet-vim'}, { event = "FileType html,css" }, _G.packer_plugins)]]
|
||||||
|
vim.cmd [[au VimEnter * ++once lua require("packer.load")({'nvim-treesitter', 'packer.nvim', 'shade.nvim'}, { event = "VimEnter *" }, _G.packer_plugins)]]
|
||||||
|
vim.cmd [[au BufRead * ++once lua require("packer.load")({'vim-sandwich', 'nvim-colorizer.lua', 'range-highlight.nvim', 'hop'}, { event = "BufRead *" }, _G.packer_plugins)]]
|
||||||
time([[Defining lazy-load event autocommands]], false)
|
time([[Defining lazy-load event autocommands]], false)
|
||||||
vim.cmd("augroup END")
|
vim.cmd("augroup END")
|
||||||
if should_profile then save_profiles() end
|
if should_profile then save_profiles() end
|
||||||
|
Loading…
Reference in New Issue
Block a user