Compare commits
68
Commits
0a58f3fd16
..
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f5eb1a16f7 | ||
|
|
d687614de9 | ||
|
|
038b342eec | ||
|
|
86230438e5 | ||
|
|
8ec7a97bd4 | ||
|
|
c0238ab67c | ||
|
|
8f3bfa6fe8 | ||
|
|
dcacd05054 | ||
|
|
074e8ec3b0 | ||
|
|
4fd10f828e | ||
|
|
ffde2ccc24 | ||
|
|
f56ee816cd | ||
|
|
cb3c621541 | ||
|
|
81343d4d3c | ||
|
|
889ae2623e | ||
|
|
dac0928a6f | ||
|
|
22f9eeab6f | ||
|
|
624a782ddd | ||
|
|
71174b22c7 | ||
|
|
4adc633f0c | ||
|
|
cb7a183ce4 | ||
|
|
1f5668382c | ||
|
|
4164174c1a | ||
|
|
b0279980c3 | ||
|
|
ea495f8181 | ||
|
|
9bd2925161 | ||
|
|
b17fe062d5 | ||
|
|
36671c6599 | ||
|
|
e5e9d292e9 | ||
|
|
9dcc2629ac | ||
|
|
562070873a | ||
|
|
66a753cd9d | ||
|
|
c84e45ad0c | ||
|
|
dc9ef486f0 | ||
|
|
2ce4a97439 | ||
|
|
ddab026923 | ||
|
|
c8db1bda9b | ||
|
|
63f4119678 | ||
|
|
0cc45c6281 | ||
|
|
7d5dcc7660 | ||
|
|
cc8ae3ad3e | ||
|
|
f155486d78 | ||
|
|
c685c045bb | ||
|
|
efd25f8418 | ||
|
|
797f129916 | ||
|
|
1c1ede62b4 | ||
|
|
c5dece31ac | ||
|
|
0ebe6682b3 | ||
|
|
c1ad5acb5d | ||
|
|
caee0da0c3 | ||
|
|
a8dca2970c | ||
|
|
4c64251203 | ||
|
|
47d76849bf | ||
|
|
93938b30ad | ||
|
|
0faf930e37 | ||
|
|
43c2d3815a | ||
|
|
37c28816d9 | ||
|
|
f8d3a55606 | ||
|
|
cfdb420e1c | ||
|
|
77922626f6 | ||
|
|
da84481bf0 | ||
|
|
c074143b95 | ||
|
|
55ec4ac21c | ||
|
|
e31646dcf0 | ||
|
|
98c76f67f2 | ||
|
|
f822d78283 | ||
|
|
0f3fd37d43 | ||
|
|
866a877889 |
@@ -1,8 +0,0 @@
|
|||||||
tt.*
|
|
||||||
.tests
|
|
||||||
doc/tags
|
|
||||||
debug
|
|
||||||
.repro
|
|
||||||
foo.*
|
|
||||||
*.log
|
|
||||||
data
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
{
|
|
||||||
"neodev": {
|
|
||||||
"library": {
|
|
||||||
"enabled": true,
|
|
||||||
"plugins": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"neoconf": {
|
|
||||||
"plugins": {
|
|
||||||
"lua_ls": {
|
|
||||||
"enabled": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -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.
|
|
||||||
@@ -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.
|
|
||||||
@@ -1,2 +1,30 @@
|
|||||||
-- bootstrap lazy.nvim, LazyVim and your plugins
|
if vim.g.vscode then
|
||||||
require("config.lazy")
|
-- 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
@@ -1,41 +1,37 @@
|
|||||||
{
|
{
|
||||||
"LazyVim": { "branch": "main", "commit": "3f034d0a7f58031123300309f2efd3bb0356ee21" },
|
"actions-preview.nvim": { "branch": "master", "commit": "4ab7842eb6a5b6d2b004f8234dcf33382a0fdde2" },
|
||||||
"SchemaStore.nvim": { "branch": "main", "commit": "735e53aa42423239e1f862e3356bdda56a2ba30e" },
|
"avante.nvim": { "branch": "main", "commit": "39787969c769204861f1339e52ffcdd00e648220" },
|
||||||
"avante.nvim": { "branch": "main", "commit": "976fb4177cacf96f5b751ac4ea46aafcdea07551" },
|
"bufdelete.nvim": { "branch": "master", "commit": "f6bcea78afb3060b198125256f897040538bcb81" },
|
||||||
"blink.cmp": { "branch": "main", "commit": "485c03400608cb6534bbf84da8c1c471fc4808c0" },
|
|
||||||
"bufferline.nvim": { "branch": "main", "commit": "655133c3b4c3e5e05ec549b9f8cc2894ac6f51b3" },
|
"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" },
|
"conform.nvim": { "branch": "master", "commit": "f9ef25a7ef00267b7d13bfc00b0dea22d78702d5" },
|
||||||
"csvview.nvim": { "branch": "main", "commit": "9bd000f338bf020ed4791c95af023c1e14029236" },
|
"csvview.nvim": { "branch": "main", "commit": "7dcb6aa2965a1d5555d4940ed0c9c2f0e173ecdb" },
|
||||||
"dressing.nvim": { "branch": "master", "commit": "2d7c2db2507fa3c4956142ee607431ddb2828639" },
|
"dressing.nvim": { "branch": "master", "commit": "2d7c2db2507fa3c4956142ee607431ddb2828639" },
|
||||||
"flash.nvim": { "branch": "main", "commit": "3c942666f115e2811e959eabbdd361a025db8b63" },
|
"flash.nvim": { "branch": "main", "commit": "3c942666f115e2811e959eabbdd361a025db8b63" },
|
||||||
"friendly-snippets": { "branch": "main", "commit": "efff286dd74c22f731cdec26a70b46e5b203c619" },
|
|
||||||
"gitsigns.nvim": { "branch": "main", "commit": "7010000889bfb6c26065e0b0f7f1e6aa9163edd9" },
|
"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" },
|
"lazy.nvim": { "branch": "main", "commit": "6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a" },
|
||||||
"lazydev.nvim": { "branch": "main", "commit": "2367a6c0a01eb9edb0464731cc0fb61ed9ab9d2c" },
|
|
||||||
"lualine.nvim": { "branch": "master", "commit": "9fef261b53fbe3a2ef01ee9667f6fde064b1ed10" },
|
"lualine.nvim": { "branch": "master", "commit": "9fef261b53fbe3a2ef01ee9667f6fde064b1ed10" },
|
||||||
"markdown-preview.nvim": { "branch": "master", "commit": "a923f5fc5ba36a3b17e289dc35dc17f66d0548ee" },
|
"mini.ai": { "branch": "main", "commit": "ebb04799794a7f94628153991e6334c3304961b8" },
|
||||||
"mason-lspconfig.nvim": { "branch": "main", "commit": "1a31f824b9cd5bc6f342fc29e9a53b60d74af245" },
|
"mini.pairs": { "branch": "main", "commit": "7e834c5937d95364cc1740e20d673afe2d034cdb" },
|
||||||
"mason.nvim": { "branch": "main", "commit": "fc98833b6da5de5a9c5b1446ac541577059555be" },
|
"neo-tree.nvim": { "branch": "v3.x", "commit": "9b5d67119c46e3262ffe1508fe6d8540b79ad75d" },
|
||||||
"mini.ai": { "branch": "main", "commit": "978ffc65c6b513fde9ef075326d34d89197f1ea5" },
|
|
||||||
"mini.icons": { "branch": "main", "commit": "ec61af6e606fc89ee3b1d8f2f20166a3ca917a36" },
|
|
||||||
"mini.pairs": { "branch": "main", "commit": "b90e36aa5ca5e0d825e77ad67aac22214a4d9096" },
|
|
||||||
"noice.nvim": { "branch": "main", "commit": "0427460c2d7f673ad60eb02b35f5e9926cf67c59" },
|
|
||||||
"nui.nvim": { "branch": "main", "commit": "8d3bce9764e627b62b07424e0df77f680d47ffdb" },
|
"nui.nvim": { "branch": "main", "commit": "8d3bce9764e627b62b07424e0df77f680d47ffdb" },
|
||||||
"nvim-lint": { "branch": "master", "commit": "936197073214c26a347fb933c9459c8766376b23" },
|
"nvim-cmp": { "branch": "main", "commit": "1e1900b0769324a9675ef85b38f99cca29e203b3" },
|
||||||
"nvim-lspconfig": { "branch": "master", "commit": "fb733ac734249ccf293e5c8018981d4d8f59fa8f" },
|
"nvim-lspconfig": { "branch": "master", "commit": "200280dab91a7df2ca42fd2ab3cb4c5fab056666" },
|
||||||
|
"nvim-surround": { "branch": "main", "commit": "caf6f633d4d77a29b6e265b560c5a035d171a913" },
|
||||||
"nvim-treesitter": { "branch": "master", "commit": "e329e94a6a0a5ccf6ec8bfec1d10faf5eaae665f" },
|
"nvim-treesitter": { "branch": "master", "commit": "e329e94a6a0a5ccf6ec8bfec1d10faf5eaae665f" },
|
||||||
"nvim-treesitter-textobjects": { "branch": "master", "commit": "9937e5e356e5b227ec56d83d0a9d0a0f6bc9cad4" },
|
"nvim-web-devicons": { "branch": "master", "commit": "4c3a5848ee0b09ecdea73adcd2a689190aeb728c" },
|
||||||
"nvim-ts-autotag": { "branch": "main", "commit": "a1d526af391f6aebb25a8795cbc05351ed3620b5" },
|
|
||||||
"omnisharp-extended-lsp.nvim": { "branch": "main", "commit": "ec1a2431f8872f650a85ed71c24f0715df2e49c2" },
|
|
||||||
"persistence.nvim": { "branch": "main", "commit": "166a79a55bfa7a4db3e26fc031b4d92af71d0b51" },
|
|
||||||
"plenary.nvim": { "branch": "master", "commit": "857c5ac632080dba10aae49dba902ce3abf91b35" },
|
"plenary.nvim": { "branch": "master", "commit": "857c5ac632080dba10aae49dba902ce3abf91b35" },
|
||||||
"render-markdown.nvim": { "branch": "main", "commit": "c21693fb68ebc5bcba9d73d9f81146007d025586" },
|
"render-markdown.nvim": { "branch": "main", "commit": "84d413b0c432adaeaf3dcaac646638bd99d06aa6" },
|
||||||
"snacks.nvim": { "branch": "main", "commit": "bc0630e43be5699bb94dadc302c0d21615421d93" },
|
"telescope.nvim": { "branch": "master", "commit": "a0bbec21143c7bc5f8bb02e0005fa0b982edc026" },
|
||||||
"todo-comments.nvim": { "branch": "main", "commit": "304a8d204ee787d2544d8bc23cd38d2f929e7cc5" },
|
"todo-comments.nvim": { "branch": "main", "commit": "304a8d204ee787d2544d8bc23cd38d2f929e7cc5" },
|
||||||
"tokyonight.nvim": { "branch": "main", "commit": "057ef5d260c1931f1dffd0f052c685dcd14100a3" },
|
|
||||||
"trouble.nvim": { "branch": "main", "commit": "85bedb7eb7fa331a2ccbecb9202d8abba64d37b3" },
|
"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" }
|
"which-key.nvim": { "branch": "main", "commit": "370ec46f710e058c9c1646273e6b225acf47cbed" }
|
||||||
}
|
}
|
||||||
|
|||||||
+3
-7
@@ -1,13 +1,9 @@
|
|||||||
{
|
{
|
||||||
"extras": [
|
"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": {
|
||||||
"NEWS.md": "10960"
|
"NEWS.md": "6520"
|
||||||
},
|
},
|
||||||
"version": 8
|
"version": 6
|
||||||
}
|
}
|
||||||
@@ -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,
|
|
||||||
})
|
|
||||||
@@ -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
@@ -1,3 +1,4 @@
|
|||||||
|
-- Bootstrap lazy.nvim
|
||||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||||
if not (vim.uv or vim.loop).fs_stat(lazypath) then
|
if not (vim.uv or vim.loop).fs_stat(lazypath) then
|
||||||
local lazyrepo = "https://github.com/folke/lazy.nvim.git"
|
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
|
end
|
||||||
vim.opt.rtp:prepend(lazypath)
|
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({
|
require("lazy").setup({
|
||||||
spec = {
|
spec = {
|
||||||
-- add LazyVim and import its plugins
|
-- import your plugins
|
||||||
{ "LazyVim/LazyVim", import = "lazyvim.plugins" },
|
|
||||||
-- import/override with your plugins
|
|
||||||
{ import = "plugins" },
|
{ import = "plugins" },
|
||||||
},
|
},
|
||||||
defaults = {
|
-- Configure any other settings here. See the documentation for more details.
|
||||||
-- By default, only LazyVim plugins will be lazy-loaded. Your custom plugins will load during startup.
|
-- colorscheme that will be used when installing plugins.
|
||||||
-- If you know what you're doing, you can set this to `true` to have all your custom plugins lazy-loaded by default.
|
install = { colorscheme = { "habamax" } },
|
||||||
lazy = false,
|
-- automatically check for plugin updates
|
||||||
-- It's recommended to leave version=false for now, since a lot the plugin that support versioning,
|
checker = { enabled = true, notify = false },
|
||||||
-- 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",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -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"
|
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
return {
|
||||||
|
{
|
||||||
|
"neovim/nvim-lspconfig",
|
||||||
|
config = function()
|
||||||
|
local lspconfig = require('lspconfig')
|
||||||
|
lspconfig.csharp_ls.setup {}
|
||||||
|
end
|
||||||
|
}
|
||||||
|
}
|
||||||
+244
-114
@@ -1,123 +1,253 @@
|
|||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"yetone/avante.nvim",
|
"kylechui/nvim-surround",
|
||||||
event = "VeryLazy",
|
version = "*", -- Use for stability; omit to use `main` branch for the latest features
|
||||||
lazy = true,
|
event = "VeryLazy",
|
||||||
dependencies = {
|
config = function()
|
||||||
"stevearc/dressing.nvim",
|
require("nvim-surround").setup({
|
||||||
"nvim-lua/plenary.nvim",
|
-- Configuration here, or leave empty to use defaults
|
||||||
"MunifTanjim/nui.nvim",
|
})
|
||||||
{
|
end
|
||||||
"MeanderingProgrammer/render-markdown.nvim",
|
},
|
||||||
|
{
|
||||||
|
'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 = {
|
opts = {
|
||||||
file_types = { "markdown", "Avante" },
|
provider = "dsv3",
|
||||||
},
|
auto_suggestions_provider = "codestral",
|
||||||
ft = { "markdown", "Avante" },
|
-- cursor_applying_provider = "yoqwen32",
|
||||||
},
|
-- behaviour = {
|
||||||
},
|
-- enable_cursor_planning_mode = true, -- enable cursor planning mode!
|
||||||
opts = {
|
-- },
|
||||||
provider = "yochat",
|
|
||||||
auto_suggestions_provider = "codestral",
|
|
||||||
-- cursor_applying_provider = "yoqwen32",
|
|
||||||
-- behaviour = {
|
|
||||||
-- enable_cursor_planning_mode = true, -- enable cursor planning mode!
|
|
||||||
-- },
|
|
||||||
|
|
||||||
file_selector = {
|
file_selector = {
|
||||||
provider = "fzf-lua",
|
provider = "telescope",
|
||||||
provider_opts = {},
|
provider_opts = {},
|
||||||
},
|
},
|
||||||
|
|
||||||
vendors = {
|
vendors = {
|
||||||
|
|
||||||
-- ds
|
-- ds
|
||||||
dsv3 = {
|
dsv3 = {
|
||||||
__inherited_from = "openai",
|
__inherited_from = "openai",
|
||||||
api_key_name = "DEEPSEEK_API_KEY",
|
api_key_name = "DEEPSEEK_API_KEY",
|
||||||
endpoint = "https://api.deepseek.com",
|
endpoint = "https://api.deepseek.com",
|
||||||
model = "deepseek-chat",
|
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,
|
||||||
|
},
|
||||||
|
|
||||||
-- 百炼
|
-- yostar
|
||||||
qwenr1 = {
|
yor1 = {
|
||||||
__inherited_from = "openai",
|
__inherited_from = "openai",
|
||||||
api_key_name = "QWEN_API_KEY",
|
api_key_name = "YOSTAR_API_KEY",
|
||||||
endpoint = "https://dashscope.aliyuncs.com/compatible-mode/v1/",
|
endpoint = "https://litellm.yostar.net",
|
||||||
model = "deepseek-r1",
|
model = "DeepSeek-R1",
|
||||||
disable_tools = true,
|
disable_tools = true,
|
||||||
},
|
},
|
||||||
qwenchat = {
|
yochat = {
|
||||||
__inherited_from = "openai",
|
__inherited_from = "openai",
|
||||||
api_key_name = "QWEN_API_KEY",
|
api_key_name = "YOSTAR_API_KEY",
|
||||||
endpoint = "https://dashscope.aliyuncs.com/compatible-mode/v1/",
|
endpoint = "https://litellm.yostar.net",
|
||||||
model = "deepseek-v3",
|
model = "DeepSeek-V3",
|
||||||
disable_tools = true,
|
disable_tools = true,
|
||||||
},
|
max_completion_tokens = 12288,
|
||||||
qwenqwq32 = {
|
},
|
||||||
__inherited_from = "openai",
|
yoqwq32 = {
|
||||||
api_key_name = "QWEN_API_KEY",
|
__inherited_from = "openai",
|
||||||
endpoint = "https://dashscope.aliyuncs.com/compatible-mode/v1/",
|
api_key_name = "YOSTAR_API_KEY",
|
||||||
model = "qwq-32b",
|
endpoint = "https://litellm.yostar.net",
|
||||||
disable_tools = true,
|
model = "qwq-32b",
|
||||||
},
|
disable_tools = true,
|
||||||
|
},
|
||||||
|
|
||||||
-- yostar
|
codestral = {
|
||||||
yor1 = {
|
__inherited_from = 'openai',
|
||||||
__inherited_from = "openai",
|
api_key_name = 'CODESTRAL_API_KEY',
|
||||||
api_key_name = "YOSTAR_API_KEY",
|
endpoint = 'https://codestral.mistral.ai/v1',
|
||||||
endpoint = "https://litellm.yostar.net",
|
model = 'codestral-latest'
|
||||||
model = "DeepSeek-R1",
|
}
|
||||||
disable_tools = true,
|
},
|
||||||
},
|
}
|
||||||
yochat = {
|
}, {
|
||||||
__inherited_from = "openai",
|
'hat0uma/csvview.nvim',
|
||||||
api_key_name = "YOSTAR_API_KEY",
|
config = function()
|
||||||
endpoint = "https://litellm.yostar.net",
|
vim.api.nvim_create_autocmd('FileType', {
|
||||||
model = "DeepSeek-V3",
|
pattern = 'csv',
|
||||||
disable_tools = true,
|
command = 'CsvViewEnable'
|
||||||
},
|
})
|
||||||
yoqwq32 = {
|
|
||||||
__inherited_from = "openai",
|
|
||||||
api_key_name = "YOSTAR_API_KEY",
|
|
||||||
endpoint = "https://litellm.yostar.net",
|
|
||||||
model = "qwq-32b",
|
|
||||||
disable_tools = true,
|
|
||||||
},
|
|
||||||
|
|
||||||
codestral = {
|
require('csvview').setup{
|
||||||
__inherited_from = "openai",
|
parser = {comments = {"#", "//"}},
|
||||||
api_key_name = "CODESTRAL_API_KEY",
|
keymaps = {
|
||||||
endpoint = "https://codestral.mistral.ai/v1",
|
-- Text objects for selecting fields
|
||||||
model = "codestral-latest",
|
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>.
|
||||||
"hat0uma/csvview.nvim",
|
jump_next_field_end = { "<Tab>", mode = { "n", "v" } },
|
||||||
ft = "csv",
|
jump_prev_field_end = { "<S-Tab>", mode = { "n", "v" } },
|
||||||
config = function()
|
jump_next_row = { "<Enter>", mode = { "n", "v" } },
|
||||||
vim.api.nvim_create_autocmd("FileType", {
|
jump_prev_row = { "<S-Enter>", mode = { "n", "v" } },
|
||||||
pattern = "csv",
|
},
|
||||||
command = "CsvViewEnable",
|
}
|
||||||
})
|
end
|
||||||
|
}, {
|
||||||
require("csvview").setup({
|
'tpope/vim-fugitive',
|
||||||
parser = { comments = { "#", "//" } },
|
config = function()
|
||||||
keymaps = {
|
vim.keymap.set('n', '<leader>gs', ':Git<CR>', {desc = "Git Status"})
|
||||||
-- Text objects for selecting fields
|
vim.keymap.set('n', '<leader>gd', ':Git diff<CR>', {desc = "Git Diff"})
|
||||||
textobject_field_inner = { "if", mode = { "o", "x" } },
|
end
|
||||||
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,
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
@@ -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
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@@ -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 = {},
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
indent_type = "Spaces"
|
|
||||||
indent_width = 2
|
|
||||||
column_width = 120
|
|
||||||
Reference in New Issue
Block a user