-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: re-indent existing Lua code to use spaces
- Loading branch information
Showing
19 changed files
with
141 additions
and
141 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
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,40 +1,40 @@ | ||
-- Bootstrap lazy.nvim | ||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" | ||
if not (vim.uv or vim.loop).fs_stat(lazypath) then | ||
local lazyrepo = "https://github.com/folke/lazy.nvim.git" | ||
local out = vim.fn.system({ | ||
"git", | ||
"clone", | ||
"--filter=blob:none", | ||
"--branch=stable", | ||
lazyrepo, | ||
lazypath, | ||
}) | ||
if vim.v.shell_error ~= 0 then | ||
vim.api.nvim_echo({ | ||
{ "Failed to clone lazy.nvim:\n", "ErrorMsg" }, | ||
{ out, "WarningMsg" }, | ||
{ "\nPress any key to exit..." }, | ||
}, true, {}) | ||
vim.fn.getchar() | ||
os.exit(1) | ||
end | ||
local lazyrepo = "https://github.com/folke/lazy.nvim.git" | ||
local out = vim.fn.system({ | ||
"git", | ||
"clone", | ||
"--filter=blob:none", | ||
"--branch=stable", | ||
lazyrepo, | ||
lazypath, | ||
}) | ||
if vim.v.shell_error ~= 0 then | ||
vim.api.nvim_echo({ | ||
{ "Failed to clone lazy.nvim:\n", "ErrorMsg" }, | ||
{ out, "WarningMsg" }, | ||
{ "\nPress any key to exit..." }, | ||
}, true, {}) | ||
vim.fn.getchar() | ||
os.exit(1) | ||
end | ||
end | ||
vim.opt.rtp:prepend(lazypath) | ||
|
||
-- Setup lazy.nvim | ||
require("lazy").setup({ | ||
spec = { | ||
-- import your plugins | ||
{ import = "plugins" }, | ||
}, | ||
-- colorscheme that will be used when installing plugins. | ||
install = { colorscheme = { "solarized" } }, | ||
-- automatically check for plugin updates | ||
checker = { enabled = true }, | ||
change_detection = { | ||
-- automatically check for config file changes and reload the ui | ||
enabled = true, | ||
notify = false, -- don't get a notification when changes are found | ||
}, | ||
spec = { | ||
-- import your plugins | ||
{ import = "plugins" }, | ||
}, | ||
-- colorscheme that will be used when installing plugins. | ||
install = { colorscheme = { "solarized" } }, | ||
-- automatically check for plugin updates | ||
checker = { enabled = true }, | ||
change_detection = { | ||
-- automatically check for config file changes and reload the ui | ||
enabled = true, | ||
notify = false, -- don't get a notification when changes are found | ||
}, | ||
}) |
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 @@ | ||
return { | ||
{ "bullets-vim/bullets.vim" }, | ||
{ "bullets-vim/bullets.vim" }, | ||
} |
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 @@ | ||
return { | ||
{ "chrisbra/csv.vim" }, | ||
{ "chrisbra/csv.vim" }, | ||
} |
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,11 +1,11 @@ | ||
return { | ||
{ | ||
"junegunn/vim-easy-align", | ||
keys = { | ||
-- Start interactive EasyAlign in visual mode (e.g. vipga) | ||
{ "ga", "<Plug>(EasyAlign)", mode = "x" }, | ||
-- Start interactive EasyAlign for a motion/text object (e.g. gaip) | ||
{ "ga", "<Plug>(EasyAlign)" }, | ||
}, | ||
}, | ||
{ | ||
"junegunn/vim-easy-align", | ||
keys = { | ||
-- Start interactive EasyAlign in visual mode (e.g. vipga) | ||
{ "ga", "<Plug>(EasyAlign)", mode = "x" }, | ||
-- Start interactive EasyAlign for a motion/text object (e.g. gaip) | ||
{ "ga", "<Plug>(EasyAlign)" }, | ||
}, | ||
}, | ||
} |
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 @@ | ||
return { | ||
{ "tpope/vim-fugitive" }, | ||
{ "tpope/vim-fugitive" }, | ||
} |
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,62 +1,62 @@ | ||
return { | ||
{ | ||
"lewis6991/gitsigns.nvim", | ||
lazy = false, | ||
config = function() | ||
require("gitsigns").setup({ | ||
on_attach = function(bufnr) | ||
local gitsigns = require("gitsigns") | ||
{ | ||
"lewis6991/gitsigns.nvim", | ||
lazy = false, | ||
config = function() | ||
require("gitsigns").setup({ | ||
on_attach = function(bufnr) | ||
local gitsigns = require("gitsigns") | ||
|
||
local function map(mode, l, r, opts) | ||
opts = opts or {} | ||
opts.buffer = bufnr | ||
vim.keymap.set(mode, l, r, opts) | ||
end | ||
local function map(mode, l, r, opts) | ||
opts = opts or {} | ||
opts.buffer = bufnr | ||
vim.keymap.set(mode, l, r, opts) | ||
end | ||
|
||
-- Navigation | ||
map("n", "]c", function() | ||
if vim.wo.diff then | ||
vim.cmd.normal({ "]c", bang = true }) | ||
else | ||
gitsigns.nav_hunk("next") | ||
end | ||
end) | ||
-- Navigation | ||
map("n", "]c", function() | ||
if vim.wo.diff then | ||
vim.cmd.normal({ "]c", bang = true }) | ||
else | ||
gitsigns.nav_hunk("next") | ||
end | ||
end) | ||
|
||
map("n", "[c", function() | ||
if vim.wo.diff then | ||
vim.cmd.normal({ "[c", bang = true }) | ||
else | ||
gitsigns.nav_hunk("prev") | ||
end | ||
end) | ||
map("n", "[c", function() | ||
if vim.wo.diff then | ||
vim.cmd.normal({ "[c", bang = true }) | ||
else | ||
gitsigns.nav_hunk("prev") | ||
end | ||
end) | ||
|
||
-- Actions | ||
map("n", "<leader>hs", gitsigns.stage_hunk) | ||
map("n", "<leader>hr", gitsigns.reset_hunk) | ||
map("v", "<leader>hs", function() | ||
gitsigns.stage_hunk({ vim.fn.line("."), vim.fn.line("v") }) | ||
end) | ||
map("v", "<leader>hr", function() | ||
gitsigns.reset_hunk({ vim.fn.line("."), vim.fn.line("v") }) | ||
end) | ||
map("n", "<leader>hS", gitsigns.stage_buffer) | ||
map("n", "<leader>hu", gitsigns.undo_stage_hunk) | ||
map("n", "<leader>hR", gitsigns.reset_buffer) | ||
map("n", "<leader>hp", gitsigns.preview_hunk) | ||
map("n", "<leader>hb", function() | ||
gitsigns.blame_line({ full = true }) | ||
end) | ||
map("n", "<leader>tb", gitsigns.toggle_current_line_blame) | ||
map("n", "<leader>hd", gitsigns.diffthis) | ||
map("n", "<leader>hD", function() | ||
gitsigns.diffthis("~") | ||
end) | ||
map("n", "<leader>td", gitsigns.toggle_deleted) | ||
-- Actions | ||
map("n", "<leader>hs", gitsigns.stage_hunk) | ||
map("n", "<leader>hr", gitsigns.reset_hunk) | ||
map("v", "<leader>hs", function() | ||
gitsigns.stage_hunk({ vim.fn.line("."), vim.fn.line("v") }) | ||
end) | ||
map("v", "<leader>hr", function() | ||
gitsigns.reset_hunk({ vim.fn.line("."), vim.fn.line("v") }) | ||
end) | ||
map("n", "<leader>hS", gitsigns.stage_buffer) | ||
map("n", "<leader>hu", gitsigns.undo_stage_hunk) | ||
map("n", "<leader>hR", gitsigns.reset_buffer) | ||
map("n", "<leader>hp", gitsigns.preview_hunk) | ||
map("n", "<leader>hb", function() | ||
gitsigns.blame_line({ full = true }) | ||
end) | ||
map("n", "<leader>tb", gitsigns.toggle_current_line_blame) | ||
map("n", "<leader>hd", gitsigns.diffthis) | ||
map("n", "<leader>hD", function() | ||
gitsigns.diffthis("~") | ||
end) | ||
map("n", "<leader>td", gitsigns.toggle_deleted) | ||
|
||
-- Text object | ||
map({ "o", "x" }, "ih", ":<C-U>Gitsigns select_hunk<CR>") | ||
end, | ||
}) | ||
end, | ||
}, | ||
-- Text object | ||
map({ "o", "x" }, "ih", ":<C-U>Gitsigns select_hunk<CR>") | ||
end, | ||
}) | ||
end, | ||
}, | ||
} |
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 @@ | ||
return { | ||
{ "ludovicchabant/vim-gutentags" }, | ||
{ "ludovicchabant/vim-gutentags" }, | ||
} |
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,12 +1,12 @@ | ||
return { | ||
{ | ||
"brenoprata10/nvim-highlight-colors", | ||
lazy = false, | ||
config = function() | ||
require("nvim-highlight-colors").setup({ | ||
render = "virtual", | ||
enable_named_colors = false, | ||
}) | ||
end, | ||
}, | ||
{ | ||
"brenoprata10/nvim-highlight-colors", | ||
lazy = false, | ||
config = function() | ||
require("nvim-highlight-colors").setup({ | ||
render = "virtual", | ||
enable_named_colors = false, | ||
}) | ||
end, | ||
}, | ||
} |
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 @@ | ||
return { | ||
{ "farmergreg/vim-lastplace" }, | ||
{ "farmergreg/vim-lastplace" }, | ||
} |
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,10 +1,10 @@ | ||
return { | ||
{ | ||
"ishan9299/nvim-solarized-lua", | ||
lazy = false, | ||
priority = 1000, | ||
config = function() | ||
vim.cmd([[ colorscheme solarized ]]) | ||
end, | ||
}, | ||
{ | ||
"ishan9299/nvim-solarized-lua", | ||
lazy = false, | ||
priority = 1000, | ||
config = function() | ||
vim.cmd([[ colorscheme solarized ]]) | ||
end, | ||
}, | ||
} |
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 @@ | ||
return { | ||
{ "tpope/vim-obsession" }, | ||
{ "tpope/vim-obsession" }, | ||
} |
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 @@ | ||
return { | ||
{ "tpope/vim-repeat" }, | ||
{ "tpope/vim-repeat" }, | ||
} |
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 @@ | ||
return { | ||
{ "tpope/vim-rhubarb" }, | ||
{ "tpope/vim-rhubarb" }, | ||
} |
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 @@ | ||
return { | ||
{ "tpope/vim-sleuth" }, | ||
{ "tpope/vim-sleuth" }, | ||
} |
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 @@ | ||
return { | ||
{ "tpope/vim-surround" }, | ||
{ "tpope/vim-surround" }, | ||
} |
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 @@ | ||
return { | ||
{ "tomtom/tcomment_vim" }, | ||
{ "tomtom/tcomment_vim" }, | ||
} |
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,11 +1,11 @@ | ||
return { | ||
{ | ||
"kana/vim-textobj-user", | ||
priority = 100, | ||
}, | ||
{ "kana/vim-textobj-line" }, | ||
{ "kana/vim-textobj-indent" }, | ||
{ "kana/vim-textobj-entire" }, | ||
{ "beloglazov/vim-textobj-quotes" }, | ||
{ "christoomey/vim-textobj-codeblock" }, | ||
{ | ||
"kana/vim-textobj-user", | ||
priority = 100, | ||
}, | ||
{ "kana/vim-textobj-line" }, | ||
{ "kana/vim-textobj-indent" }, | ||
{ "kana/vim-textobj-entire" }, | ||
{ "beloglazov/vim-textobj-quotes" }, | ||
{ "christoomey/vim-textobj-codeblock" }, | ||
} |
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,8 +1,8 @@ | ||
return { | ||
{ | ||
"chaoren/vim-wordmotion", | ||
init = function() | ||
vim.g.wordmotion_prefix = "<leader>" | ||
end, | ||
}, | ||
{ | ||
"chaoren/vim-wordmotion", | ||
init = function() | ||
vim.g.wordmotion_prefix = "<leader>" | ||
end, | ||
}, | ||
} |