Compare commits

..
68 Commits
Author SHA1 Message Date
胡鑫 f5eb1a16f7 fix deepseek 2025-03-26 15:02:30 +08:00
胡鑫 d687614de9 feat: fugitive 2025-03-17 10:31:58 +08:00
胡鑫 038b342eec feat: csv auto command & adds telescope symbols 2025-03-13 10:51:21 +08:00
胡鑫 86230438e5 tweak: update to newest yostar litellm 2025-03-10 13:16:15 +08:00
胡鑫 8ec7a97bd4 chore: update 2025-03-10 09:55:42 +08:00
胡鑫 c0238ab67c feat: yoclaude 2025-03-06 10:12:28 +08:00
胡鑫 8f3bfa6fe8 chore: upgrades & fix ts/deno & fix csv view 2025-03-03 11:29:44 +08:00
胡鑫 dcacd05054 chore: use codestral for this so um 2025-02-24 18:11:15 +08:00
胡鑫 074e8ec3b0 chore: update plugins & use yostar api 2025-02-24 10:19:23 +08:00
胡鑫 4fd10f828e optimize: don't create lazygit term until toggle 2025-02-21 18:19:28 +08:00
胡鑫 ffde2ccc24 tweak: try to use aliyun qwen32 for merge & complete 2025-02-21 10:55:35 +08:00
胡鑫 f56ee816cd chore: update plugins & switch to siliconflow by default 2025-02-20 09:51:26 +08:00
胡鑫 cb3c621541 feat: update and groq for cursor apply (?) 2025-02-19 10:11:52 +08:00
胡鑫 81343d4d3c chore: update plugins 2025-02-17 10:20:14 +08:00
胡鑫 889ae2623e refactor: collapse telescope keys 2025-02-10 14:28:12 +08:00
胡鑫 dac0928a6f chore: update plugins 2025-02-10 10:23:18 +08:00
胡鑫 22f9eeab6f chore: update plugins 2025-02-08 09:58:10 +08:00
胡鑫 624a782ddd chore: update plugins & deepseek siliconflow pro 2025-02-07 10:04:53 +08:00
胡鑫 71174b22c7 chore: update plugins 2025-02-06 10:04:26 +08:00
unknown 4adc633f0c chore: update plugins 2025-02-05 09:57:21 +08:00
hyper cb7a183ce4 fix: toggleterm on gitbash 2025-02-04 16:00:43 +08:00
hyper 1f5668382c feat: toggleterm for lazygit in nvim 2025-02-04 15:28:04 +08:00
hyper 4164174c1a feat: avante provider switcher? 2025-02-04 14:49:33 +08:00
hyper b0279980c3 chore: updates & remove neogit 2025-02-02 15:58:23 +08:00
unknown ea495f8181 update: update plugins 2025-01-24 09:57:04 +08:00
unknown 9bd2925161 fix: switch back to v3 2025-01-23 18:28:13 +08:00
unknown b17fe062d5 feat: update & deepseek-reasoner 2025-01-21 14:33:47 +08:00
unknown 36671c6599 feat: hide unity '.meta' in neo-tree 2025-01-20 10:31:05 +08:00
unknown e5e9d292e9 csharp-ls 2025-01-17 11:23:03 +08:00
unknown 9dcc2629ac chore: update plugins 2025-01-16 11:19:33 +08:00
unknown 562070873a feat: <leader>cR for LSP rename 2025-01-14 10:21:25 +08:00
unknown 66a753cd9d nvim updates 2025-01-10 09:55:51 +08:00
unknown c84e45ad0c Trouble keymap & telescope avante 2025-01-07 11:30:41 +08:00
unknown dc9ef486f0 neogit & trouble keys 2025-01-07 10:48:10 +08:00
hyper 2ce4a97439 avante & upgrades 2025-01-05 15:01:57 +08:00
unknown ddab026923 damn.. 2024-12-30 17:39:09 +08:00
unknown c8db1bda9b leave c for quicklists 2024-12-30 17:36:12 +08:00
unknown 63f4119678 oops 2024-12-27 10:13:55 +08:00
unknown 0cc45c6281 ultisnips 2024-12-27 10:08:38 +08:00
unknown 7d5dcc7660 updates 2024-12-04 10:03:58 +08:00
unknown cc8ae3ad3e markdown and Bdelete 2024-12-04 10:03:53 +08:00
unknown f155486d78 sorting & markdown 2024-12-02 10:24:55 +08:00
hyper c685c045bb updates 2024-11-20 15:44:27 +08:00
hyper efd25f8418 updates 2024-11-15 10:24:16 +08:00
hyper 797f129916 update 2024-10-28 12:02:45 +08:00
hyper 1c1ede62b4 lsp denols & telescope old 2024-10-26 19:50:09 +08:00
hyper c5dece31ac gitsigns keymapping 2024-10-26 14:21:22 +08:00
hyper 0ebe6682b3 damn these people update all the time 2024-10-25 19:20:19 +08:00
hyper c1ad5acb5d don't update all the time 2024-10-25 19:18:08 +08:00
hyper caee0da0c3 don't deno for now 2024-10-23 10:39:30 +08:00
hyper a8dca2970c updates 2024-10-23 10:27:22 +08:00
hyper 4c64251203 deno & single_file_support 2024-10-22 13:20:48 +08:00
hyper 47d76849bf updates 2024-10-20 21:56:59 +08:00
hyper 93938b30ad fix cmp cssls 2024-10-20 18:41:04 +08:00
hyper 0faf930e37 updates 2024-10-20 18:33:45 +08:00
hyper 43c2d3815a cssls 2024-10-20 18:30:12 +08:00
hyper 37c28816d9 damn 2024-10-15 16:50:20 +08:00
hyper f8d3a55606 font 2024-10-15 15:13:41 +08:00
hyper cfdb420e1c signcolumn and gitsigns 2024-10-11 00:34:52 +08:00
hyper 77922626f6 seriouslly 2024-10-10 15:09:25 +08:00
hyper da84481bf0 buffer jump keys 2024-10-09 17:53:32 +08:00
hyper c074143b95 updates 2024-10-09 14:15:34 +08:00
hyper 55ec4ac21c kanagawa 2024-10-06 20:34:06 +08:00
hyper e31646dcf0 replace == with conform 2024-10-06 16:25:01 +08:00
hyper 98c76f67f2 fix cmp & invert ff/fb & conform 2024-10-06 16:05:50 +08:00
hyper f822d78283 Neotree *reveal* 2024-10-06 13:37:10 +08:00
hyper 0f3fd37d43 ooops 2024-10-06 13:16:37 +08:00
hyper 866a877889 init 2024-10-06 13:13:53 +08:00
17 changed files with 556 additions and 636 deletions
-8
View File
@@ -1,8 +0,0 @@
tt.*
.tests
doc/tags
debug
.repro
foo.*
*.log
data
-15
View File
@@ -1,15 +0,0 @@
{
"neodev": {
"library": {
"enabled": true,
"plugins": true
}
},
"neoconf": {
"plugins": {
"lua_ls": {
"enabled": true
}
}
}
}
-201
View File
@@ -1,201 +0,0 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-4
View File
@@ -1,4 +0,0 @@
# 💤 LazyVim
A starter template for [LazyVim](https://github.com/LazyVim/LazyVim).
Refer to the [documentation](https://lazyvim.github.io/installation) to get started.
+30 -2
View File
@@ -1,2 +1,30 @@
-- bootstrap lazy.nvim, LazyVim and your plugins
require("config.lazy")
if vim.g.vscode then
-- VSCode extension
else
-- ordinary Neovim
vim.g.mapleader = ' '
vim.g.maplocalleader = ' '
require("config.lazy")
end
if vim.fn.has('win32') == 1 then
vim.opt.shell = 'cmd.exe'
end
vim.opt.guifont="FiraCode Nerd Font Mono,Microsoft YaHei,微软雅黑:h12"
vim.opt.clipboard = 'unnamedplus'
vim.opt.tabstop = 4
vim.opt.softtabstop = 4
vim.opt.expandtab = true
vim.opt.shiftwidth = 4
vim.opt.smartindent = true
vim.opt.autoindent = true
vim.opt.termguicolors = true
vim.opt.background = "dark"
vim.opt.title = true
vim.opt.number = true
vim.opt.cursorline = true
vim.opt.ttyfast = true
vim.opt.signcolumn = 'yes'
+22 -26
View File
@@ -1,41 +1,37 @@
{
"LazyVim": { "branch": "main", "commit": "3f034d0a7f58031123300309f2efd3bb0356ee21" },
"SchemaStore.nvim": { "branch": "main", "commit": "735e53aa42423239e1f862e3356bdda56a2ba30e" },
"avante.nvim": { "branch": "main", "commit": "976fb4177cacf96f5b751ac4ea46aafcdea07551" },
"blink.cmp": { "branch": "main", "commit": "485c03400608cb6534bbf84da8c1c471fc4808c0" },
"actions-preview.nvim": { "branch": "master", "commit": "4ab7842eb6a5b6d2b004f8234dcf33382a0fdde2" },
"avante.nvim": { "branch": "main", "commit": "39787969c769204861f1339e52ffcdd00e648220" },
"bufdelete.nvim": { "branch": "master", "commit": "f6bcea78afb3060b198125256f897040538bcb81" },
"bufferline.nvim": { "branch": "main", "commit": "655133c3b4c3e5e05ec549b9f8cc2894ac6f51b3" },
"catppuccin": { "branch": "main", "commit": "5b5e3aef9ad7af84f463d17b5479f06b87d5c429" },
"cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" },
"cmp-nvim-lsp": { "branch": "main", "commit": "99290b3ec1322070bcfb9e846450a46f6efa50f0" },
"cmp-nvim-ultisnips": { "branch": "main", "commit": "2be0eda0f7fbf47ebd9fbdace369cc45d57acf49" },
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
"conform.nvim": { "branch": "master", "commit": "f9ef25a7ef00267b7d13bfc00b0dea22d78702d5" },
"csvview.nvim": { "branch": "main", "commit": "9bd000f338bf020ed4791c95af023c1e14029236" },
"csvview.nvim": { "branch": "main", "commit": "7dcb6aa2965a1d5555d4940ed0c9c2f0e173ecdb" },
"dressing.nvim": { "branch": "master", "commit": "2d7c2db2507fa3c4956142ee607431ddb2828639" },
"flash.nvim": { "branch": "main", "commit": "3c942666f115e2811e959eabbdd361a025db8b63" },
"friendly-snippets": { "branch": "main", "commit": "efff286dd74c22f731cdec26a70b46e5b203c619" },
"gitsigns.nvim": { "branch": "main", "commit": "7010000889bfb6c26065e0b0f7f1e6aa9163edd9" },
"grug-far.nvim": { "branch": "main", "commit": "2c7ef09353714bd4954f5459d9a7e2579a050dc7" },
"grug-far.nvim": { "branch": "main", "commit": "bdcdeed04ea3d49c25036235d027ade401df9c9d" },
"kanagawa.nvim": { "branch": "master", "commit": "709018d5af92d2e5780bfb8a6d36e9cad01a6402" },
"lazy.nvim": { "branch": "main", "commit": "6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a" },
"lazydev.nvim": { "branch": "main", "commit": "2367a6c0a01eb9edb0464731cc0fb61ed9ab9d2c" },
"lualine.nvim": { "branch": "master", "commit": "9fef261b53fbe3a2ef01ee9667f6fde064b1ed10" },
"markdown-preview.nvim": { "branch": "master", "commit": "a923f5fc5ba36a3b17e289dc35dc17f66d0548ee" },
"mason-lspconfig.nvim": { "branch": "main", "commit": "1a31f824b9cd5bc6f342fc29e9a53b60d74af245" },
"mason.nvim": { "branch": "main", "commit": "fc98833b6da5de5a9c5b1446ac541577059555be" },
"mini.ai": { "branch": "main", "commit": "978ffc65c6b513fde9ef075326d34d89197f1ea5" },
"mini.icons": { "branch": "main", "commit": "ec61af6e606fc89ee3b1d8f2f20166a3ca917a36" },
"mini.pairs": { "branch": "main", "commit": "b90e36aa5ca5e0d825e77ad67aac22214a4d9096" },
"noice.nvim": { "branch": "main", "commit": "0427460c2d7f673ad60eb02b35f5e9926cf67c59" },
"mini.ai": { "branch": "main", "commit": "ebb04799794a7f94628153991e6334c3304961b8" },
"mini.pairs": { "branch": "main", "commit": "7e834c5937d95364cc1740e20d673afe2d034cdb" },
"neo-tree.nvim": { "branch": "v3.x", "commit": "9b5d67119c46e3262ffe1508fe6d8540b79ad75d" },
"nui.nvim": { "branch": "main", "commit": "8d3bce9764e627b62b07424e0df77f680d47ffdb" },
"nvim-lint": { "branch": "master", "commit": "936197073214c26a347fb933c9459c8766376b23" },
"nvim-lspconfig": { "branch": "master", "commit": "fb733ac734249ccf293e5c8018981d4d8f59fa8f" },
"nvim-cmp": { "branch": "main", "commit": "1e1900b0769324a9675ef85b38f99cca29e203b3" },
"nvim-lspconfig": { "branch": "master", "commit": "200280dab91a7df2ca42fd2ab3cb4c5fab056666" },
"nvim-surround": { "branch": "main", "commit": "caf6f633d4d77a29b6e265b560c5a035d171a913" },
"nvim-treesitter": { "branch": "master", "commit": "e329e94a6a0a5ccf6ec8bfec1d10faf5eaae665f" },
"nvim-treesitter-textobjects": { "branch": "master", "commit": "9937e5e356e5b227ec56d83d0a9d0a0f6bc9cad4" },
"nvim-ts-autotag": { "branch": "main", "commit": "a1d526af391f6aebb25a8795cbc05351ed3620b5" },
"omnisharp-extended-lsp.nvim": { "branch": "main", "commit": "ec1a2431f8872f650a85ed71c24f0715df2e49c2" },
"persistence.nvim": { "branch": "main", "commit": "166a79a55bfa7a4db3e26fc031b4d92af71d0b51" },
"nvim-web-devicons": { "branch": "master", "commit": "4c3a5848ee0b09ecdea73adcd2a689190aeb728c" },
"plenary.nvim": { "branch": "master", "commit": "857c5ac632080dba10aae49dba902ce3abf91b35" },
"render-markdown.nvim": { "branch": "main", "commit": "c21693fb68ebc5bcba9d73d9f81146007d025586" },
"snacks.nvim": { "branch": "main", "commit": "bc0630e43be5699bb94dadc302c0d21615421d93" },
"render-markdown.nvim": { "branch": "main", "commit": "84d413b0c432adaeaf3dcaac646638bd99d06aa6" },
"telescope.nvim": { "branch": "master", "commit": "a0bbec21143c7bc5f8bb02e0005fa0b982edc026" },
"todo-comments.nvim": { "branch": "main", "commit": "304a8d204ee787d2544d8bc23cd38d2f929e7cc5" },
"tokyonight.nvim": { "branch": "main", "commit": "057ef5d260c1931f1dffd0f052c685dcd14100a3" },
"trouble.nvim": { "branch": "main", "commit": "85bedb7eb7fa331a2ccbecb9202d8abba64d37b3" },
"ts-comments.nvim": { "branch": "main", "commit": "1bd9d0ba1d8b336c3db50692ffd0955fe1bb9f0c" },
"typescript-tools.nvim": { "branch": "master", "commit": "35e397ce467bedbbbb5bfcd0aa79727b59a08d4a" },
"ultisnips": { "branch": "master", "commit": "dbc458e110bb49299da76ec53f8b09b4f6dce28a" },
"vim-fugitive": { "branch": "master", "commit": "4a745ea72fa93bb15dd077109afbb3d1809383f2" },
"which-key.nvim": { "branch": "main", "commit": "370ec46f710e058c9c1646273e6b225acf47cbed" }
}
+3 -7
View File
@@ -1,13 +1,9 @@
{
"extras": [
"lazyvim.plugins.extras.lang.json",
"lazyvim.plugins.extras.lang.markdown",
"lazyvim.plugins.extras.lang.omnisharp",
"lazyvim.plugins.extras.lang.typescript"
],
"install_version": 8,
"news": {
"NEWS.md": "10960"
"NEWS.md": "6520"
},
"version": 8
"version": 6
}
-16
View File
@@ -1,16 +0,0 @@
-- Autocmds are automatically loaded on the VeryLazy event
-- Default autocmds that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/autocmds.lua
--
-- Add any additional autocmds here
-- with `vim.api.nvim_create_autocmd`
--
-- Or remove existing autocmds by their group name (which is prefixed with `lazyvim_` for the defaults)
-- e.g. vim.api.nvim_del_augroup_by_name("lazyvim_wrap_spell")
-- Disable spell check for markdown files
vim.api.nvim_create_autocmd("FileType", {
pattern = "markdown",
callback = function()
vim.opt_local.spell = false
end,
})
-3
View File
@@ -1,3 +0,0 @@
-- Keymaps are automatically loaded on the VeryLazy event
-- Default keymaps that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/keymaps.lua
-- Add any additional keymaps here
+14 -32
View File
@@ -1,3 +1,4 @@
-- Bootstrap lazy.nvim
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not (vim.uv or vim.loop).fs_stat(lazypath) then
local lazyrepo = "https://github.com/folke/lazy.nvim.git"
@@ -14,40 +15,21 @@ if not (vim.uv or vim.loop).fs_stat(lazypath) then
end
vim.opt.rtp:prepend(lazypath)
-- Make sure to setup `mapleader` and `maplocalleader` before
-- loading lazy.nvim so that mappings are correct.
-- This is also a good place to setup other settings (vim.opt)
vim.g.mapleader = " "
vim.g.maplocalleader = "\\"
-- Setup lazy.nvim
require("lazy").setup({
spec = {
-- add LazyVim and import its plugins
{ "LazyVim/LazyVim", import = "lazyvim.plugins" },
-- import/override with your plugins
-- import your plugins
{ import = "plugins" },
},
defaults = {
-- By default, only LazyVim plugins will be lazy-loaded. Your custom plugins will load during startup.
-- If you know what you're doing, you can set this to `true` to have all your custom plugins lazy-loaded by default.
lazy = false,
-- It's recommended to leave version=false for now, since a lot the plugin that support versioning,
-- have outdated releases, which may break your Neovim install.
version = false, -- always use the latest git commit
-- version = "*", -- try installing the latest stable version for plugins that support semver
},
install = { colorscheme = { "tokyonight", "habamax" } },
checker = {
enabled = true, -- check for plugin updates periodically
notify = false, -- notify on update
}, -- automatically check for plugin updates
performance = {
rtp = {
-- disable some rtp plugins
disabled_plugins = {
"gzip",
-- "matchit",
-- "matchparen",
-- "netrwPlugin",
"tarPlugin",
"tohtml",
"tutor",
"zipPlugin",
},
},
},
-- Configure any other settings here. See the documentation for more details.
-- colorscheme that will be used when installing plugins.
install = { colorscheme = { "habamax" } },
-- automatically check for plugin updates
checker = { enabled = true, notify = false },
})
-8
View File
@@ -1,8 +0,0 @@
-- Options are automatically loaded before lazy.nvim startup
-- Default options that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/options.lua
-- Add any additional options here
vim.wo.relativenumber = false
vim.g.snacks_animate = false
vim.opt.guifont = "FiraCode Nerd Font Mono,Microsoft YaHei,微软雅黑:h12"
+9
View File
@@ -0,0 +1,9 @@
return {
{
"neovim/nvim-lspconfig",
config = function()
local lspconfig = require('lspconfig')
lspconfig.csharp_ls.setup {}
end
}
}
+243 -113
View File
@@ -1,123 +1,253 @@
return {
{
"yetone/avante.nvim",
event = "VeryLazy",
lazy = true,
dependencies = {
"stevearc/dressing.nvim",
"nvim-lua/plenary.nvim",
"MunifTanjim/nui.nvim",
{
"MeanderingProgrammer/render-markdown.nvim",
{
"kylechui/nvim-surround",
version = "*", -- Use for stability; omit to use `main` branch for the latest features
event = "VeryLazy",
config = function()
require("nvim-surround").setup({
-- Configuration here, or leave empty to use defaults
})
end
},
{
'echasnovski/mini.pairs',
version = '*' ,
event = "VeryLazy",
config = function()
require('mini.pairs').setup({})
end
},
{ 'echasnovski/mini.ai', version = '*' , },
{
"nvim-neo-tree/neo-tree.nvim",
branch = "v3.x",
dependencies = {
"nvim-lua/plenary.nvim",
"nvim-tree/nvim-web-devicons", -- not strictly required, but recommended
"MunifTanjim/nui.nvim",
-- "3rd/image.nvim", -- Optional image support in preview window: See `# Preview Mode` for more information
},
config = function()
vim.keymap.set("n", "<leader>e", function()
vim.cmd [[Neotree reveal]]
end, { desc = "Run Neotree" })
require'neo-tree'.setup {
filesystem = {
filtered_items = {
hide_by_pattern = {
"*.meta"
}
}
}
}
end
}, {
'MagicDuck/grug-far.nvim',
config = function()
require('grug-far').setup({
-- options, see Configuration section below
-- there are no required options atm
-- engine = 'ripgrep' is default, but 'astgrep' can be specified
});
vim.keymap.set("n", "<leader>gf", function()
vim.cmd [[GrugFar]]
end, { desc = "GrugFar" })
end
}, {
"folke/flash.nvim",
event = "VeryLazy",
---@type Flash.Config
opts = {},
-- stylua: ignore
}, {
'nvim-telescope/telescope.nvim', tag = '0.1.8',
dependencies = { 'nvim-lua/plenary.nvim' },
config = function()
local builtin = require('telescope.builtin')
local utils = require('telescope.utils')
-- generic
vim.keymap.set('n', '<leader>tl', builtin.live_grep, { desc = 'Telescope live grep' })
vim.keymap.set('n', '<leader>td', builtin.lsp_document_symbols, { desc = 'Telescope document symbols' })
vim.keymap.set('n', '<leader>tw', builtin.lsp_dynamic_workspace_symbols, { desc = 'Telescope dynamic workspace symbols' })
vim.keymap.set('n', '<leader>th', builtin.help_tags, { desc = 'Telescope help tags' })
vim.keymap.set('n', '<leader>to', builtin.oldfiles, { desc = 'Telescope oldfiles' })
vim.keymap.set('n', '<leader>tt', function()
vim.cmd [[TodoTelescope]]
end, { desc = 'Telescope Todo' })
-- code inteligence
vim.keymap.set('n', '<leader>cd', builtin.diagnostics, { desc = 'Telescope diagnostics' })
vim.keymap.set('n', '<leader>cr', builtin.lsp_references, { desc = 'Telescope lsp references' })
vim.keymap.set('n', '<leader>cs', builtin.treesitter, { desc = 'Telescope treesitter' })
vim.keymap.set("n", "<leader>ct", function()
vim.cmd [[Trouble diagnostics]]
end, { desc = "Run Trouble Diagnostics" })
vim.keymap.set('n', '<leader>cR', function()
vim.lsp.buf.rename()
end, {desc = "LSP Rename"})
-- file finding
vim.keymap.set('n', '<leader>pf', builtin.find_files, { desc = 'Telescope find in project' })
vim.keymap.set('n', '<leader>ff', function()
builtin.find_files({ cwd = utils.buffer_dir() })
end, { desc = 'Telescope find in buffer dir' })
-- something I'm too used to
vim.keymap.set('n', '<leader>fs', function()
vim.cmd [[w]]
end, { desc = 'Save' })
-- buffers
vim.keymap.set('n', '<leader>bb', builtin.buffers, { desc = 'Telescope buffers' })
vim.keymap.set('n', '<leader>bd', function()
vim.cmd [[Bd]]
end, { desc = 'Save and close' })
vim.keymap.set('n', ']b', function()
vim.cmd [[bnext]]
end, {desc = 'Next buffer'})
vim.keymap.set('n', '[b', function()
vim.cmd [[bprev]]
end, {desc = 'Prev buffer'})
-- jump quicklist
vim.keymap.set('n', ']c', function()
vim.cmd [[cnext]]
end, {desc = 'Next Quicklist'})
vim.keymap.set('n', '[c', function()
vim.cmd [[cprev]]
end, {desc = 'Prev Quicklist'})
end
}, {
"folke/trouble.nvim",
opts = {}, -- for default options, refer to the configuration section for custom setup.
cmd = "Trouble",
}, {
"aznhe21/actions-preview.nvim",
config = function()
vim.keymap.set({ "v", "n" }, "<leader>ca", require("actions-preview").code_actions, { desc = "Telescope code actions"})
end,
}, {
"famiu/bufdelete.nvim"
}, {
"yetone/avante.nvim",
event = 'VeryLazy',
lazy = false,
dependencies = {
"stevearc/dressing.nvim",
"nvim-lua/plenary.nvim",
"MunifTanjim/nui.nvim",
},
opts = {
file_types = { "markdown", "Avante" },
},
ft = { "markdown", "Avante" },
},
},
opts = {
provider = "yochat",
auto_suggestions_provider = "codestral",
-- cursor_applying_provider = "yoqwen32",
-- behaviour = {
-- enable_cursor_planning_mode = true, -- enable cursor planning mode!
-- },
provider = "dsv3",
auto_suggestions_provider = "codestral",
-- cursor_applying_provider = "yoqwen32",
-- behaviour = {
-- enable_cursor_planning_mode = true, -- enable cursor planning mode!
-- },
file_selector = {
provider = "fzf-lua",
provider_opts = {},
},
file_selector = {
provider = "telescope",
provider_opts = {},
},
vendors = {
vendors = {
-- ds
dsv3 = {
__inherited_from = "openai",
api_key_name = "DEEPSEEK_API_KEY",
endpoint = "https://api.deepseek.com",
model = "deepseek-chat",
},
-- ds
dsv3 = {
__inherited_from = "openai",
api_key_name = "DEEPSEEK_API_KEY",
endpoint = "https://api.deepseek.com",
model = "deepseek-chat",
},
-- 百炼
qwenr1 = {
__inherited_from = "openai",
api_key_name = "QWEN_API_KEY",
endpoint = "https://dashscope.aliyuncs.com/compatible-mode/v1/",
model = "deepseek-r1",
disable_tools = true,
},
qwenchat = {
__inherited_from = "openai",
api_key_name = "QWEN_API_KEY",
endpoint = "https://dashscope.aliyuncs.com/compatible-mode/v1/",
model = "deepseek-v3",
disable_tools = true,
},
qwenqwq32 = {
__inherited_from = "openai",
api_key_name = "QWEN_API_KEY",
endpoint = "https://dashscope.aliyuncs.com/compatible-mode/v1/",
model = "qwq-32b",
disable_tools = true,
},
-- 百炼
qwenr1 = {
__inherited_from = "openai",
api_key_name = "QWEN_API_KEY",
endpoint = "https://dashscope.aliyuncs.com/compatible-mode/v1/",
model = "deepseek-r1",
disable_tools = true,
},
qwenchat = {
__inherited_from = "openai",
api_key_name = "QWEN_API_KEY",
endpoint = "https://dashscope.aliyuncs.com/compatible-mode/v1/",
model = "deepseek-v3",
disable_tools = true,
},
qwenqwq32 = {
__inherited_from = "openai",
api_key_name = "QWEN_API_KEY",
endpoint = "https://dashscope.aliyuncs.com/compatible-mode/v1/",
model = "qwq-32b",
disable_tools = true,
},
-- yostar
yor1 = {
__inherited_from = "openai",
api_key_name = "YOSTAR_API_KEY",
endpoint = "https://litellm.yostar.net",
model = "DeepSeek-R1",
disable_tools = true,
},
yochat = {
__inherited_from = "openai",
api_key_name = "YOSTAR_API_KEY",
endpoint = "https://litellm.yostar.net",
model = "DeepSeek-V3",
disable_tools = true,
},
yoqwq32 = {
__inherited_from = "openai",
api_key_name = "YOSTAR_API_KEY",
endpoint = "https://litellm.yostar.net",
model = "qwq-32b",
disable_tools = true,
},
-- yostar
yor1 = {
__inherited_from = "openai",
api_key_name = "YOSTAR_API_KEY",
endpoint = "https://litellm.yostar.net",
model = "DeepSeek-R1",
disable_tools = true,
},
yochat = {
__inherited_from = "openai",
api_key_name = "YOSTAR_API_KEY",
endpoint = "https://litellm.yostar.net",
model = "DeepSeek-V3",
disable_tools = true,
max_completion_tokens = 12288,
},
yoqwq32 = {
__inherited_from = "openai",
api_key_name = "YOSTAR_API_KEY",
endpoint = "https://litellm.yostar.net",
model = "qwq-32b",
disable_tools = true,
},
codestral = {
__inherited_from = "openai",
api_key_name = "CODESTRAL_API_KEY",
endpoint = "https://codestral.mistral.ai/v1",
model = "codestral-latest",
},
},
},
},
{
"hat0uma/csvview.nvim",
ft = "csv",
config = function()
vim.api.nvim_create_autocmd("FileType", {
pattern = "csv",
command = "CsvViewEnable",
})
codestral = {
__inherited_from = 'openai',
api_key_name = 'CODESTRAL_API_KEY',
endpoint = 'https://codestral.mistral.ai/v1',
model = 'codestral-latest'
}
},
}
}, {
'hat0uma/csvview.nvim',
config = function()
vim.api.nvim_create_autocmd('FileType', {
pattern = 'csv',
command = 'CsvViewEnable'
})
require("csvview").setup({
parser = { comments = { "#", "//" } },
keymaps = {
-- Text objects for selecting fields
textobject_field_inner = { "if", mode = { "o", "x" } },
textobject_field_outer = { "af", mode = { "o", "x" } },
-- Excel-like navigation:
-- Use <Tab> and <S-Tab> to move horizontally between fields.
-- Use <Enter> and <S-Enter> to move vertically between rows and place the cursor at the end of the field.
-- Note: In terminals, you may need to enable CSI-u mode to use <S-Tab> and <S-Enter>.
jump_next_field_end = { "<Tab>", mode = { "n", "v" } },
jump_prev_field_end = { "<S-Tab>", mode = { "n", "v" } },
jump_next_row = { "<Enter>", mode = { "n", "v" } },
jump_prev_row = { "<S-Enter>", mode = { "n", "v" } },
},
})
end,
},
require('csvview').setup{
parser = {comments = {"#", "//"}},
keymaps = {
-- Text objects for selecting fields
textobject_field_inner = { "if", mode = { "o", "x" } },
textobject_field_outer = { "af", mode = { "o", "x" } },
-- Excel-like navigation:
-- Use <Tab> and <S-Tab> to move horizontally between fields.
-- Use <Enter> and <S-Enter> to move vertically between rows and place the cursor at the end of the field.
-- Note: In terminals, you may need to enable CSI-u mode to use <S-Tab> and <S-Enter>.
jump_next_field_end = { "<Tab>", mode = { "n", "v" } },
jump_prev_field_end = { "<S-Tab>", mode = { "n", "v" } },
jump_next_row = { "<Enter>", mode = { "n", "v" } },
jump_prev_row = { "<S-Enter>", mode = { "n", "v" } },
},
}
end
}, {
'tpope/vim-fugitive',
config = function()
vim.keymap.set('n', '<leader>gs', ':Git<CR>', {desc = "Git Status"})
vim.keymap.set('n', '<leader>gd', ':Git diff<CR>', {desc = "Git Diff"})
end
}
}
-197
View File
@@ -1,197 +0,0 @@
-- since this is just an example spec, don't actually load anything here and return an empty spec
-- stylua: ignore
if true then return {} end
-- every spec file under the "plugins" directory will be loaded automatically by lazy.nvim
--
-- In your plugin files, you can:
-- * add extra plugins
-- * disable/enabled LazyVim plugins
-- * override the configuration of LazyVim plugins
return {
-- add gruvbox
{ "ellisonleao/gruvbox.nvim" },
-- Configure LazyVim to load gruvbox
{
"LazyVim/LazyVim",
opts = {
colorscheme = "gruvbox",
},
},
-- change trouble config
{
"folke/trouble.nvim",
-- opts will be merged with the parent spec
opts = { use_diagnostic_signs = true },
},
-- disable trouble
{ "folke/trouble.nvim", enabled = false },
-- override nvim-cmp and add cmp-emoji
{
"hrsh7th/nvim-cmp",
dependencies = { "hrsh7th/cmp-emoji" },
---@param opts cmp.ConfigSchema
opts = function(_, opts)
table.insert(opts.sources, { name = "emoji" })
end,
},
-- change some telescope options and a keymap to browse plugin files
{
"nvim-telescope/telescope.nvim",
keys = {
-- add a keymap to browse plugin files
-- stylua: ignore
{
"<leader>fp",
function() require("telescope.builtin").find_files({ cwd = require("lazy.core.config").options.root }) end,
desc = "Find Plugin File",
},
},
-- change some options
opts = {
defaults = {
layout_strategy = "horizontal",
layout_config = { prompt_position = "top" },
sorting_strategy = "ascending",
winblend = 0,
},
},
},
-- add pyright to lspconfig
{
"neovim/nvim-lspconfig",
---@class PluginLspOpts
opts = {
---@type lspconfig.options
servers = {
-- pyright will be automatically installed with mason and loaded with lspconfig
pyright = {},
},
},
},
-- add tsserver and setup with typescript.nvim instead of lspconfig
{
"neovim/nvim-lspconfig",
dependencies = {
"jose-elias-alvarez/typescript.nvim",
init = function()
require("lazyvim.util").lsp.on_attach(function(_, buffer)
-- stylua: ignore
vim.keymap.set( "n", "<leader>co", "TypescriptOrganizeImports", { buffer = buffer, desc = "Organize Imports" })
vim.keymap.set("n", "<leader>cR", "TypescriptRenameFile", { desc = "Rename File", buffer = buffer })
end)
end,
},
---@class PluginLspOpts
opts = {
---@type lspconfig.options
servers = {
-- tsserver will be automatically installed with mason and loaded with lspconfig
tsserver = {},
},
-- you can do any additional lsp server setup here
-- return true if you don't want this server to be setup with lspconfig
---@type table<string, fun(server:string, opts:_.lspconfig.options):boolean?>
setup = {
-- example to setup with typescript.nvim
tsserver = function(_, opts)
require("typescript").setup({ server = opts })
return true
end,
-- Specify * to use this function as a fallback for any server
-- ["*"] = function(server, opts) end,
},
},
},
-- for typescript, LazyVim also includes extra specs to properly setup lspconfig,
-- treesitter, mason and typescript.nvim. So instead of the above, you can use:
{ import = "lazyvim.plugins.extras.lang.typescript" },
-- add more treesitter parsers
{
"nvim-treesitter/nvim-treesitter",
opts = {
ensure_installed = {
"bash",
"html",
"javascript",
"json",
"lua",
"markdown",
"markdown_inline",
"python",
"query",
"regex",
"tsx",
"typescript",
"vim",
"yaml",
},
},
},
-- since `vim.tbl_deep_extend`, can only merge tables and not lists, the code above
-- would overwrite `ensure_installed` with the new value.
-- If you'd rather extend the default config, use the code below instead:
{
"nvim-treesitter/nvim-treesitter",
opts = function(_, opts)
-- add tsx and treesitter
vim.list_extend(opts.ensure_installed, {
"tsx",
"typescript",
})
end,
},
-- the opts function can also be used to change the default opts:
{
"nvim-lualine/lualine.nvim",
event = "VeryLazy",
opts = function(_, opts)
table.insert(opts.sections.lualine_x, {
function()
return "😄"
end,
})
end,
},
-- or you can return new options to override all the defaults
{
"nvim-lualine/lualine.nvim",
event = "VeryLazy",
opts = function()
return {
--[[add your custom lualine config here]]
}
end,
},
-- use mini.starter instead of alpha
{ import = "lazyvim.plugins.extras.ui.mini-starter" },
-- add jsonls and schemastore packages, and setup treesitter for json, json5 and jsonc
{ import = "lazyvim.plugins.extras.lang.json" },
-- add any tools you want to have installed below
{
"williamboman/mason.nvim",
opts = {
ensure_installed = {
"stylua",
"shellcheck",
"shfmt",
"flake8",
},
},
},
}
+145
View File
@@ -0,0 +1,145 @@
return {
{
"pmizio/typescript-tools.nvim",
dependencies = { "nvim-lua/plenary.nvim", "neovim/nvim-lspconfig" },
opts = {},
config = function()
local lspconfig = require('lspconfig')
require('typescript-tools').setup({
settings = {
complete_function_calls = true,
},
root_dir = lspconfig.util.root_pattern("package.json"),
single_file_support = false,
})
vim.keymap.set('n', '<leader>co', function()
vim.cmd [[TSToolsOrganizeImports]]
end, {desc = "TSTools Organize Imports"})
vim.keymap.set('n', '<leader>ci', function()
vim.cmd [[TSToolsAddMissingImports]]
end, {desc = "TSTools Add Missing Imports"})
end
},{
"hrsh7th/nvim-cmp",
event = "InsertEnter",
dependencies = {
"hrsh7th/cmp-nvim-lsp",
"hrsh7th/cmp-buffer",
"hrsh7th/cmp-path",
"SirVer/ultisnips",
"quangnguyen30192/cmp-nvim-ultisnips"
},
config = function()
local cmp = require('cmp')
local cmp_ultisnips_mappings = require("cmp_nvim_ultisnips.mappings")
cmp.setup({
snippet = {
expand = function(args)
vim.fn["UltiSnips#Anon"](args.body)
end
},
completion = {
keyword_length = 1,
max_item_count = 6
},
sources = {
{ name = "nvim_lsp", keyword_length = 1, max_item_count = 6 },
{ name = "buffer", keyword_length = 1, max_item_count = 6 },
{ name = "path", keyword_length = 1, max_item_count = 6 },
{ name = "ultisnips" },
},
mapping = {
['<C-n>'] = cmp.mapping(cmp.mapping.select_next_item(), {'i', 'c'}),
['<C-p>'] = cmp.mapping(cmp.mapping.select_prev_item(), {'i', 'c'}),
['<CR>'] = cmp.mapping.confirm({ select = true }), -- accept currently selected item
['<C-b>'] = cmp.mapping.scroll_docs(-4),
['<C-f>'] = cmp.mapping.scroll_docs(4),
['<C-e>'] = cmp.mapping.abort(),
["<Tab>"] = cmp.mapping(
function(fallback)
cmp_ultisnips_mappings.expand_or_jump_forwards(fallback)
end,
{ "i", "s" }
),
["<S-Tab>"] = cmp.mapping(
function(fallback)
cmp_ultisnips_mappings.jump_backwards(fallback)
end,
{ "i", "s" }
),
},
sorting = {
comparators = {
cmp.config.compare.offset,
cmp.config.compare.exact,
cmp.config.compare.score,
cmp.config.compare.recently_used,
cmp.config.compare.kind,
},
},
})
local capabilities = vim.lsp.protocol.make_client_capabilities()
capabilities = require("cmp_nvim_lsp").default_capabilities(capabilities)
local lspconfig = require('lspconfig')
lspconfig.cssls.setup {
capabilities = capabilities
}
lspconfig.denols.setup{
single_file_support = false,
root_dir = lspconfig.util.root_pattern("deno.json", "deno.jsonc")
}
lspconfig.marksman.setup{
capabilities = capabilities
}
end
},{
"nvim-treesitter/nvim-treesitter",
build = ":TSUpdate",
config = function ()
local configs = require("nvim-treesitter.configs")
configs.setup({
ensure_installed = { "tsx", "typescript", "javascript", "html", "markdown", "c_sharp" },
sync_install = false,
highlight = { enable = true },
indent = { enable = true },
})
end
},
{
'stevearc/conform.nvim',
opts = {},
config = function()
local conform = require('conform')
conform.setup({
formatters_by_ft = {
-- lua = { "stylua" },
-- Conform will run multiple formatters sequentially
-- python = { "isort", "black" },
-- You can customize some of the format options for the filetype (:help conform.format)
-- rust = { "rustfmt", lsp_format = "fallback" },
-- Conform will run the first available formatter
javascript = { "prettierd" },
typescript = { "prettierd" },
css = { "prettierd" },
less = { "prettierd" },
html = { "prettierd" },
},
})
vim.keymap.set("n", "==", function()
conform.format({async = true, lsp_format = "fallback"})
end, { desc = "Conform format" })
vim.keymap.set("v", "=", function()
conform.format({async = true, lsp_format = "fallback"})
vim.api.nvim_feedkeys(vim.api.nvim_replace_termcodes("<Esc>", true, false, true), "n", true)
end, { desc = "Conform format" })
end
}
}
+89
View File
@@ -0,0 +1,89 @@
return {
-- {
-- "ellisonleao/gruvbox.nvim",
-- config = function()
-- vim.cmd([[colorscheme gruvbox]])
-- end
-- },
{
"rebelot/kanagawa.nvim",
config = function()
vim.cmd [[colorscheme kanagawa]]
end
}, {
'akinsho/bufferline.nvim',
version = "*",
dependencies = 'nvim-tree/nvim-web-devicons',
event = "VeryLazy",
config = function()
require("bufferline").setup()
end
},{
'nvim-lualine/lualine.nvim',
dependencies = { 'nvim-tree/nvim-web-devicons' },
event = "VeryLazy",
config = function()
require("lualine").setup()
end
}, {
"folke/todo-comments.nvim",
dependencies = { "nvim-lua/plenary.nvim" },
config = function()
require('todo-comments').setup({})
vim.keymap.set("n", "]t", function()
require("todo-comments").jump_next()
end, { desc = "Next todo comment" })
vim.keymap.set("n", "[t", function()
require("todo-comments").jump_prev()
end, { desc = "Previous todo comment" })
end
},{
"folke/which-key.nvim",
event = "VeryLazy",
},{
"lewis6991/gitsigns.nvim",
config = function()
require('gitsigns').setup{
on_attach = function(bufnr)
local gitsigns = require('gitsigns')
local function map(mode, l, r, opts)
opts = opts or {}
opts.buffer = bufnr
vim.keymap.set(mode, l, r, opts)
end
-- navigation
map('n', ']h', function()
if vim.wo.diff then
vim.cmd.normal({']h', bang = true})
else
gitsigns.nav_hunk('next')
end
end, {desc = "Next Git Hunk"})
map('n', '[h', function()
if vim.wo.diff then
vim.cmd.normal({'[h', bang = true})
else
gitsigns.nav_hunk('prev')
end
end, {desc = "Prev Git Hunk"})
map('n', '<leader>hs', gitsigns.stage_hunk)
map('n', '<leader>hr', gitsigns.reset_hunk)
map('v', '<leader>hs', function() gitsigns.stage_hunk {vim.fn.line('.'), vim.fn.line('v')} end)
map('v', '<leader>hr', function() gitsigns.reset_hunk {vim.fn.line('.'), vim.fn.line('v')} end)
end
}
end
},{
'MeanderingProgrammer/render-markdown.nvim',
dependencies = { 'nvim-treesitter/nvim-treesitter', 'nvim-tree/nvim-web-devicons' }, -- if you prefer nvim-web-devicons
---@module 'render-markdown'
---@type render.md.UserConfig
opts = {},
}
}
-3
View File
@@ -1,3 +0,0 @@
indent_type = "Spaces"
indent_width = 2
column_width = 120