-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update nvim configs, add kubectl zsh plugin
- Loading branch information
Showing
19 changed files
with
192 additions
and
53 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
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
local function table_slice(tbl, first, last, step) | ||
local sliced = {} | ||
|
||
for i = first or 1, last or #tbl, step or 1 do | ||
sliced[#sliced+1] = tbl[i] | ||
end | ||
|
||
return sliced | ||
end | ||
|
||
return { table_slice = table_slice } |
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,5 +1,6 @@ | ||
function install(use) | ||
local function install(use) | ||
use 'nono/vim-handlebars' | ||
use 'jidn/vim-dbml' | ||
end | ||
|
||
return { | ||
|
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
local keys = { | ||
m = { | ||
name = "markdown", | ||
p = { "<cmd>Glow keep<CR>", "Preview" }, | ||
h = { "<cmd>Glow preview<CR>", "Hover Preview" }, | ||
s = { "<cmd>Glow split<CR>", "Split Preview" }, | ||
} | ||
} | ||
|
||
local function install(use) | ||
-- use {"ellisonleao/glow.nvim"} | ||
use {"lnc3l0t/glow.nvim", branch = "advanced_window"} | ||
end | ||
|
||
local function setup() | ||
require("glow").setup({ | ||
in_place = true, | ||
-- pager = true, | ||
}) | ||
end | ||
|
||
|
||
return { | ||
install = install, | ||
setup = setup, | ||
keys = keys, | ||
} |
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,15 @@ | ||
local api = vim.api | ||
|
||
local function install(use) | ||
use({ "yardnsm/vim-import-cost", run = "npm install" }) | ||
end | ||
|
||
local function post_setup() | ||
api.nvim_command(':highlight link ImportCostVirtualText Comment') | ||
api.nvim_command('au FileType typescript,typescriptreact,javascript,javascriptreact :silent! ImportCost') | ||
end | ||
|
||
return { | ||
install = install, | ||
post_setup = post_setup, | ||
} |
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
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
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
Oops, something went wrong.