mirror of
https://github.com/kogakure/dotfiles.git
synced 2026-02-03 20:25:30 +00:00
chore(nvim): unify plugin comments
This commit is contained in:
@@ -1,2 +1,3 @@
|
|||||||
|
" https://github.com/tpope/vim-abolish
|
||||||
Abolish teh the
|
Abolish teh the
|
||||||
Abolish {despa,sepe}rat{e,es,ed,ing,ely,ion,ions,or} {despe,sepa}rat{}
|
Abolish {despa,sepe}rat{e,es,ed,ing,ely,ion,ions,or} {despe,sepa}rat{}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
-- alpha-nvim – https://github.com/goolord/alpha-nvim
|
-- https://github.com/goolord/alpha-nvim
|
||||||
local status_ok, alpha = pcall(require, "alpha")
|
local status_ok, alpha = pcall(require, "alpha")
|
||||||
if not status_ok then
|
if not status_ok then
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
-- Astro – https://github.com/wuelnerdotexe/vim-astro
|
-- https://github.com/wuelnerdotexe/vim-astro
|
||||||
|
|
||||||
vim.g.astro_typescript = "enable"
|
vim.g.astro_typescript = "enable"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
-- nvim-autopairs – https://github.com/windwp/nvim-autopairs
|
-- https://github.com/windwp/nvim-autopairs
|
||||||
local status_ok, autopairs = pcall(require, "nvim-autopairs")
|
local status_ok, autopairs = pcall(require, "nvim-autopairs")
|
||||||
if not status_ok then
|
if not status_ok then
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
-- nvim-ts-autotag – https://github.com/windwp/nvim-ts-autotag
|
-- https://github.com/windwp/nvim-ts-autotag
|
||||||
local status_ok, autotag = pcall(require, "nvim-ts-autotag")
|
local status_ok, autotag = pcall(require, "nvim-ts-autotag")
|
||||||
if not status_ok then
|
if not status_ok then
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
-- blamer.vim – https://github.com/APZelos/blamer.nvim
|
-- https://github.com/APZelos/blamer.nvim
|
||||||
local keymap = vim.api.nvim_set_keymap
|
local keymap = vim.api.nvim_set_keymap
|
||||||
local opts = { noremap = true, silent = true }
|
local opts = { noremap = true, silent = true }
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
-- bufferline.nvim – https://github.com/akinsho/bufferline.nvim
|
-- https://github.com/akinsho/bufferline.nvim
|
||||||
local status_ok, bufferline = pcall(require, "bufferline")
|
local status_ok, bufferline = pcall(require, "bufferline")
|
||||||
if not status_ok then
|
if not status_ok then
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
-- Catppuccin Theme – https://github.com/catppuccin/catppuccin
|
-- https://github.com/catppuccin/catppuccin
|
||||||
local status_ok, catppucin = pcall(require, "catppuccin")
|
local status_ok, catppucin = pcall(require, "catppuccin")
|
||||||
if not status_ok then
|
if not status_ok then
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
-- nvim-cmp – https://github.com/hrsh7th/nvim-cmp
|
-- https://github.com/hrsh7th/nvim-cmp
|
||||||
local cmp_status_ok, cmp = pcall(require, "cmp")
|
local cmp_status_ok, cmp = pcall(require, "cmp")
|
||||||
if not cmp_status_ok then
|
if not cmp_status_ok then
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
-- codewindow.nvim – https://github.com/gorbit99/codewindow.nvim
|
-- https://github.com/gorbit99/codewindow.nvim
|
||||||
local status, codewindow = pcall(require, "codewindow")
|
local status, codewindow = pcall(require, "codewindow")
|
||||||
if not status then
|
if not status then
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
-- colorizer.lua – https://github.com/norcalli/nvim-colorizer.lua
|
-- https://github.com/norcalli/nvim-colorizer.lua
|
||||||
local status, colorizer = pcall(require, "colorizer")
|
local status, colorizer = pcall(require, "colorizer")
|
||||||
if not status then
|
if not status then
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -1,23 +1,23 @@
|
|||||||
-- Comment.nvim – https://github.com/numToStr/comment.nvim
|
-- https://github.com/numToStr/comment.nvim
|
||||||
local status_ok, comment = pcall(require, "Comment")
|
local status_ok, comment = pcall(require, "Comment")
|
||||||
if not status_ok then
|
if not status_ok then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
comment.setup {
|
comment.setup({
|
||||||
pre_hook = function(ctx)
|
pre_hook = function(ctx)
|
||||||
local U = require "Comment.utils"
|
local U = require("Comment.utils")
|
||||||
|
|
||||||
local location = nil
|
local location = nil
|
||||||
if ctx.ctype == U.ctype.block then
|
if ctx.ctype == U.ctype.block then
|
||||||
location = require("ts_context_commentstring.utils").get_cursor_location()
|
location = require("ts_context_commentstring.utils").get_cursor_location()
|
||||||
elseif ctx.cmotion == U.cmotion.v or ctx.cmotion == U.cmotion.V then
|
elseif ctx.cmotion == U.cmotion.v or ctx.cmotion == U.cmotion.V then
|
||||||
location = require("ts_context_commentstring.utils").get_visual_start_location()
|
location = require("ts_context_commentstring.utils").get_visual_start_location()
|
||||||
end
|
end
|
||||||
|
|
||||||
return require("ts_context_commentstring.internal").calculate_commentstring {
|
return require("ts_context_commentstring.internal").calculate_commentstring({
|
||||||
key = ctx.ctype == U.ctype.line and "__default" or "__multiline",
|
key = ctx.ctype == U.ctype.line and "__default" or "__multiline",
|
||||||
location = location,
|
location = location,
|
||||||
}
|
})
|
||||||
end
|
end,
|
||||||
}
|
})
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
-- nvim-treesitter-context – https://github.com/nvim-treesitter/nvim-treesitter-context
|
-- https://github.com/nvim-treesitter/nvim-treesitter-context
|
||||||
local status_ok, context = pcall(require, "treesitter-context")
|
local status_ok, context = pcall(require, "treesitter-context")
|
||||||
if not status_ok then
|
if not status_ok then
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
-- nvim-cursorline – https://github.com/yamatsum/nvim-cursorline
|
-- https://github.com/yamatsum/nvim-cursorline
|
||||||
local status, cursorline = pcall(require, "nvim-cursorline")
|
local status, cursorline = pcall(require, "nvim-cursorline")
|
||||||
if not status then
|
if not status then
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
--- export-to-vscode.nvim – https://github.com/elijahmanor/export-to-vscode.nvim
|
--- https://github.com/elijahmanor/export-to-vscode.nvim
|
||||||
local keymap = vim.api.nvim_set_keymap
|
local keymap = vim.api.nvim_set_keymap
|
||||||
local opts = { noremap = true, silent = true }
|
local opts = { noremap = true, silent = true }
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
-- fzf-lua – https://github.com/ibhagwan/fzf-lua
|
-- https://github.com/ibhagwan/fzf-lua
|
||||||
local cmp_status_ok, fzf_lua = pcall(require, "fzf-lua")
|
local cmp_status_ok, fzf_lua = pcall(require, "fzf-lua")
|
||||||
if not cmp_status_ok then
|
if not cmp_status_ok then
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
-- git-worktree.nvim – https://github.com/ThePrimeagen/git-worktree.nvim
|
-- https://github.com/ThePrimeagen/git-worktree.nvim
|
||||||
local cmp_status_ok, worktree = pcall(require, "git-worktree")
|
local cmp_status_ok, worktree = pcall(require, "git-worktree")
|
||||||
if not cmp_status_ok then
|
if not cmp_status_ok then
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
-- gitsigns.nvim – https://github.com/lewis6991/gitsigns.nvim
|
-- https://github.com/lewis6991/gitsigns.nvim
|
||||||
local status_ok, gitsigns = pcall(require, "gitsigns")
|
local status_ok, gitsigns = pcall(require, "gitsigns")
|
||||||
if not status_ok then
|
if not status_ok then
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
-- Harpoon – https://github.com/ThePrimeagen/harpoon
|
-- https://github.com/ThePrimeagen/harpoon
|
||||||
local status, harpoon = pcall(require, "harpoon")
|
local status, harpoon = pcall(require, "harpoon")
|
||||||
if not status then
|
if not status then
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
-- impatient.nvim – https://github.com/lewis6991/impatient.nvim
|
-- https://github.com/lewis6991/impatient.nvim
|
||||||
local status_ok, impatient = pcall(require, "impatient")
|
local status_ok, impatient = pcall(require, "impatient")
|
||||||
if not status_ok then
|
if not status_ok then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
impatient.enable_profile()
|
impatient.enable_profile()
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
-- Indent Blankline – https://github.com/lukas-reineke/indent-blankline.nvim
|
-- https://github.com/lukas-reineke/indent-blankline.nvim
|
||||||
local status_ok, indent_blankline = pcall(require, "indent_blankline")
|
local status_ok, indent_blankline = pcall(require, "indent_blankline")
|
||||||
if not status_ok then
|
if not status_ok then
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
-- lualine.nvim – https://github.com/nvim-lualine/lualine.nvim
|
-- https://github.com/nvim-lualine/lualine.nvim
|
||||||
local status, lualine = pcall(require, "lualine")
|
local status, lualine = pcall(require, "lualine")
|
||||||
if not status then
|
if not status then
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
-- Neoscroll – https://github.com/karb94/neoscroll.nvim
|
-- https://github.com/karb94/neoscroll.nvim
|
||||||
local status, neoscroll = pcall(require, "neoscroll")
|
local status, neoscroll = pcall(require, "neoscroll")
|
||||||
if not status then
|
if not status then
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
-- nvim-tree.lua – https://github.com/kyazdani42/nvim-tree.lua
|
-- https://github.com/kyazdani42/nvim-tree.lua
|
||||||
local status_ok, nvim_tree = pcall(require, "nvim-tree")
|
local status_ok, nvim_tree = pcall(require, "nvim-tree")
|
||||||
if not status_ok then
|
if not status_ok then
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
-- Octo.nvim – https://github.com/pwntester/octo.nvim
|
-- https://github.com/pwntester/octo.nvim
|
||||||
local status_ok, octo = pcall(require, "octo")
|
local status_ok, octo = pcall(require, "octo")
|
||||||
if not status_ok then
|
if not status_ok then
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
-- project.nvim – https://github.com/ahmedkhalf/project.nvim
|
-- https://github.com/ahmedkhalf/project.nvim
|
||||||
local status_ok, project = pcall(require, "project_nvim")
|
local status_ok, project = pcall(require, "project_nvim")
|
||||||
if not status_ok then
|
if not status_ok then
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
-- sad.nvim – https://github.com/ray-x/sad.nvim
|
-- https://github.com/ray-x/sad.nvim
|
||||||
local status_ok, sad = pcall(require, "sad")
|
local status_ok, sad = pcall(require, "sad")
|
||||||
if not status_ok then
|
if not status_ok then
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
-- nvim-spectre – https://github.com/nvim-pack/nvim-spectre
|
-- https://github.com/nvim-pack/nvim-spectre
|
||||||
local status_ok, spectre = pcall(require, "spectre")
|
local status_ok, spectre = pcall(require, "spectre")
|
||||||
if not status_ok then
|
if not status_ok then
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
-- speeddating.vim – https://github.com/tpope/vim-speeddating
|
-- https://github.com/tpope/vim-speeddating
|
||||||
vim.cmd([[
|
vim.cmd([[
|
||||||
autocmd VimEnter * SpeedDatingFormat %d.%m.%Y
|
autocmd VimEnter * SpeedDatingFormat %d.%m.%Y
|
||||||
]])
|
]])
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
-- nvim-surround – https://github.com/kylechui/nvim-surround
|
-- https://github.com/kylechui/nvim-surround
|
||||||
local status_ok, surround = pcall(require, "nvim-surround")
|
local status_ok, surround = pcall(require, "nvim-surround")
|
||||||
if not status_ok then
|
if not status_ok then
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
" Custom Tabular Commands
|
" https://github.com/godlygeek/tabular
|
||||||
|
|
||||||
|
" Custom Tabular Commands
|
||||||
AddTabularPattern! equals /^[^=]*\zs=/
|
AddTabularPattern! equals /^[^=]*\zs=/
|
||||||
AddTabularPattern! ruby_hash /^[^=>]*\zs=>/
|
AddTabularPattern! ruby_hash /^[^=>]*\zs=>/
|
||||||
AddTabularPattern! commas /,\s*\zs\s/l0
|
AddTabularPattern! commas /,\s*\zs\s/l0
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
-- telescope.nvim – https://github.com/nvim-telescope/telescope.nvim/
|
-- https://github.com/nvim-telescope/telescope.nvim/
|
||||||
local status_ok, telescope = pcall(require, "telescope")
|
local status_ok, telescope = pcall(require, "telescope")
|
||||||
if not status_ok then
|
if not status_ok then
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
-- https://github.com/akinsho/toggleterm.nvim
|
||||||
local status_ok, toggleterm = pcall(require, "toggleterm")
|
local status_ok, toggleterm = pcall(require, "toggleterm")
|
||||||
if not status_ok then
|
if not status_ok then
|
||||||
return
|
return
|
||||||
@@ -97,7 +98,7 @@ function _PYTHON_TOGGLE()
|
|||||||
end
|
end
|
||||||
|
|
||||||
local keymap = vim.api.nvim_set_keymap
|
local keymap = vim.api.nvim_set_keymap
|
||||||
local opts = { noremap = true, silent = true}
|
local opts = { noremap = true, silent = true }
|
||||||
|
|
||||||
-- Keymaps
|
-- Keymaps
|
||||||
keymap("n", "<leader>lg", "<cmd>lua _LAZYGIT_TOGGLE()<CR>", opts)
|
keymap("n", "<leader>lg", "<cmd>lua _LAZYGIT_TOGGLE()<CR>", opts)
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
-- nvim-treesitter – https://github.com/nvim-treesitter/nvim-treesitter/
|
-- https://github.com/nvim-treesitter/nvim-treesitter/
|
||||||
local status_ok, configs = pcall(require, "nvim-treesitter.configs")
|
local status_ok, configs = pcall(require, "nvim-treesitter.configs")
|
||||||
if not status_ok then
|
if not status_ok then
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
-- vim-gh-line – https://github.com/ruanyl/vim-gh-line
|
-- https://github.com/ruanyl/vim-gh-line
|
||||||
|
|
||||||
vim.g.gh_github_domain = "source.xing.com"
|
vim.g.gh_github_domain = "source.xing.com"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
-- Vimux – https://github.com/preservim/vimux
|
-- https://github.com/preservim/vimux
|
||||||
local keymap = vim.api.nvim_set_keymap
|
local keymap = vim.api.nvim_set_keymap
|
||||||
local opts = { noremap = true, silent = true }
|
local opts = { noremap = true, silent = true }
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
-- https://github.com/folke/which-key.nvim
|
||||||
local status_ok, which_key = pcall(require, "which-key")
|
local status_ok, which_key = pcall(require, "which-key")
|
||||||
if not status_ok then
|
if not status_ok then
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
-- Zen Mode – https://github.com/folke/zen-mode.nvim
|
-- https://github.com/folke/zen-mode.nvim
|
||||||
local status_ok, zenmode = pcall(require, "zen-mode")
|
local status_ok, zenmode = pcall(require, "zen-mode")
|
||||||
if not status_ok then
|
if not status_ok then
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user