chore(nvim): Remove useless comments

This commit is contained in:
js0ny 2025-04-02 19:32:34 +01:00
parent e8d5568745
commit 4da1667c54
10 changed files with 20 additions and 99 deletions

View file

@ -341,6 +341,16 @@ mapkey("yY", "yank link without parameter", function () {
Clipboard.write(url.origin + url.pathname); Clipboard.write(url.origin + url.pathname);
}); });
unmap("yma")
unmap("ymc")
unmap("ymv")
map("ym", "yank link as markdown", function () {
const url = new URL(window.location.href);
const title = document.title;
Clipboard.write(`[${title}](${url.origin + url.pathname})`);
});
// #region bilibili.com // #region bilibili.com
mapkey( mapkey(
",n", ",n",

View file

@ -7,7 +7,6 @@ local M = {}
M.servers = { M.servers = {
"bashls", -- Bash "bashls", -- Bash
"clangd", -- C/C++ "clangd", -- C/C++
"eslint", -- JavaScript
"gopls", -- Go "gopls", -- Go
"html", -- HTML "html", -- HTML
"jsonls", -- JSON "jsonls", -- JSON

View file

@ -34,10 +34,7 @@ return {
}, },
cmd = "Telescope colorscheme", cmd = "Telescope colorscheme",
}, },
-- { "olimorris/onedarkpro.nvim", cmd = "Telescope colorscheme" },
{ "rebelot/kanagawa.nvim", cmd = "Telescope colorscheme" }, { "rebelot/kanagawa.nvim", cmd = "Telescope colorscheme" },
-- -- Highlight objects under the cursor
-- { "RRethy/vim-illuminate" },
{ -- Modern Status Line { -- Modern Status Line
"nvim-lualine/lualine.nvim", "nvim-lualine/lualine.nvim",
dependencies = { "nvim-tree/nvim-web-devicons" }, dependencies = { "nvim-tree/nvim-web-devicons" },
@ -46,18 +43,6 @@ return {
require("plugins.mod.lualine") require("plugins.mod.lualine")
end, end,
}, },
-- { -- Highlight yanked text
-- "gbprod/yanky.nvim",
-- event = "LazyFile",
-- opts = {
-- highlight = {
-- on_put = true,
-- on_yank = true,
-- timer = 500,
-- },
-- },
-- },
-- { import = "plugins.mod.alpha-nvim" }, -- Dashboard
{ -- Breadcrumb { -- Breadcrumb
"Bekaboo/dropbar.nvim", "Bekaboo/dropbar.nvim",
dependencies = { dependencies = {
@ -108,19 +93,4 @@ return {
opts = {}, opts = {},
dependencies = { "nvim-lua/plenary.nvim" }, dependencies = { "nvim-lua/plenary.nvim" },
}, },
-- {
-- "folke/noice.nvim",
-- event = "VeryLazy",
-- opts = {
-- -- add any options here
-- },
-- dependencies = {
-- -- if you lazy-load any plugin below, make sure to add proper `module="..."` entries
-- "MunifTanjim/nui.nvim",
-- -- OPTIONAL:
-- -- `nvim-notify` is only needed, if you want to use the notification view.
-- -- If not available, we use `mini` as the fallback
-- "rcarriga/nvim-notify",
-- },
-- },
} }

View file

@ -1,8 +1,4 @@
return { return {
-- { import = "plugins.mod.nvim-cmp" },
-- {
-- "saadparwaiz1/cmp_luasnip",
-- },
{ import = "plugins.mod.blink-cmp" }, { import = "plugins.mod.blink-cmp" },
{ {
"L3MON4D3/LuaSnip", "L3MON4D3/LuaSnip",
@ -12,8 +8,4 @@ return {
require("luasnip.loaders.from_vscode").lazy_load({ paths = "~/.config/lsp-snippets" }) require("luasnip.loaders.from_vscode").lazy_load({ paths = "~/.config/lsp-snippets" })
end, end,
}, },
-- {
-- "zbirenbaum/copilot-cmp",
-- opts = {},
-- },
} }

View file

@ -28,34 +28,9 @@ return {
end, end,
dependencies = { "nvim-telescope/telescope.nvim" }, dependencies = { "nvim-telescope/telescope.nvim" },
}, },
-- {
-- "kdheepak/lazygit.nvim",
-- lazy = true,
-- cmd = {
-- "LazyGit",
-- "LazyGitConfig",
-- "LazyGitCurrentFile",
-- "LazyGitFilter",
-- "LazyGitFilterCurrentFile",
-- },
-- -- optional for floating window border decoration
-- dependencies = {
-- "nvim-lua/plenary.nvim",
-- },
-- -- setting the keybinding for LazyGit with 'keys' is recommended in
-- -- order to load the plugin when the command is run for the first time
-- keys = {
-- { "<leader>gg", "<cmd>LazyGit<cr>", desc = "LazyGit" },
-- },
-- },
{ {
"NeogitOrg/neogit", "NeogitOrg/neogit",
-- dependencies = {
-- "nvim-lua/plenary.nvim", -- required
-- "nvim-telescope/telescope.nvim", -- optional
-- },
config = true, config = true,
-- event = "VeryLazy",
cmd = { cmd = {
"Neogit", "Neogit",
}, },

View file

@ -3,7 +3,6 @@ require("plugins.lazy-nvim")
-- Setup lazy.nvim -- Setup lazy.nvim
require("lazy").setup({ require("lazy").setup({
spec = { spec = {
-- import your plugins
{ import = "plugins.appearance" }, { import = "plugins.appearance" },
{ import = "plugins.completion" }, { import = "plugins.completion" },
{ import = "plugins.fileutils" }, { import = "plugins.fileutils" },
@ -12,8 +11,5 @@ require("lazy").setup({
{ import = "plugins.edit" }, { import = "plugins.edit" },
{ import = "plugins.misc" }, { import = "plugins.misc" },
}, },
-- Configure any other settings here. See the documentation for more details.
-- colorscheme that will be used when installing plugins.
-- automatically check for plugin updates
checker = { enabled = false }, checker = { enabled = false },
}) })

View file

@ -3,10 +3,7 @@ return {
{ {
"lervag/vimtex", "lervag/vimtex",
ft = { "tex", "bib" }, ft = { "tex", "bib" },
-- lazy = false, -- we don't want to lazy load VimTeX
-- tag = "v2.15", -- uncomment to pin to a specific release
init = function() init = function()
-- VimTeX configuration goes here, e.g.
vim.g.vimtex_view_method = "okular" vim.g.vimtex_view_method = "okular"
end, end,
}, },
@ -25,7 +22,7 @@ return {
"williamboman/mason.nvim", "williamboman/mason.nvim",
cmd = "Mason", cmd = "Mason",
build = ":MasonUpdate", build = ":MasonUpdate",
opts_extend = { "ensure_installed" }, -- opts_extend = { "ensure_installed" },
opts = { opts = {
-- ensure_installed = require("config.servers").servers, -- ensure_installed = require("config.servers").servers,
}, },
@ -67,17 +64,12 @@ return {
highlight = { enable = true }, highlight = { enable = true },
indent = { enable = true }, indent = { enable = true },
}, },
-- config = function(_, opts)
-- require("nvim-treesitter.configs").setup(opts)
-- end,
}, },
{ {
"folke/lazydev.nvim", "folke/lazydev.nvim",
ft = "lua", -- only load on lua files ft = "lua", -- only load on lua files
opts = { opts = {
library = { library = {
-- See the configuration section for more details
-- Load luvit types when the `vim.uv` word is found
{ path = "${3rd}/luv/library", words = { "vim%.uv" } }, { path = "${3rd}/luv/library", words = { "vim%.uv" } },
}, },
}, },

View file

@ -2,23 +2,6 @@ return {
{ "nvim-lua/plenary.nvim", lazy = true }, { "nvim-lua/plenary.nvim", lazy = true },
{ "wakatime/vim-wakatime", lazy = false }, { "wakatime/vim-wakatime", lazy = false },
{ import = "plugins.mod.toggleterm" }, { import = "plugins.mod.toggleterm" },
-- {
-- "CRAG666/code_runner.nvim",
-- config = true,
-- keys = {
-- { "<leader>cr", "<cmd>RunCode<CR>", desc = "Run code" },
-- },
-- dependencies = {
--
-- {
-- "CRAG666/betterTerm.nvim",
-- opts = {
-- position = "bot",
-- size = 15,
-- },
-- },
-- },
-- },
{ import = "plugins.mod.which-keys-nvim" }, { import = "plugins.mod.which-keys-nvim" },
{ import = "plugins.mod.copilot-lua" }, { import = "plugins.mod.copilot-lua" },
{ import = "plugins.mod.avante-nvim" }, { import = "plugins.mod.avante-nvim" },
@ -32,7 +15,6 @@ return {
-- event = "VeryLazy", -- event = "VeryLazy",
dependencies = { dependencies = {
"nvim-telescope/telescope.nvim", "nvim-telescope/telescope.nvim",
-- "ibhagwan/fzf-lua",
"nvim-lua/plenary.nvim", "nvim-lua/plenary.nvim",
"MunifTanjim/nui.nvim", "MunifTanjim/nui.nvim",
}, },
@ -41,8 +23,5 @@ return {
}, },
}, },
{ import = "plugins.mod.image-nvim" }, { import = "plugins.mod.image-nvim" },
-- "3rd/image.nvim",
-- opts = {},
-- },
{ import = "plugins.mod.snacks-nvim" }, { import = "plugins.mod.snacks-nvim" },
} }

View file

@ -10,6 +10,12 @@ return {
---@module 'blink.cmp' ---@module 'blink.cmp'
---@type blink.cmp.Config ---@type blink.cmp.Config
opts = { opts = {
enabled = function()
if vim.fn.getcmdtype() ~= "" then
return true
end
return not vim.tbl_contains({ "TelescopePrompt", "dap-repl", "snacks_picker_list" }, vim.bo.filetype)
end,
keymap = { keymap = {
preset = "default", preset = "default",
["<Tab>"] = { ["<Tab>"] = {

View file

@ -22,7 +22,7 @@ return {
require("orgmode").setup({ require("orgmode").setup({
org_agenda_files = "~/OrgFiles/tasks/*", org_agenda_files = "~/OrgFiles/tasks/*",
org_default_notes_file = "~/OrgFiles/tasks/inbox.org", org_default_notes_file = "~/OrgFiles/tasks/inbox.org",
org_archive_location = "~/OrgFiles/archive/%s_archive::", org_archive_location = "~/OrgFiles/.archive/%s_archive::",
org_todo_keywords = { "TODO(t)", "NEXT(n)", "WAIT(w)", "|", "DONE(d)", "CANCELLED(c)" }, org_todo_keywords = { "TODO(t)", "NEXT(n)", "WAIT(w)", "|", "DONE(d)", "CANCELLED(c)" },
org_hide_leading_stars = true, org_hide_leading_stars = true,
org_hide_emphasis_markers = true, org_hide_emphasis_markers = true,
@ -38,12 +38,14 @@ return {
org_agenda_set_tags = "<C-c><C-c>", org_agenda_set_tags = "<C-c><C-c>",
org_agenda_earlier = { "[[", "<" }, org_agenda_earlier = { "[[", "<" },
org_agenda_later = { "]]", ">" }, org_agenda_later = { "]]", ">" },
org_agenda_archive = "$",
}, },
org = { org = {
org_deadline = "<C-c><C-d>", org_deadline = "<C-c><C-d>",
org_schedule = "<C-c><C-s>", org_schedule = "<C-c><C-s>",
org_todo = "<C-c><C-t>", org_todo = "<C-c><C-t>",
org_set_tags_command = "<C-c><C-c>", org_set_tags_command = "<C-c><C-c>",
org_archive_subtree = "<C-c>$",
}, },
}, },
}) })