Compare commits
2
Commits
bd160f982b
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2160370d41 | ||
|
|
164b13f9f0 |
No files matched your search
@@ -14,7 +14,7 @@ vim.cmd("set textwidth=0")
|
|||||||
vim.cmd("set wrapmargin=0")
|
vim.cmd("set wrapmargin=0")
|
||||||
vim.cmd("set linebreak")
|
vim.cmd("set linebreak")
|
||||||
-- vim.cmd("set colorcolumn=85")
|
-- vim.cmd("set colorcolumn=85")
|
||||||
vim.cmd("set conceallevel=0") -- DONT hide characters in MD
|
vim.cmd("set conceallevel=0") -- 0 to NOT hide characters in MD
|
||||||
vim.cmd("set tabstop=4")
|
vim.cmd("set tabstop=4")
|
||||||
vim.cmd("set shiftwidth=4")
|
vim.cmd("set shiftwidth=4")
|
||||||
vim.cmd("set noexpandtab") -- expandtab to use spaces instead of tabs
|
vim.cmd("set noexpandtab") -- expandtab to use spaces instead of tabs
|
||||||
|
|||||||
+17
-17
@@ -1,40 +1,40 @@
|
|||||||
{
|
{
|
||||||
"aerial.nvim": { "branch": "master", "commit": "28fe6e822ae344544c379d60fcb13c9519a1f08a" },
|
"aerial.nvim": { "branch": "master", "commit": "28fe6e822ae344544c379d60fcb13c9519a1f08a" },
|
||||||
"auto-session": { "branch": "main", "commit": "c8e6139a2e52a38101fecaba6014d7dd75489044" },
|
"auto-session": { "branch": "main", "commit": "02a5588f677970a9bc784115c62bef9e5855499b" },
|
||||||
"autoclose.nvim": { "branch": "main", "commit": "27063904b2238ce7867e430885b6abcfb08357ea" },
|
"autoclose.nvim": { "branch": "main", "commit": "bcad8e84d9cd78ba73433cb396b68e489af11e31" },
|
||||||
"barbar.nvim": { "branch": "master", "commit": "53b5a2f34b68875898f0531032fbf090e3952ad7" },
|
"barbar.nvim": { "branch": "master", "commit": "53b5a2f34b68875898f0531032fbf090e3952ad7" },
|
||||||
"blink.cmp": { "branch": "main", "commit": "78336bc89ee5365633bcf754d93df01678b5c08f" },
|
"blink.cmp": { "branch": "main", "commit": "78336bc89ee5365633bcf754d93df01678b5c08f" },
|
||||||
"blueprints": { "branch": "main", "commit": "e5825c30464f98e77e8b5ffb88d59fd98df6c802" },
|
"blueprints": { "branch": "main", "commit": "e5825c30464f98e77e8b5ffb88d59fd98df6c802" },
|
||||||
"conform.nvim": { "branch": "master", "commit": "016802de402556da54c36bd7359b441266b01cdd" },
|
"conform.nvim": { "branch": "master", "commit": "016802de402556da54c36bd7359b441266b01cdd" },
|
||||||
"flash.nvim": { "branch": "main", "commit": "5f0f270fdc7c5b0c21d903ee85b9cb06f2ac636a" },
|
"flash.nvim": { "branch": "main", "commit": "5f0f270fdc7c5b0c21d903ee85b9cb06f2ac636a" },
|
||||||
"friendly-snippets": { "branch": "main", "commit": "6cd7280adead7f586db6fccbd15d2cac7e2188b9" },
|
"friendly-snippets": { "branch": "main", "commit": "b4d01b0fdf3c9a549961c2f9ffe8dc09be166219" },
|
||||||
"gitsigns.nvim": { "branch": "main", "commit": "5be654f2232c10ddcad19c1607a67b6b4b78fc29" },
|
"git-conflict.nvim": { "branch": "main", "commit": "4bbfdd92d547d2862a75b4e80afaf30e73f7bbb4" },
|
||||||
|
"gitsigns.nvim": { "branch": "main", "commit": "fd780920613e541cbdfac41bf711583ed49f9249" },
|
||||||
"grug-far.nvim": { "branch": "main", "commit": "11595bf747edc270bce2069d1020502ad4ae56cf" },
|
"grug-far.nvim": { "branch": "main", "commit": "11595bf747edc270bce2069d1020502ad4ae56cf" },
|
||||||
"gruvbox.nvim": { "branch": "main", "commit": "5f14f3426f34914b96d3595fa70a70b70329759a" },
|
"gruvbox.nvim": { "branch": "main", "commit": "5f14f3426f34914b96d3595fa70a70b70329759a" },
|
||||||
"indent-blankline.nvim": { "branch": "master", "commit": "d28a3f70721c79e3c5f6693057ae929f3d9c0a03" },
|
"indent-blankline.nvim": { "branch": "master", "commit": "f1e186e44d3b7f9ae918008e2c28ce37c6023d2d" },
|
||||||
"komau.vim": { "branch": "master", "commit": "f7c7a00c0cbb67ed269b565a4ada47d96dce14f3" },
|
"komau.vim": { "branch": "master", "commit": "f7c7a00c0cbb67ed269b565a4ada47d96dce14f3" },
|
||||||
"lazy.nvim": { "branch": "main", "commit": "306a05526ada86a7b30af95c5cc81ffba93fef97" },
|
"lazy.nvim": { "branch": "main", "commit": "306a05526ada86a7b30af95c5cc81ffba93fef97" },
|
||||||
"lualine.nvim": { "branch": "master", "commit": "221ce6b2d999187044529f49da6554a92f740a96" },
|
"lualine.nvim": { "branch": "master", "commit": "221ce6b2d999187044529f49da6554a92f740a96" },
|
||||||
"mason.nvim": { "branch": "main", "commit": "2a6940af80375532e5e9e7c1f2fc6319a1b7a69d" },
|
"mason.nvim": { "branch": "main", "commit": "2a6940af80375532e5e9e7c1f2fc6319a1b7a69d" },
|
||||||
"mini.clue": { "branch": "main", "commit": "4d506660e7030a15748ab073bebfe3ed03884000" },
|
"mini.clue": { "branch": "main", "commit": "149236aed07cf15266dbaf2736452ad6b0dced47" },
|
||||||
"mini.icons": { "branch": "main", "commit": "98faae31e9be1cc054ae63485e58ceb185efcad0" },
|
"mini.icons": { "branch": "main", "commit": "f916635dc5ae2f479fbb9ab8184bb9444b62e86c" },
|
||||||
"neo-tree.nvim": { "branch": "main", "commit": "3352e998cb8343a4b8d82eca50c74aa17bc61f5e" },
|
"neo-tree.nvim": { "branch": "main", "commit": "d5b8a12b74683ddaefa519ce66a097610672859f" },
|
||||||
"no-neck-pain.nvim": { "branch": "main", "commit": "434fed70b1ee553f8f27e6da7b3899f71b3c6f99" },
|
"no-neck-pain.nvim": { "branch": "main", "commit": "55f69b7ff536303dcd37460d7cbced9691b3f0a2" },
|
||||||
"noice.nvim": { "branch": "main", "commit": "7bfd942445fb63089b59f97ca487d605e715f155" },
|
"noice.nvim": { "branch": "main", "commit": "7bfd942445fb63089b59f97ca487d605e715f155" },
|
||||||
"nui.nvim": { "branch": "main", "commit": "10fc361835c856ba4233ef5ea135b919bf3dce97" },
|
"nui.nvim": { "branch": "main", "commit": "10fc361835c856ba4233ef5ea135b919bf3dce97" },
|
||||||
"nvim-colorizer.lua": { "branch": "master", "commit": "72a05f62c52241bc7441c820eb53946f92b2e6a4" },
|
"nvim-colorizer.lua": { "branch": "master", "commit": "72a05f62c52241bc7441c820eb53946f92b2e6a4" },
|
||||||
"nvim-lint": { "branch": "master", "commit": "3d55c8f67c6ae5c15e1042571e107c7a3d5c5f4e" },
|
"nvim-lint": { "branch": "master", "commit": "f6230a5c06ba59e6059c14637f1dbe29a7978b9b" },
|
||||||
"nvim-scrollbar": { "branch": "main", "commit": "f8e87b96cd6362ef8579be456afee3b38fd7e2a8" },
|
"nvim-scrollbar": { "branch": "main", "commit": "f8e87b96cd6362ef8579be456afee3b38fd7e2a8" },
|
||||||
"nvim-treesitter": { "branch": "main", "commit": "857651fce37eba032ebe28f3a206283cdc65c45a" },
|
"nvim-treesitter": { "branch": "main", "commit": "ca581c3436fc2b236847f5b739ebc263739e5ca6" },
|
||||||
"nvim-treesitter-context": { "branch": "master", "commit": "f3061339b8eaf9fda873600bc425b8d2d8502533" },
|
"nvim-treesitter-context": { "branch": "master", "commit": "8decd73460d26ef0a0befb745d022dd1fc2c38b8" },
|
||||||
"nvim-ts-autotag": { "branch": "main", "commit": "88c1453db4ba7dd24131086fe51fdf74e587d275" },
|
"nvim-ts-autotag": { "branch": "main", "commit": "d7220b55e16ed3c04e88086256def5d282429493" },
|
||||||
"nvim-web-devicons": { "branch": "master", "commit": "2ae6958df7ced50baac5035cec0c15799eedfbf7" },
|
"nvim-web-devicons": { "branch": "master", "commit": "ec309a0eaff6ea967e58c275996155ab5c16938d" },
|
||||||
"nvim-window-picker": { "branch": "main", "commit": "6382540b2ae5de6c793d4aa2e3fe6dbb518505ec" },
|
"nvim-window-picker": { "branch": "main", "commit": "6382540b2ae5de6c793d4aa2e3fe6dbb518505ec" },
|
||||||
"overseer.nvim": { "branch": "master", "commit": "a93d9f6d6defdac4bcd6d2c8ba988650e42e0a0e" },
|
|
||||||
"peek.nvim": { "branch": "master", "commit": "5820d937d5414baea5f586dc2a3d912a74636e5b" },
|
"peek.nvim": { "branch": "master", "commit": "5820d937d5414baea5f586dc2a3d912a74636e5b" },
|
||||||
"plenary.nvim": { "branch": "master", "commit": "74b06c6c75e4eeb3108ec01852001636d85a932b" },
|
"plenary.nvim": { "branch": "master", "commit": "74b06c6c75e4eeb3108ec01852001636d85a932b" },
|
||||||
"scope.nvim": { "branch": "main", "commit": "228aabdb1b9cc74f0c0ccec88e79873857236e49" },
|
"scope.nvim": { "branch": "main", "commit": "01cc3d5bb794e6d7afbb1b02a7e941ddf736d9ea" },
|
||||||
"smear-cursor.nvim": { "branch": "main", "commit": "9e9378d6ee34bb3782e0e8c63d9ec8ca618b479b" },
|
"smear-cursor.nvim": { "branch": "main", "commit": "f6cb57c342268177f719acc3968b9d8de3ecc969" },
|
||||||
"snacks.nvim": { "branch": "main", "commit": "882c996cf28183f4d63640de0b4c02ec886d01f2" },
|
"snacks.nvim": { "branch": "main", "commit": "882c996cf28183f4d63640de0b4c02ec886d01f2" },
|
||||||
"telescope-fzf-native.nvim": { "branch": "main", "commit": "b25b749b9db64d375d782094e2b9dce53ad53a40" },
|
"telescope-fzf-native.nvim": { "branch": "main", "commit": "b25b749b9db64d375d782094e2b9dce53ad53a40" },
|
||||||
"telescope-git-file-history.nvim": { "branch": "master", "commit": "4442114f9257e682e60a8cb6de14cf988e26055c" },
|
"telescope-git-file-history.nvim": { "branch": "master", "commit": "4442114f9257e682e60a8cb6de14cf988e26055c" },
|
||||||
|
|||||||
+49
-6
@@ -80,6 +80,55 @@ map("n", "<leader>gs", function()
|
|||||||
Snacks.lazygit({ args = { "status" } })
|
Snacks.lazygit({ args = { "status" } })
|
||||||
end, { desc = "Lazygit Log (cwd)" })
|
end, { desc = "Lazygit Log (cwd)" })
|
||||||
|
|
||||||
|
-- developer custom utils
|
||||||
|
|
||||||
|
map("n", "<leader>cu", function()
|
||||||
|
local pickers = require("telescope.pickers")
|
||||||
|
local finders = require("telescope.finders")
|
||||||
|
local conf = require("telescope.config").values
|
||||||
|
|
||||||
|
local actions = require("telescope.actions")
|
||||||
|
local action_state = require("telescope.actions.state")
|
||||||
|
|
||||||
|
local opts = {
|
||||||
|
layout_config = {
|
||||||
|
width = 0.3,
|
||||||
|
height = 0.3,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
local utils = { "Conventional commit", "Colorizer", "Code templates" }
|
||||||
|
local commands = { "bash ~/.config/nvim/tasks/commit-builder.sh", "~/.config/utils/colorizer",
|
||||||
|
"~/.config/utils/code_templates" }
|
||||||
|
|
||||||
|
pickers
|
||||||
|
.new(opts, {
|
||||||
|
prompt_title = "External Utils",
|
||||||
|
finder = finders.new_table({
|
||||||
|
results = utils,
|
||||||
|
}),
|
||||||
|
sorter = conf.generic_sorter(opts),
|
||||||
|
attach_mappings = function(prompt_bufnr)
|
||||||
|
actions.select_default:replace(function()
|
||||||
|
actions.close(prompt_bufnr)
|
||||||
|
local selection = action_state.get_selected_entry()
|
||||||
|
|
||||||
|
local index = {}
|
||||||
|
for k, v in pairs(utils) do
|
||||||
|
index[v] = k
|
||||||
|
end
|
||||||
|
local pos = index[selection[1]]
|
||||||
|
|
||||||
|
Snacks.terminal.toggle(
|
||||||
|
string.format("clear && %s && echo 'Finished | Enter to exit' && read", commands[pos]),
|
||||||
|
{ interactive = true, win = { height = 0.4, width = 0.4, position = "bottom" } })
|
||||||
|
end)
|
||||||
|
return true
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
:find()
|
||||||
|
end, { desc = "Deploy developer tools selector" })
|
||||||
|
|
||||||
---------------------------------------------------------------------------
|
---------------------------------------------------------------------------
|
||||||
|
|
||||||
-- Neotree
|
-- Neotree
|
||||||
@@ -313,12 +362,6 @@ map("t", "<C-k>", "<cmd>wincmd k<cr>", { desc = "Go to Upper Window" })
|
|||||||
map("t", "<C-l>", "<cmd>wincmd l<cr>", { desc = "Go to Right Window" })
|
map("t", "<C-l>", "<cmd>wincmd l<cr>", { desc = "Go to Right Window" })
|
||||||
map("t", "<C-/>", "<cmd>close<cr>", { desc = "Hide Terminal" })
|
map("t", "<C-/>", "<cmd>close<cr>", { desc = "Hide Terminal" })
|
||||||
map("t", "<c-_>", "<cmd>close<cr>", { desc = "which_key_ignore" })
|
map("t", "<c-_>", "<cmd>close<cr>", { desc = "which_key_ignore" })
|
||||||
map("t", "<C-t>", function()
|
|
||||||
Snacks.terminal.open()
|
|
||||||
end, { desc = "Open new terminal" })
|
|
||||||
map("n", "<leader>tt", function()
|
|
||||||
Snacks.terminal()
|
|
||||||
end, { desc = "Toggle terminal" })
|
|
||||||
|
|
||||||
---------------------------------------------------------------------------
|
---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|||||||
@@ -2,23 +2,6 @@ return {
|
|||||||
{
|
{
|
||||||
"mfussenegger/nvim-lint",
|
"mfussenegger/nvim-lint",
|
||||||
events = { "BufWritePost", "BufReadPost", "InsertLeave" },
|
events = { "BufWritePost", "BufReadPost", "InsertLeave" },
|
||||||
opts = {
|
|
||||||
linters_by_ft = {
|
|
||||||
fish = { "fish" },
|
|
||||||
css = { "stylelint" },
|
|
||||||
scss = { "stylelint" },
|
|
||||||
ts = { "eslint_d" },
|
|
||||||
js = { "eslint_d" },
|
|
||||||
jsx = { "eslint_d" },
|
|
||||||
tsx = { "eslint_d" },
|
|
||||||
-- Use the "*" filetype to run linters on all filetypes.
|
|
||||||
-- ['*'] = { 'global linter' },
|
|
||||||
-- Use the "_" filetype to run linters on filetypes that don't have other linters configured.
|
|
||||||
-- ['_'] = { 'fallback linter' },
|
|
||||||
-- ["*"] = { "typos" },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
|
|
||||||
config = function()
|
config = function()
|
||||||
local lint = require("lint")
|
local lint = require("lint")
|
||||||
|
|
||||||
|
|||||||
@@ -55,12 +55,6 @@ local config = {
|
|||||||
words = { enabled = true },
|
words = { enabled = true },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
-- Task runner
|
|
||||||
-- TODO: think if really necessary
|
|
||||||
{
|
|
||||||
"stevearc/overseer.nvim",
|
|
||||||
opts = {},
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"rmagatti/auto-session",
|
"rmagatti/auto-session",
|
||||||
lazy = false,
|
lazy = false,
|
||||||
|
|||||||
@@ -0,0 +1,10 @@
|
|||||||
|
feat | New feature
|
||||||
|
fix | A bug fix
|
||||||
|
chore | Unavoidable task not related
|
||||||
|
build | Changes to the build system or external dependencies
|
||||||
|
ci | Changes to our CI configuration
|
||||||
|
docs | Documentation only changes
|
||||||
|
style | Changes to white-space, formatting, missing semi-colons, etc.
|
||||||
|
refactor | A code change that neither fixes a bug nor adds a feature
|
||||||
|
perf | A code change that improves performance
|
||||||
|
test | Adding or correcting tests
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
:broom: │ 🧹 │ clean, cleanup, remove
|
||||||
|
:recycle: │ ♻️ │ recycle, actor
|
||||||
|
:wrench: │ 🔧 │ adjustment, rection, adapter
|
||||||
|
:gear: │ ⚙️ │ adjustment
|
||||||
|
:control_knobs: │ 🎛 │ config, adjustment
|
||||||
|
:bug: │ 🐛 │ bug
|
||||||
|
:zap: │ ⚡️ │ speeded
|
||||||
|
:bar_chart: │ 📊 │ analytics, chart
|
||||||
|
:chart_with_upwards_trend: │ 📈 │ analytics, chart, upwards
|
||||||
|
:package: │ 📦 │ package, wrap, ture
|
||||||
|
:fire: │ 🔥 │ fire, fix
|
||||||
|
:sparkles: │ ✨ │ new, feature
|
||||||
|
:nail_care: │ 💅 │ styles, prettify
|
||||||
|
:art: │ 🎨 │ styles, colors
|
||||||
|
:lipstick: │ 💄 │ styles, prettify
|
||||||
|
:white_check_mark: │ ✅ │ check, done
|
||||||
|
:test_tube: │ 🧪 │ test, testing
|
||||||
|
:pencil: │ 📝 │ docs
|
||||||
|
:warning: │ ⚠️ │ warning
|
||||||
|
:no_entry_sign: │ 🚫 │ cancel
|
||||||
|
:rotating_light: │ 🚨 │ alert, ect
|
||||||
|
:mag_right: │ 🔎 │ search
|
||||||
|
:old_key: │ 🗝 │ dentials
|
||||||
|
:rocket: │ 🚀 │ shipping
|
||||||
|
:stopwatch: │ ⏱ │ speed, performance
|
||||||
|
:wheelchair: │ ♿️ │ accessibility, a11y
|
||||||
|
:globe_with_meridians: │ 🌐 │ intl, i18n, i10n, tradus, lang
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
type="$(cat ~/.config/nvim/tasks/assets/conventional_commits_types.txt | fzf | awk -F' ' '{print $1 ": "}')"
|
||||||
|
emoji="$(cat ~/.config/nvim/tasks/assets/emoji_list.txt | fzf | awk -F' ' '{print $3 " "}')"
|
||||||
|
branch="$(git branch --show-current | awk -F'/' '{if ($2) print " [" $2 "] "}')"
|
||||||
|
|
||||||
|
message="$type$branch$emoji"
|
||||||
|
|
||||||
|
echo -n "$message"
|
||||||
|
read body
|
||||||
|
|
||||||
|
git commit -m "$message$body"
|
||||||
Reference in new issue
Block a user