-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: vim-plug changed as favor of packer.nvim
- Loading branch information
Showing
89 changed files
with
2,404 additions
and
1,649 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,15 @@ | ||
-- vim-plug settings & plugins | ||
require('install-plugins') | ||
|
||
-- speed up loading Lua modules | ||
if pcall(require, 'impatient') then | ||
require('impatient').enable_profile() | ||
if pcall(require, "impatient") then | ||
require("impatient").enable_profile() | ||
else | ||
print("Failed to load impatient.") | ||
print("Failed to load impatient.") | ||
end | ||
|
||
-- packer settings & plugins | ||
require("install-plugins") | ||
|
||
-- generics | ||
require('utils') | ||
require("utils") | ||
|
||
-- vim core settings | ||
require('general') | ||
|
||
-- vim plugins settings | ||
require('plugins') | ||
require("general") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,29 @@ | ||
-- highlight on yank!!! | ||
vim.api.nvim_create_autocmd('TextYankPost', { | ||
pattern = "*", | ||
callback = function() | ||
require("vim.highlight").on_yank({ timeout = 400 }) | ||
end | ||
vim.api.nvim_create_autocmd("TextYankPost", { | ||
pattern = "*", | ||
callback = function() | ||
require("vim.highlight").on_yank({ timeout = 400 }) | ||
end, | ||
}) | ||
|
||
--local groupCursorEffect = vim.api.nvim_create_augroup("HighlighMyCursor", { clear = true }) | ||
--vim.api.nvim_create_autocmd({'WinEnter,BufWinEnter,VimEnter'}, | ||
--{ | ||
--pattern = "*", | ||
--callback = function() | ||
--vim.wo.cursorline = true | ||
--vim.wo.cursorcolumn = true | ||
--end, | ||
--group = groupCursorEffect | ||
--} | ||
--{ | ||
--pattern = "*", | ||
--callback = function() | ||
--vim.wo.cursorline = true | ||
--vim.wo.cursorcolumn = true | ||
--end, | ||
--group = groupCursorEffect | ||
--} | ||
--) | ||
--vim.api.nvim_create_autocmd('WinLeave', | ||
--{ | ||
--pattern = "*", | ||
--callback = function() | ||
--vim.wo.cursorline = false | ||
--vim.wo.cursorcolumn = false | ||
--end, | ||
--group = groupCursorEffect | ||
--} | ||
--{ | ||
--pattern = "*", | ||
--callback = function() | ||
--vim.wo.cursorline = false | ||
--vim.wo.cursorcolumn = false | ||
--end, | ||
--group = groupCursorEffect | ||
--} | ||
--) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,24 @@ | ||
-- clear all registers | ||
vim.api.nvim_exec( | ||
[[ | ||
[[ | ||
fun! EmptyRegisters() | ||
let regs=split('abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789/-"', '\zs') | ||
for r in regs | ||
call setreg(r, []) | ||
endfor | ||
endfun | ||
]], true) | ||
]], | ||
true | ||
) | ||
|
||
-- removes any extraneous whitespace at the end of the lines | ||
vim.api.nvim_exec( | ||
[[ | ||
[[ | ||
fun! TrimWhitespace() | ||
let l:save = winsaveview() | ||
keeppatterns %s/\s\+$//e | ||
call winrestview(l:save) | ||
endfun | ||
]], true) | ||
]], | ||
true | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
vim.api.nvim_set_hl(0, "ActivePreviewWindow", {bg = "#17252c"}) | ||
vim.api.nvim_set_hl(0, "InActivePreviewWindow", {bg = "#0D1B22"}) | ||
vim.api.nvim_set_hl(0, "ActivePreviewWindow", { bg = "#17252c" }) | ||
vim.api.nvim_set_hl(0, "InActivePreviewWindow", { bg = "#0D1B22" }) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
require('general.reloads') | ||
require('general.options') | ||
require('general.autocmds') | ||
require('general.variables') | ||
require('general.keybinds') | ||
require('general.functions') | ||
require('general.highlights') | ||
require("general.reloads") | ||
require("general.options") | ||
require("general.autocmds") | ||
require("general.variables") | ||
require("general.keybinds") | ||
require("general.functions") | ||
require("general.highlights") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
Reload.reload_module('general') | ||
Reload.reload_module('install-plugins') | ||
Reload.reload_module('plugins') | ||
Reload.reload_module("general") | ||
Reload.reload_module("install-plugins") | ||
Reload.reload_module("plugins") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
Variable.g({ | ||
loaded_matchparen = 1, | ||
mapleader = ' ', | ||
loaded_matchparen = 1, | ||
mapleader = " ", | ||
}) | ||
|
||
Variable.g({ | ||
-- neoformat | ||
neoformat_enabled_python = { 'black' }, | ||
-- Enable alignment | ||
neoformat_basic_format_align = 1, | ||
-- Enable tab to spaces conversion | ||
neoformat_basic_format_retab = 1, | ||
-- Enable trimmming of trailing whitespace | ||
neoformat_basic_format_trim = 1, | ||
-- neoformat | ||
neoformat_enabled_python = { "black" }, | ||
-- Enable alignment | ||
neoformat_basic_format_align = 1, | ||
-- Enable tab to spaces conversion | ||
neoformat_basic_format_retab = 1, | ||
-- Enable trimmming of trailing whitespace | ||
neoformat_basic_format_trim = 1, | ||
}) | ||
|
||
Variable.g({ | ||
vim_be_good_log_file = 1, | ||
vim_apm_lig = 1, | ||
python3_host_prog = tostring(os.getenv("HOME")) .. '/.asdf/shims/python', | ||
vim_be_good_log_file = 1, | ||
vim_apm_lig = 1, | ||
python3_host_prog = tostring(os.getenv("HOME")) .. "/.asdf/shims/python", | ||
}) |
Oops, something went wrong.