-
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.
nvim: shift module styling and core plugins
- Loading branch information
Showing
35 changed files
with
468 additions
and
639 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,3 +1,30 @@ | ||
matches: | ||
- trigger: "//md" | ||
replace: "{{output}}" | ||
vars: | ||
- name: clipboard | ||
type: clipboard | ||
- name: output | ||
type: shell | ||
params: | ||
cmd: "gh md link {{clipboard}}" | ||
- trigger: "//ml" | ||
replace: "{{output}}" | ||
vars: | ||
- name: clipboard | ||
type: clipboard | ||
- name: output | ||
type: shell | ||
params: | ||
cmd: "gh md link --simple {{clipboard}}" | ||
- trigger: "//ir" | ||
replace: "{{output}}" | ||
vars: | ||
- name: clipboard | ||
type: clipboard | ||
- name: output | ||
type: shell | ||
params: | ||
cmd: "gh md ref {{clipboard}}" | ||
- trigger: "//mp" | ||
replace: "Monolith Platform" |
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,39 +1,36 @@ | ||
local M = { | ||
return { | ||
"catppuccin/nvim", | ||
name = "catppuccin", | ||
} | ||
|
||
function M.config() | ||
local catppuccin = require("catppuccin") | ||
config = function() | ||
local catppuccin = require("catppuccin") | ||
|
||
catppuccin.setup({ | ||
flavour = "mocha", | ||
styles = { | ||
comments = { "italic" }, | ||
conditionals = {}, | ||
loops = {}, | ||
functions = {}, | ||
keywords = {}, | ||
strings = {}, | ||
variables = {}, | ||
numbers = {}, | ||
booleans = {}, | ||
properties = {}, | ||
types = {}, | ||
operators = {}, | ||
}, | ||
integrations = { | ||
cmp = true, | ||
fern = true, | ||
telescope = true, | ||
lsp_saga = true, | ||
indent_blankline = { | ||
enabled = true, | ||
catppuccin.setup({ | ||
flavour = "mocha", | ||
styles = { | ||
comments = { "italic" }, | ||
conditionals = {}, | ||
loops = {}, | ||
functions = {}, | ||
keywords = {}, | ||
strings = {}, | ||
variables = {}, | ||
numbers = {}, | ||
booleans = {}, | ||
properties = {}, | ||
types = {}, | ||
operators = {}, | ||
}, | ||
}, | ||
}) | ||
|
||
vim.api.nvim_command("colorscheme catppuccin") | ||
end | ||
integrations = { | ||
cmp = true, | ||
fern = true, | ||
telescope = true, | ||
lsp_saga = true, | ||
indent_blankline = { | ||
enabled = true, | ||
}, | ||
}, | ||
}) | ||
|
||
return M | ||
vim.api.nvim_command("colorscheme catppuccin") | ||
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,27 +1,24 @@ | ||
local M = { | ||
{ | ||
'xvzc/chezmoi.nvim', | ||
dependencies = { 'nvim-lua/plenary.nvim', | ||
{ | ||
'alker0/chezmoi.vim', | ||
lazy = false, | ||
init = function() | ||
vim.g['chezmoi#use_tmp_buffer'] = true | ||
end, | ||
}, | ||
}, | ||
config = function() | ||
require("chezmoi").setup({}) | ||
return { | ||
"xvzc/chezmoi.nvim", | ||
dependencies = { | ||
"nvim-lua/plenary.nvim", | ||
{ | ||
"alker0/chezmoi.vim", | ||
lazy = false, | ||
init = function() | ||
vim.g["chezmoi#use_tmp_buffer"] = true | ||
end, | ||
}, | ||
}, | ||
config = function() | ||
require("chezmoi").setup({}) | ||
|
||
-- Apply chances when editing any file inside the chezmoi directory | ||
vim.api.nvim_create_autocmd({ "BufRead", "BufNewFile" }, { | ||
pattern = { os.getenv("HOME") .. "/.local/share/chezmoi/*" }, | ||
callback = function() | ||
vim.schedule(require("chezmoi.commands.__edit").watch) | ||
end, | ||
}) | ||
end | ||
}, | ||
-- Apply chances when editing any file inside the chezmoi directory | ||
vim.api.nvim_create_autocmd({ "BufRead", "BufNewFile" }, { | ||
pattern = { os.getenv("HOME") .. "/.local/share/chezmoi/*" }, | ||
callback = function() | ||
vim.schedule(require("chezmoi.commands.__edit").watch) | ||
end, | ||
}) | ||
end, | ||
} | ||
|
||
return M |
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,6 @@ | ||
local g = vim.g | ||
|
||
local M = { | ||
return { | ||
"numToStr/Comment.nvim", | ||
config = function() | ||
require("Comment").setup() | ||
end, | ||
} | ||
|
||
function M.config() | ||
local comment = require("Comment") | ||
comment.setup() | ||
end | ||
|
||
return M |
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,15 +1,11 @@ | ||
local M = { | ||
-- Co-pilot | ||
return { | ||
"zbirenbaum/copilot.lua", | ||
event = "VeryLazy", | ||
dependencies = { | ||
"zbirenbaum/copilot-cmp", | ||
}, | ||
config = function() | ||
require("copilot").setup() | ||
require("copilot_cmp").setup() | ||
end, | ||
} | ||
|
||
function M.config() | ||
require("copilot").setup() | ||
require("copilot_cmp").setup() | ||
end | ||
|
||
return M |
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,13 +1,10 @@ | ||
local M = { | ||
return { | ||
"saecki/crates.nvim", | ||
ft = { "rust", "toml" }, | ||
} | ||
|
||
function M.config() | ||
local crates = require("crates") | ||
config = function() | ||
local crates = require("crates") | ||
|
||
crates.setup() | ||
crates.show() | ||
end | ||
|
||
return M | ||
crates.setup() | ||
crates.show() | ||
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,6 +1,4 @@ | ||
local M = { | ||
return { | ||
"sindrets/diffview.nvim", | ||
dependencies = { "nvim-lua/plenary.nvim" }, | ||
} | ||
|
||
return M |
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,17 +1,12 @@ | ||
local cmd = vim.cmd | ||
|
||
local M = { | ||
return { | ||
"lambdalisue/glyph-palette.vim", | ||
config = function() | ||
vim.cmd([[ | ||
augroup GlyphPaletteGroup | ||
autocmd! | ||
autocmd FileType fern call glyph_palette#apply() | ||
autocmd FileType nerdtree,startify call glyph_palette#apply() | ||
augroup END | ||
]]) | ||
end, | ||
} | ||
|
||
function M.config() | ||
cmd([[ | ||
augroup GlyphPaletteGroup | ||
autocmd! | ||
autocmd FileType fern call glyph_palette#apply() | ||
autocmd FileType nerdtree,startify call glyph_palette#apply() | ||
augroup END | ||
]]) | ||
end | ||
|
||
return M |
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,39 +1,36 @@ | ||
local M = { | ||
return { | ||
"lukas-reineke/indent-blankline.nvim", | ||
event = "BufReadPre", | ||
dependencies = { | ||
"https://gitlab.com/HiPhish/rainbow-delimiters.nvim", | ||
}, | ||
} | ||
|
||
function M.config() | ||
local indent_blankline = require("ibl") | ||
local ibl_hooks = require("ibl.hooks") | ||
local rainbow_delimiters = require("rainbow-delimiters.setup") | ||
config = function() | ||
local indent_blankline = require("ibl") | ||
local ibl_hooks = require("ibl.hooks") | ||
local rainbow_delimiters = require("rainbow-delimiters.setup") | ||
|
||
local highlight = { | ||
"RainbowRed", | ||
"RainbowYellow", | ||
"RainbowBlue", | ||
"RainbowOrange", | ||
"RainbowGreen", | ||
"RainbowViolet", | ||
"RainbowCyan", | ||
} | ||
local highlight = { | ||
"RainbowRed", | ||
"RainbowYellow", | ||
"RainbowBlue", | ||
"RainbowOrange", | ||
"RainbowGreen", | ||
"RainbowViolet", | ||
"RainbowCyan", | ||
} | ||
|
||
ibl_hooks.register(ibl_hooks.type.HIGHLIGHT_SETUP, function() | ||
vim.api.nvim_set_hl(0, "RainbowRed", { fg = "#E06C75" }) | ||
vim.api.nvim_set_hl(0, "RainbowYellow", { fg = "#E5C07B" }) | ||
vim.api.nvim_set_hl(0, "RainbowBlue", { fg = "#61AFEF" }) | ||
vim.api.nvim_set_hl(0, "RainbowOrange", { fg = "#D19A66" }) | ||
vim.api.nvim_set_hl(0, "RainbowGreen", { fg = "#98C379" }) | ||
vim.api.nvim_set_hl(0, "RainbowViolet", { fg = "#C678DD" }) | ||
vim.api.nvim_set_hl(0, "RainbowCyan", { fg = "#56B6C2" }) | ||
end) | ||
ibl_hooks.register(ibl_hooks.type.SCOPE_HIGHLIGHT, ibl_hooks.builtin.scope_highlight_from_extmark) | ||
ibl_hooks.register(ibl_hooks.type.HIGHLIGHT_SETUP, function() | ||
vim.api.nvim_set_hl(0, "RainbowRed", { fg = "#E06C75" }) | ||
vim.api.nvim_set_hl(0, "RainbowYellow", { fg = "#E5C07B" }) | ||
vim.api.nvim_set_hl(0, "RainbowBlue", { fg = "#61AFEF" }) | ||
vim.api.nvim_set_hl(0, "RainbowOrange", { fg = "#D19A66" }) | ||
vim.api.nvim_set_hl(0, "RainbowGreen", { fg = "#98C379" }) | ||
vim.api.nvim_set_hl(0, "RainbowViolet", { fg = "#C678DD" }) | ||
vim.api.nvim_set_hl(0, "RainbowCyan", { fg = "#56B6C2" }) | ||
end) | ||
ibl_hooks.register(ibl_hooks.type.SCOPE_HIGHLIGHT, ibl_hooks.builtin.scope_highlight_from_extmark) | ||
|
||
rainbow_delimiters.setup({ highlight = highlight }) | ||
indent_blankline.setup({ scope = { show_start = false, show_end = false, highlight = highlight } }) | ||
end | ||
|
||
return M | ||
rainbow_delimiters.setup({ highlight = highlight }) | ||
indent_blankline.setup({ scope = { show_start = false, show_end = false, highlight = highlight } }) | ||
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
Oops, something went wrong.