Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1bf5f15b26 | ||
|
|
431ceaf329 | ||
|
|
1f8469a53c | ||
|
|
b4b0234008 | ||
|
|
28a7f8126c | ||
|
|
406aa9d8b4 | ||
|
|
ca37162cb7 | ||
|
|
9391ff9fa3 | ||
|
|
702471e454 | ||
|
|
4a6c0c2850 | ||
|
|
db234ef9cb | ||
|
|
0e2eaa3fba | ||
|
|
8bfd9a50a7 | ||
|
|
11268d8ff1 | ||
|
|
927031a2de | ||
|
|
d6bda24697 | ||
|
|
b481b644dd | ||
|
|
8a34051177 | ||
|
|
67650528e4 | ||
|
|
bf9887adac | ||
|
|
28805d1a4c | ||
|
|
8b2eacb6ac | ||
|
|
f3c93701e7 | ||
|
|
aa418a2147 | ||
|
|
09831414cf | ||
|
|
33e1da585d | ||
|
|
6202dd1644 | ||
|
|
304729b23a | ||
|
|
d108169e95 | ||
|
|
4035768195 | ||
|
|
21470b49d9 | ||
|
|
5e1216867b | ||
|
|
427b641eb8 | ||
|
|
d8958d78b5 | ||
|
|
e9857446ce | ||
|
|
ab2ff2e436 | ||
|
|
3d410407be | ||
|
|
5f952bb9d6 | ||
|
|
330d2e470b | ||
|
|
a915a5d7e1 | ||
|
|
bb4d4cbd5c | ||
|
|
0471ca14ca | ||
|
|
4b0f720457 | ||
|
|
502dac1d9a | ||
|
|
4192d9578d | ||
|
|
d715456401 | ||
|
|
6eb8cacd0f | ||
|
|
f64bbd29fb | ||
|
|
76b41cdec4 | ||
|
|
51e99dfba1 | ||
|
|
fb59a9feb0 | ||
|
|
8f74db318c | ||
|
|
d35a3914bf | ||
|
|
9c7d3dc75e | ||
|
|
045faec035 | ||
|
|
1bf8050bc4 | ||
|
|
c848cfddef | ||
|
|
9acadc7ec2 | ||
|
|
d5f3d395f4 | ||
|
|
8ddc6f9e16 | ||
|
|
455557c1f6 | ||
|
|
b9a8a4ad7f | ||
|
|
fe3d0da508 | ||
|
|
1f603f9074 | ||
|
|
cb9cbd3a37 | ||
|
|
2114a6610f | ||
|
|
78cf6ee024 | ||
|
|
d23731c50d | ||
|
|
00f53315b5 | ||
|
|
2bfcd05c62 | ||
|
|
8a6875ab3b | ||
|
|
06d2749308 | ||
|
|
19a8e5089c | ||
|
|
47c0e3bb9b | ||
|
|
9a69f27484 | ||
|
|
85405d6534 | ||
|
|
131187c092 | ||
|
|
ee44b21898 | ||
|
|
8c900f92e7 |
No files matched your search
@@ -0,0 +1,8 @@
|
|||||||
|
root = true
|
||||||
|
|
||||||
|
[*]
|
||||||
|
end_of_line = lf
|
||||||
|
insert_final_newline = true
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 2
|
||||||
|
charset = utf-8
|
||||||
@@ -1,3 +1,3 @@
|
|||||||
{
|
{
|
||||||
".": "12.21.1"
|
".": "12.28.0"
|
||||||
}
|
}
|
||||||
@@ -6,7 +6,10 @@ body:
|
|||||||
- type: markdown
|
- type: markdown
|
||||||
attributes:
|
attributes:
|
||||||
value: |
|
value: |
|
||||||
**Before** reporting an issue, make sure to read the [documentation](https://github.com/folke/LazyVim) and search [existing issues](https://github.com/folke/LazyVim/issues). Usage questions such as ***"How do I...?"*** belong in [Discussions](https://github.com/folke/LazyVim/discussions) and will be closed.
|
**Before** reporting an issue, make sure to read the [documentation](https://github.com/LazyVim/LazyVim)
|
||||||
|
and search [existing issues](https://github.com/LazyVim/LazyVim/issues).
|
||||||
|
|
||||||
|
Usage questions such as ***"How do I...?"*** belong in [Discussions](https://github.com/LazyVim/LazyVim/discussions) and will be closed.
|
||||||
- type: checkboxes
|
- type: checkboxes
|
||||||
attributes:
|
attributes:
|
||||||
label: Did you check docs and existing issues?
|
label: Did you check docs and existing issues?
|
||||||
@@ -57,33 +60,15 @@ body:
|
|||||||
label: Repro
|
label: Repro
|
||||||
description: Minimal `init.lua` to reproduce this issue. Save as `repro.lua` and run with `nvim -u repro.lua`
|
description: Minimal `init.lua` to reproduce this issue. Save as `repro.lua` and run with `nvim -u repro.lua`
|
||||||
value: |
|
value: |
|
||||||
-- DO NOT change the paths and don't remove the colorscheme
|
vim.env.LAZY_STDPATH = ".repro"
|
||||||
local root = vim.fn.fnamemodify("./.repro", ":p")
|
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()
|
||||||
|
|
||||||
-- set stdpaths to use .repro
|
require("lazy.minit").repro({
|
||||||
for _, name in ipairs({ "config", "data", "state", "cache" }) do
|
spec = {
|
||||||
vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
|
{ "LazyVim/LazyVim", import = "lazyvim.plugins" },
|
||||||
end
|
-- add any other plugins here
|
||||||
|
},
|
||||||
-- bootstrap lazy
|
|
||||||
local lazypath = root .. "/plugins/lazy.nvim"
|
|
||||||
if not vim.loop.fs_stat(lazypath) then
|
|
||||||
vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath, })
|
|
||||||
end
|
|
||||||
vim.opt.runtimepath:prepend(lazypath)
|
|
||||||
|
|
||||||
-- install plugins
|
|
||||||
local plugins = {
|
|
||||||
"folke/tokyonight.nvim",
|
|
||||||
{ "LazyVim/LazyVim", import = "lazyvim.plugins" },
|
|
||||||
-- add any other plugins here
|
|
||||||
}
|
|
||||||
require("lazy").setup(plugins, {
|
|
||||||
root = root .. "/plugins",
|
|
||||||
})
|
})
|
||||||
|
render: lua
|
||||||
vim.cmd.colorscheme("tokyonight")
|
|
||||||
-- add anything else here
|
|
||||||
render: Lua
|
|
||||||
validations:
|
validations:
|
||||||
required: false
|
required: false
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
blank_issues_enabled: false
|
blank_issues_enabled: false
|
||||||
contact_links:
|
contact_links:
|
||||||
- name: Ask a question or start a discussion
|
- name: Ask a question
|
||||||
url: https://github.com/LazyVim/LazyVim/discussions
|
url: https://github.com/LazyVim/LazyVim/discussions
|
||||||
about: Use Github discussions instead
|
about: Use Github discussions instead
|
||||||
@@ -1,15 +1,19 @@
|
|||||||
## What is this PR for?
|
## Description
|
||||||
|
|
||||||
<!-- Describe the big picture of your changes to communicate to the maintainers
|
<!-- Describe the big picture of your changes to communicate to the maintainers
|
||||||
why we should accept this pull request. -->
|
why we should accept this pull request. -->
|
||||||
|
|
||||||
## Does this PR fix an existing issue?
|
## Related Issue(s)
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
If this PR fixes any issues, please link to the issue here.
|
If this PR fixes any issues, please link to the issue here.
|
||||||
Fixes #<issue_number>
|
- Fixes #<issue_number>
|
||||||
-->
|
-->
|
||||||
|
|
||||||
|
## Screenshots
|
||||||
|
|
||||||
|
<!-- Add screenshots of the changes if applicable. -->
|
||||||
|
|
||||||
## Checklist
|
## Checklist
|
||||||
|
|
||||||
- [ ] I've read the [CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md) guidelines.
|
- [ ] I've read the [CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md) guidelines.
|
||||||
@@ -1,11 +1,6 @@
|
|||||||
# To get started with Dependabot version updates, you'll need to specify which
|
|
||||||
# package ecosystems to update and where the package manifests are located.
|
|
||||||
# Please see the documentation for all configuration options:
|
|
||||||
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
|
|
||||||
|
|
||||||
version: 2
|
version: 2
|
||||||
updates:
|
updates:
|
||||||
- package-ecosystem: "github-actions" # See documentation for possible values
|
- package-ecosystem: "github-actions"
|
||||||
directory: "/" # Location of package manifests
|
directory: "/"
|
||||||
schedule:
|
schedule:
|
||||||
interval: "weekly"
|
interval: "weekly"
|
||||||
@@ -1,82 +1,14 @@
|
|||||||
name: CI
|
name: CI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
branches: [main, master]
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
stylua:
|
ci:
|
||||||
name: Stylua Formatting
|
uses: folke/github/.github/workflows/ci.yml@main
|
||||||
runs-on: ubuntu-latest
|
secrets: inherit
|
||||||
steps:
|
with:
|
||||||
- uses: actions/checkout@v4
|
plugin: LazyVim
|
||||||
- uses: JohnnyMorganz/stylua-action@v4
|
repo: LazyVim/LazyVim
|
||||||
with:
|
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
version: latest
|
|
||||||
args: --check .
|
|
||||||
tests:
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
# os: [ubuntu-latest, windows-latest]
|
|
||||||
os: [ubuntu-latest]
|
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- name: Install Neovim
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
mkdir -p /tmp/nvim
|
|
||||||
wget -q https://github.com/neovim/neovim/releases/download/nightly/nvim.appimage -O /tmp/nvim/nvim.appimage
|
|
||||||
cd /tmp/nvim
|
|
||||||
chmod a+x ./nvim.appimage
|
|
||||||
./nvim.appimage --appimage-extract
|
|
||||||
echo "/tmp/nvim/squashfs-root/usr/bin/" >> $GITHUB_PATH
|
|
||||||
- name: Run Tests
|
|
||||||
run: |
|
|
||||||
nvim --version
|
|
||||||
[ ! -d tests ] && exit 0
|
|
||||||
./tests/run
|
|
||||||
docs:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
needs: tests
|
|
||||||
if: ${{ github.ref == 'refs/heads/main' && github.repository_owner == 'LazyVim' }}
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- name: panvimdoc
|
|
||||||
uses: kdheepak/panvimdoc@main
|
|
||||||
with:
|
|
||||||
vimdoc: LazyVim
|
|
||||||
version: "Neovim >= 0.9.0"
|
|
||||||
demojify: true
|
|
||||||
treesitter: true
|
|
||||||
- name: Push changes
|
|
||||||
uses: stefanzweifel/git-auto-commit-action@v5
|
|
||||||
with:
|
|
||||||
commit_message: "chore(build): auto-generate vimdoc"
|
|
||||||
commit_user_name: "github-actions[bot]"
|
|
||||||
commit_user_email: "github-actions[bot]@users.noreply.github.com"
|
|
||||||
commit_author: "github-actions[bot] <github-actions[bot]@users.noreply.github.com>"
|
|
||||||
release:
|
|
||||||
name: release
|
|
||||||
if: ${{ github.ref == 'refs/heads/main' && github.repository_owner == 'LazyVim' }}
|
|
||||||
needs:
|
|
||||||
- docs
|
|
||||||
- tests
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: googleapis/release-please-action@v4
|
|
||||||
id: release
|
|
||||||
with:
|
|
||||||
config-file: .github/release-please-config.json
|
|
||||||
manifest-file: .github/.release-please-manifest.json
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- name: tag stable versions
|
|
||||||
if: ${{ steps.release.outputs.release_created }}
|
|
||||||
run: |
|
|
||||||
git config user.name github-actions[bot]
|
|
||||||
git config user.email github-actions[bot]@users.noreply.github.com
|
|
||||||
git remote add gh-token "https://${{ secrets.GITHUB_TOKEN }}@github.com/google-github-actions/release-please-action.git"
|
|
||||||
git tag -d stable || true
|
|
||||||
git push origin :stable || true
|
|
||||||
git tag -a stable -m "Last Stable Release"
|
|
||||||
git push origin stable
|
|
||||||
@@ -1,12 +1,8 @@
|
|||||||
name: "Pull Request Labeler"
|
name: "PR Labeler"
|
||||||
on:
|
on:
|
||||||
- pull_request_target
|
- pull_request_target
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
labeler:
|
labeler:
|
||||||
permissions:
|
uses: folke/github/.github/workflows/labeler.yml@main
|
||||||
contents: read
|
secrets: inherit
|
||||||
pull-requests: write
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/labeler@v5
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
name: "Lint PR"
|
name: PR Title
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request_target:
|
pull_request_target:
|
||||||
@@ -6,36 +6,13 @@ on:
|
|||||||
- opened
|
- opened
|
||||||
- edited
|
- edited
|
||||||
- synchronize
|
- synchronize
|
||||||
|
- reopened
|
||||||
|
- ready_for_review
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
pull-requests: read
|
pull-requests: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
main:
|
pr-title:
|
||||||
name: Validate PR title
|
uses: folke/github/.github/workflows/pr.yml@main
|
||||||
runs-on: ubuntu-latest
|
secrets: inherit
|
||||||
steps:
|
|
||||||
- uses: amannn/action-semantic-pull-request@v5
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
|
||||||
requireScope: true
|
|
||||||
subjectPattern: ^(?![A-Z]).+$
|
|
||||||
scopes: |
|
|
||||||
.+
|
|
||||||
types: |
|
|
||||||
build
|
|
||||||
chore
|
|
||||||
ci
|
|
||||||
docs
|
|
||||||
feat
|
|
||||||
fix
|
|
||||||
merge
|
|
||||||
perf
|
|
||||||
refactor
|
|
||||||
revert
|
|
||||||
style
|
|
||||||
test
|
|
||||||
wip
|
|
||||||
ignoreLabels: |
|
|
||||||
autorelease: pending
|
|
||||||
@@ -1,27 +1,10 @@
|
|||||||
name: Close stale issues and PRs
|
name: Stale Issues & PRs
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "30 1 * * *"
|
- cron: "30 1 * * *"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
stale:
|
ci:
|
||||||
runs-on: ubuntu-latest
|
uses: folke/github/.github/workflows/stale.yml@main
|
||||||
steps:
|
secrets: inherit
|
||||||
- uses: actions/stale@v9
|
|
||||||
with:
|
|
||||||
operations-per-run: 300
|
|
||||||
# default stale time
|
|
||||||
days-before-stale: 30
|
|
||||||
days-before-close: 7
|
|
||||||
# never stale pull requests
|
|
||||||
# days-before-pr-stale: -1
|
|
||||||
days-before-pr-close: -1
|
|
||||||
# exclude issues with certain labels
|
|
||||||
exempt-issue-labels: pinned,wip,security,notice
|
|
||||||
# never stale issues attached to a milestone
|
|
||||||
# exempt-all-milestones: true
|
|
||||||
stale-issue-message: "This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days."
|
|
||||||
stale-pr-message: "This PR is stale because it has been open 60 days with no activity."
|
|
||||||
close-issue-message: "This issue was closed because it has been stalled for 7 days with no activity."
|
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
name: Update Repo
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
schedule:
|
||||||
|
# Run every hour
|
||||||
|
- cron: "0 * * * *"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
ci:
|
||||||
|
uses: folke/github/.github/workflows/update.yml@main
|
||||||
|
secrets: inherit
|
||||||
+8
-7
@@ -1,8 +1,9 @@
|
|||||||
tt.*
|
|
||||||
.tests
|
|
||||||
doc/tags
|
|
||||||
debug
|
|
||||||
.repro
|
|
||||||
foo.*
|
|
||||||
*.log
|
*.log
|
||||||
data
|
/.repro
|
||||||
|
/.tests
|
||||||
|
/build
|
||||||
|
/debug
|
||||||
|
/doc/tags
|
||||||
|
foo.*
|
||||||
|
node_modules
|
||||||
|
tt.*
|
||||||
+131
@@ -1,5 +1,136 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## [12.28.0](https://github.com/LazyVim/LazyVim/compare/v12.27.0...v12.28.0) (2024-07-12)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* new mappings format for which-key v3. Forgot to push :) ([702471e](https://github.com/LazyVim/LazyVim/commit/702471e454ff552189ab03325dc19d0f7a601704))
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **autocmds:** fixed pattern for autocommand to autoenable wrap and spell in text files ([#3975](https://github.com/LazyVim/LazyVim/issues/3975)) ([927031a](https://github.com/LazyVim/LazyVim/commit/927031a2de93f694b032a4df5e6d93fff635a496))
|
||||||
|
* **java:** fix `config_overrides` for tests ([#3968](https://github.com/LazyVim/LazyVim/issues/3968)) ([b481b64](https://github.com/LazyVim/LazyVim/commit/b481b644ddf9f02470ec50264e63c6dd69d444f8))
|
||||||
|
* **outline:** use new object for `symbols.filter` ([#4006](https://github.com/LazyVim/LazyVim/issues/4006)) ([db234ef](https://github.com/LazyVim/LazyVim/commit/db234ef9cbbb1b7b0efa8e3af5c446b965e7c07a))
|
||||||
|
* **php:** `php_cs_fixer` is the correct name ([#3991](https://github.com/LazyVim/LazyVim/issues/3991)) ([8bfd9a5](https://github.com/LazyVim/LazyVim/commit/8bfd9a50a71d8b8147f7d742e8d0f05ee6cba888))
|
||||||
|
* **vscode:** allow overriding default vscode keymaps. Fixes [#3950](https://github.com/LazyVim/LazyVim/issues/3950) ([6765052](https://github.com/LazyVim/LazyVim/commit/67650528e47a57fb687bce2d7bb61fb4f1af8f63))
|
||||||
|
|
||||||
|
## [12.27.0](https://github.com/LazyVim/LazyVim/compare/v12.26.2...v12.27.0) (2024-07-07)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* **icons:** provide language specific icons in extras ([#3931](https://github.com/LazyVim/LazyVim/issues/3931)) ([aa418a2](https://github.com/LazyVim/LazyVim/commit/aa418a2147f52fbe3225aced3a0e7638cf15ea78))
|
||||||
|
* **java:** allow overriding test config ([#3891](https://github.com/LazyVim/LazyVim/issues/3891)) ([8b2eacb](https://github.com/LazyVim/LazyVim/commit/8b2eacb6ac2a8df3c9eaba69fbce34abc3666ec1))
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **fzf-lua:** move register_select to lazy init ([33e1da5](https://github.com/LazyVim/LazyVim/commit/33e1da585d8709bcf6c076e80a73b55ef70a9443))
|
||||||
|
* **lazygit:** improve git browse ([#3941](https://github.com/LazyVim/LazyVim/issues/3941)) ([28805d1](https://github.com/LazyVim/LazyVim/commit/28805d1a4c09b8dccbac8db4f7c6576a29abbd40))
|
||||||
|
|
||||||
|
## [12.26.2](https://github.com/LazyVim/LazyVim/compare/v12.26.1...v12.26.2) (2024-07-07)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **lualine:** check that trouble is installed ([d108169](https://github.com/LazyVim/LazyVim/commit/d108169e951fff8c65ed8dea89b058717cc48da5))
|
||||||
|
|
||||||
|
## [12.26.1](https://github.com/LazyVim/LazyVim/compare/v12.26.0...v12.26.1) (2024-07-06)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **lualine:** use the new ministarter file type to disable in mini.starter ([#3929](https://github.com/LazyVim/LazyVim/issues/3929)) ([330d2e4](https://github.com/LazyVim/LazyVim/commit/330d2e470b79eb31f884685b331d5d255776de90))
|
||||||
|
* **mini.starter:** lazyvim startuptime in mini.starter ([#3935](https://github.com/LazyVim/LazyVim/issues/3935)) ([5f952bb](https://github.com/LazyVim/LazyVim/commit/5f952bb9d6927bdc6a4411dc6b1002fa47b3371d))
|
||||||
|
|
||||||
|
## [12.26.0](https://github.com/LazyVim/LazyVim/compare/v12.25.0...v12.26.0) (2024-07-05)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* **dial:** yaml support ([f64bbd2](https://github.com/LazyVim/LazyVim/commit/f64bbd29fb279ba672ce1fc9a79b06ecc4237c87))
|
||||||
|
* **util:** rest-client ([#3915](https://github.com/LazyVim/LazyVim/issues/3915)) ([76b41cd](https://github.com/LazyVim/LazyVim/commit/76b41cdec421668dd8078e43184674c783554044))
|
||||||
|
* **vue:** enabled hybrid mode to avoid 2 typescript lsp running at same time ([#3908](https://github.com/LazyVim/LazyVim/issues/3908)) ([4b0f720](https://github.com/LazyVim/LazyVim/commit/4b0f720457fbbf624406a540b42e9ad7f2e50a77))
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **dial:** move date related augends to default group ([#3927](https://github.com/LazyVim/LazyVim/issues/3927)) ([4192d95](https://github.com/LazyVim/LazyVim/commit/4192d9578d1946deba76efd1a0ec36e4ba0e1bbf))
|
||||||
|
* **outline:** use the correct symbols and filter config format ([#3924](https://github.com/LazyVim/LazyVim/issues/3924)) ([502dac1](https://github.com/LazyVim/LazyVim/commit/502dac1d9aed71aaa9be8c08a4312622742d47f3))
|
||||||
|
* **project:** properly close window after changing directory ([#3919](https://github.com/LazyVim/LazyVim/issues/3919)) ([51e99df](https://github.com/LazyVim/LazyVim/commit/51e99dfba104af54947dcb960f277d739db4280c))
|
||||||
|
|
||||||
|
## [12.25.0](https://github.com/LazyVim/LazyVim/compare/v12.24.0...v12.25.0) (2024-07-04)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* **erlang:** add Erlang language ([#3911](https://github.com/LazyVim/LazyVim/issues/3911)) ([9c7d3dc](https://github.com/LazyVim/LazyVim/commit/9c7d3dc75e4ecafe8a6dd6ee8fef0bd7711550ac))
|
||||||
|
* **fzf-lua:** preview keymaps for git ([#3904](https://github.com/LazyVim/LazyVim/issues/3904)) ([d5f3d39](https://github.com/LazyVim/LazyVim/commit/d5f3d395f490a252125044d0918267eb18298532))
|
||||||
|
* **ui:** use `mini.icons` instead of `nvim-wev-devicons` ([#3899](https://github.com/LazyVim/LazyVim/issues/3899)) ([045faec](https://github.com/LazyVim/LazyVim/commit/045faec0351ff9a38fda1af9b06bd7f948e84d28))
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **fzf:** make sure `vim.ui.select` works when fzf is not loaded yet ([9acadc7](https://github.com/LazyVim/LazyVim/commit/9acadc7ec289966cf8f4f6c37c348f286ed73ffe))
|
||||||
|
|
||||||
|
## [12.24.0](https://github.com/LazyVim/LazyVim/compare/v12.23.0...v12.24.0) (2024-07-03)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* **options:** jumpoptions=view ([fe3d0da](https://github.com/LazyVim/LazyVim/commit/fe3d0da5087ecadfee8922fa363d3e84c0ba3461))
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **dials:** dials.nvim stopped working after making changes to plugin files ([455557c](https://github.com/LazyVim/LazyVim/commit/455557c1f693c6ced946de2322beceb555161417))
|
||||||
|
|
||||||
|
|
||||||
|
### Performance Improvements
|
||||||
|
|
||||||
|
* **fzf:** lazy-load fzf-lua ([b9a8a4a](https://github.com/LazyVim/LazyVim/commit/b9a8a4ad7f39c8ed3f4febb25dabc9ae24110f98))
|
||||||
|
|
||||||
|
## [12.23.0](https://github.com/LazyVim/LazyVim/compare/v12.22.1...v12.23.0) (2024-07-03)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* **cmp:** attempt for dynamic width and trimming between fields ([#3873](https://github.com/LazyVim/LazyVim/issues/3873)) ([78cf6ee](https://github.com/LazyVim/LazyVim/commit/78cf6ee024cbf6a17dc8406555eb131994cd8b63))
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **chezmoi:** missing support for fzf file picker ([#3888](https://github.com/LazyVim/LazyVim/issues/3888)) ([2114a66](https://github.com/LazyVim/LazyVim/commit/2114a6610f6fc6dea2e4937171429252641bd27d))
|
||||||
|
* **neo-tree:** remove `branch`, since it obstructs updating to latest version ([#3871](https://github.com/LazyVim/LazyVim/issues/3871)) ([d23731c](https://github.com/LazyVim/LazyVim/commit/d23731c50d149769799d90ae8ec4969a79db3628))
|
||||||
|
|
||||||
|
## [12.22.1](https://github.com/LazyVim/LazyVim/compare/v12.22.0...v12.22.1) (2024-06-30)
|
||||||
|
|
||||||
|
|
||||||
|
### Performance Improvements
|
||||||
|
|
||||||
|
* **markdown:** only run markdownlint-cli2 formatter when there are markdownlint diagnostics for the buffer ([8a6875a](https://github.com/LazyVim/LazyVim/commit/8a6875ab3bc79d5890cf0a65e3ef602c1567fa90))
|
||||||
|
|
||||||
|
|
||||||
|
### Reverts
|
||||||
|
|
||||||
|
* feat(neo-tree): more sane defaults for gitignore and hidden files ([2bfcd05](https://github.com/LazyVim/LazyVim/commit/2bfcd05c621f74b4d735b14b43804a901f17d416))
|
||||||
|
|
||||||
|
## [12.22.0](https://github.com/LazyVim/LazyVim/compare/v12.21.1...v12.22.0) (2024-06-30)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* allow a custom path for `lazyvim.json`. Fixes [#3856](https://github.com/LazyVim/LazyVim/issues/3856) ([131187c](https://github.com/LazyVim/LazyVim/commit/131187c092cc42768e0a48a3668e91d009a213a0))
|
||||||
|
* **cmp:** disable `item.menu` for Rust filetypes ([#3858](https://github.com/LazyVim/LazyVim/issues/3858)) ([ee44b21](https://github.com/LazyVim/LazyVim/commit/ee44b2189827e6a34530ad8b55f214a0a809c045))
|
||||||
|
* **neo-tree:** more sane defaults for gitignore and hidden files ([85405d6](https://github.com/LazyVim/LazyVim/commit/85405d65348cac72343d081a81addfb5c8d43743))
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **lsp:** prevent setting up mason-lspconfig more than once when setting mslp opts ([8c900f9](https://github.com/LazyVim/LazyVim/commit/8c900f92e735e9c7e9af24b97de740390383a137))
|
||||||
|
|
||||||
## [12.21.1](https://github.com/LazyVim/LazyVim/compare/v12.21.0...v12.21.1) (2024-06-29)
|
## [12.21.1](https://github.com/LazyVim/LazyVim/compare/v12.21.0...v12.21.1) (2024-06-29)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
*LazyVim.txt* For Neovim >= 0.9.0 Last change: 2024 June 29
|
*LazyVim.txt* For Neovim Last change: 2024 July 13
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
Table of Contents *LazyVim-table-of-contents*
|
Table of Contents *LazyVim-table-of-contents*
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ vim.api.nvim_create_autocmd("FileType", {
|
|||||||
-- wrap and check for spell in text filetypes
|
-- wrap and check for spell in text filetypes
|
||||||
vim.api.nvim_create_autocmd("FileType", {
|
vim.api.nvim_create_autocmd("FileType", {
|
||||||
group = augroup("wrap_spell"),
|
group = augroup("wrap_spell"),
|
||||||
pattern = { "*.txt", "*.tex", "*.typ", "gitcommit", "markdown" },
|
pattern = { "text", "plaintex", "typst", "gitcommit", "markdown" },
|
||||||
callback = function()
|
callback = function()
|
||||||
vim.opt_local.wrap = true
|
vim.opt_local.wrap = true
|
||||||
vim.opt_local.spell = true
|
vim.opt_local.spell = true
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ _G.LazyVim = require("lazyvim.util")
|
|||||||
---@class LazyVimConfig: LazyVimOptions
|
---@class LazyVimConfig: LazyVimOptions
|
||||||
local M = {}
|
local M = {}
|
||||||
|
|
||||||
M.version = "12.21.1" -- x-release-please-version
|
M.version = "12.28.0" -- x-release-please-version
|
||||||
LazyVim.config = M
|
LazyVim.config = M
|
||||||
|
|
||||||
---@class LazyVimOptions
|
---@class LazyVimOptions
|
||||||
@@ -136,6 +136,7 @@ local defaults = {
|
|||||||
|
|
||||||
M.json = {
|
M.json = {
|
||||||
version = 6,
|
version = 6,
|
||||||
|
path = vim.g.lazyvim_json or vim.fn.stdpath("config") .. "/lazyvim.json",
|
||||||
data = {
|
data = {
|
||||||
version = nil, ---@type string?
|
version = nil, ---@type string?
|
||||||
news = {}, ---@type table<string, string>
|
news = {}, ---@type table<string, string>
|
||||||
@@ -144,8 +145,7 @@ M.json = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function M.json.load()
|
function M.json.load()
|
||||||
local path = vim.fn.stdpath("config") .. "/lazyvim.json"
|
local f = io.open(M.json.path, "r")
|
||||||
local f = io.open(path, "r")
|
|
||||||
if f then
|
if f then
|
||||||
local data = f:read("*a")
|
local data = f:read("*a")
|
||||||
f:close()
|
f:close()
|
||||||
@@ -248,16 +248,17 @@ function M.load(name)
|
|||||||
end, { msg = "Failed loading " .. mod })
|
end, { msg = "Failed loading " .. mod })
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
local pattern = "LazyVim" .. name:sub(1, 1):upper() .. name:sub(2)
|
||||||
-- always load lazyvim, then user file
|
-- always load lazyvim, then user file
|
||||||
if M.defaults[name] or name == "options" then
|
if M.defaults[name] or name == "options" then
|
||||||
_load("lazyvim.config." .. name)
|
_load("lazyvim.config." .. name)
|
||||||
|
vim.api.nvim_exec_autocmds("User", { pattern = pattern .. "Defaults", modeline = false })
|
||||||
end
|
end
|
||||||
_load("config." .. name)
|
_load("config." .. name)
|
||||||
if vim.bo.filetype == "lazy" then
|
if vim.bo.filetype == "lazy" then
|
||||||
-- HACK: LazyVim may have overwritten options of the Lazy ui, so reset this here
|
-- HACK: LazyVim may have overwritten options of the Lazy ui, so reset this here
|
||||||
vim.cmd([[do VimResized]])
|
vim.cmd([[do VimResized]])
|
||||||
end
|
end
|
||||||
local pattern = "LazyVim" .. name:sub(1, 1):upper() .. name:sub(2)
|
|
||||||
vim.api.nvim_exec_autocmds("User", { pattern = pattern, modeline = false })
|
vim.api.nvim_exec_autocmds("User", { pattern = pattern, modeline = false })
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -75,6 +75,7 @@ opt.grepformat = "%f:%l:%c:%m"
|
|||||||
opt.grepprg = "rg --vimgrep"
|
opt.grepprg = "rg --vimgrep"
|
||||||
opt.ignorecase = true -- Ignore case
|
opt.ignorecase = true -- Ignore case
|
||||||
opt.inccommand = "nosplit" -- preview incremental substitute
|
opt.inccommand = "nosplit" -- preview incremental substitute
|
||||||
|
opt.jumpoptions = "view"
|
||||||
opt.laststatus = 3 -- global statusline
|
opt.laststatus = 3 -- global statusline
|
||||||
opt.linebreak = true -- Wrap lines at convenient points
|
opt.linebreak = true -- Wrap lines at convenient points
|
||||||
opt.list = true -- Show some invisible characters (tabs...
|
opt.list = true -- Show some invisible characters (tabs...
|
||||||
|
|||||||
@@ -49,11 +49,23 @@ return {
|
|||||||
{ name = "buffer" },
|
{ name = "buffer" },
|
||||||
}),
|
}),
|
||||||
formatting = {
|
formatting = {
|
||||||
format = function(_, item)
|
format = function(entry, item)
|
||||||
local icons = LazyVim.config.icons.kinds
|
local icons = LazyVim.config.icons.kinds
|
||||||
if icons[item.kind] then
|
if icons[item.kind] then
|
||||||
item.kind = icons[item.kind] .. item.kind
|
item.kind = icons[item.kind] .. item.kind
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local widths = {
|
||||||
|
abbr = vim.g.cmp_widths and vim.g.cmp_widths.abbr or 40,
|
||||||
|
menu = vim.g.cmp_widths and vim.g.cmp_widths.menu or 30,
|
||||||
|
}
|
||||||
|
|
||||||
|
for key, width in pairs(widths) do
|
||||||
|
if item[key] and vim.fn.strdisplaywidth(item[key]) > width then
|
||||||
|
item[key] = vim.fn.strcharpart(item[key], 0, width - 1) .. "…"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
return item
|
return item
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ return {
|
|||||||
-- file explorer
|
-- file explorer
|
||||||
{
|
{
|
||||||
"nvim-neo-tree/neo-tree.nvim",
|
"nvim-neo-tree/neo-tree.nvim",
|
||||||
branch = "v3.x",
|
|
||||||
cmd = "Neotree",
|
cmd = "Neotree",
|
||||||
keys = {
|
keys = {
|
||||||
{
|
{
|
||||||
@@ -163,32 +162,47 @@ return {
|
|||||||
{
|
{
|
||||||
"folke/which-key.nvim",
|
"folke/which-key.nvim",
|
||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
|
opts_extend = { "spec" },
|
||||||
opts = {
|
opts = {
|
||||||
plugins = { spelling = true },
|
defaults = {},
|
||||||
defaults = {
|
spec = {
|
||||||
mode = { "n", "v" },
|
{
|
||||||
["g"] = { name = "+goto" },
|
mode = { "n", "v" },
|
||||||
["gs"] = { name = "+surround" },
|
{ "<leader><tab>", group = "tabs" },
|
||||||
["z"] = { name = "+fold" },
|
{ "<leader>b", group = "buffer" },
|
||||||
["]"] = { name = "+next" },
|
{ "<leader>c", group = "code" },
|
||||||
["["] = { name = "+prev" },
|
{ "<leader>f", group = "file/find" },
|
||||||
["<leader><tab>"] = { name = "+tabs" },
|
{ "<leader>g", group = "git" },
|
||||||
["<leader>b"] = { name = "+buffer" },
|
{ "<leader>gh", group = "hunks" },
|
||||||
["<leader>c"] = { name = "+code" },
|
{ "<leader>q", group = "quit/session" },
|
||||||
["<leader>f"] = { name = "+file/find" },
|
{ "<leader>s", group = "search" },
|
||||||
["<leader>g"] = { name = "+git" },
|
{ "<leader>u", group = "ui" },
|
||||||
["<leader>gh"] = { name = "+hunks", ["_"] = "which_key_ignore" },
|
{ "<leader>w", group = "windows" },
|
||||||
["<leader>q"] = { name = "+quit/session" },
|
{ "<leader>x", group = "diagnostics/quickfix" },
|
||||||
["<leader>s"] = { name = "+search" },
|
{ "[", group = "prev" },
|
||||||
["<leader>u"] = { name = "+ui" },
|
{ "]", group = "next" },
|
||||||
["<leader>w"] = { name = "+windows" },
|
{ "g", group = "goto" },
|
||||||
["<leader>x"] = { name = "+diagnostics/quickfix" },
|
{ "gs", group = "surround" },
|
||||||
|
{ "z", group = "fold" },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
keys = {
|
||||||
|
{
|
||||||
|
"<leader>?",
|
||||||
|
function()
|
||||||
|
require("which-key").show({ global = false })
|
||||||
|
end,
|
||||||
|
desc = "Buffer Local Keymaps (which-key)",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
config = function(_, opts)
|
config = function(_, opts)
|
||||||
local wk = require("which-key")
|
local wk = require("which-key")
|
||||||
wk.setup(opts)
|
wk.setup(opts)
|
||||||
wk.register(opts.defaults)
|
if not vim.tbl_isempty(opts.defaults) then
|
||||||
|
LazyVim.warn("which-key: opts.defaults is deprecated. Please use opts.spec instead.")
|
||||||
|
wk.register(opts.defaults)
|
||||||
|
end
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -257,16 +271,18 @@ return {
|
|||||||
{
|
{
|
||||||
"folke/trouble.nvim",
|
"folke/trouble.nvim",
|
||||||
cmd = { "Trouble" },
|
cmd = { "Trouble" },
|
||||||
opts = {},
|
opts = {
|
||||||
|
modes = {
|
||||||
|
lsp = {
|
||||||
|
win = { position = "right" },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
keys = {
|
keys = {
|
||||||
{ "<leader>xx", "<cmd>Trouble diagnostics toggle<cr>", desc = "Diagnostics (Trouble)" },
|
{ "<leader>xx", "<cmd>Trouble diagnostics toggle<cr>", desc = "Diagnostics (Trouble)" },
|
||||||
{ "<leader>xX", "<cmd>Trouble diagnostics toggle filter.buf=0<cr>", desc = "Buffer Diagnostics (Trouble)" },
|
{ "<leader>xX", "<cmd>Trouble diagnostics toggle filter.buf=0<cr>", desc = "Buffer Diagnostics (Trouble)" },
|
||||||
{ "<leader>cs", "<cmd>Trouble symbols toggle focus=false<cr>", desc = "Symbols (Trouble)" },
|
{ "<leader>cs", "<cmd>Trouble symbols toggle<cr>", desc = "Symbols (Trouble)" },
|
||||||
{
|
{ "<leader>cS", "<cmd>Trouble lsp toggle<cr>", desc = "LSP references/definitions/... (Trouble)" },
|
||||||
"<leader>cS",
|
|
||||||
"<cmd>Trouble lsp toggle focus=false win.position=right<cr>",
|
|
||||||
desc = "LSP references/definitions/... (Trouble)",
|
|
||||||
},
|
|
||||||
{ "<leader>xL", "<cmd>Trouble loclist toggle<cr>", desc = "Location List (Trouble)" },
|
{ "<leader>xL", "<cmd>Trouble loclist toggle<cr>", desc = "Location List (Trouble)" },
|
||||||
{ "<leader>xQ", "<cmd>Trouble qflist toggle<cr>", desc = "Quickfix List (Trouble)" },
|
{ "<leader>xQ", "<cmd>Trouble qflist toggle<cr>", desc = "Quickfix List (Trouble)" },
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
local M = {}
|
local M = {}
|
||||||
---@type table<string, table<string, string[]>>
|
|
||||||
M.dials_by_ft = {}
|
|
||||||
|
|
||||||
---@param increment boolean
|
---@param increment boolean
|
||||||
---@param g? boolean
|
---@param g? boolean
|
||||||
@@ -9,7 +7,7 @@ function M.dial(increment, g)
|
|||||||
-- Use visual commands for VISUAL 'v', VISUAL LINE 'V' and VISUAL BLOCK '\22'
|
-- Use visual commands for VISUAL 'v', VISUAL LINE 'V' and VISUAL BLOCK '\22'
|
||||||
local is_visual = mode == "v" or mode == "V" or mode == "\22"
|
local is_visual = mode == "v" or mode == "V" or mode == "\22"
|
||||||
local func = (increment and "inc" or "dec") .. (g and "_g" or "_") .. (is_visual and "visual" or "normal")
|
local func = (increment and "inc" or "dec") .. (g and "_g" or "_") .. (is_visual and "visual" or "normal")
|
||||||
local group = M.dials_by_ft[vim.bo.filetype] or "default"
|
local group = vim.g.dials_by_ft[vim.bo.filetype] or "default"
|
||||||
return require("dial.map")[func](group)
|
return require("dial.map")[func](group)
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -110,21 +108,26 @@ return {
|
|||||||
scss = "css",
|
scss = "css",
|
||||||
typescript = "typescript",
|
typescript = "typescript",
|
||||||
typescriptreact = "typescript",
|
typescriptreact = "typescript",
|
||||||
|
yaml = "yaml",
|
||||||
},
|
},
|
||||||
groups = {
|
groups = {
|
||||||
default = {
|
default = {
|
||||||
augend.integer.alias.decimal, -- nonnegative decimal number (0, 1, 2, 3, ...)
|
augend.integer.alias.decimal, -- nonnegative decimal number (0, 1, 2, 3, ...)
|
||||||
augend.integer.alias.hex, -- nonnegative hex number (0x01, 0x1a1f, etc.)
|
augend.integer.alias.hex, -- nonnegative hex number (0x01, 0x1a1f, etc.)
|
||||||
augend.date.alias["%Y/%m/%d"], -- date (2022/02/19, etc.)
|
augend.date.alias["%Y/%m/%d"], -- date (2022/02/19, etc.)
|
||||||
|
ordinal_numbers,
|
||||||
|
weekdays,
|
||||||
|
months,
|
||||||
},
|
},
|
||||||
typescript = {
|
typescript = {
|
||||||
augend.integer.alias.decimal, -- nonnegative and negative decimal number
|
augend.integer.alias.decimal, -- nonnegative and negative decimal number
|
||||||
augend.constant.alias.bool, -- boolean value (true <-> false)
|
augend.constant.alias.bool, -- boolean value (true <-> false)
|
||||||
logical_alias,
|
logical_alias,
|
||||||
augend.constant.new({ elements = { "let", "const" } }),
|
augend.constant.new({ elements = { "let", "const" } }),
|
||||||
ordinal_numbers,
|
},
|
||||||
weekdays,
|
yaml = {
|
||||||
months,
|
augend.integer.alias.decimal, -- nonnegative and negative decimal number
|
||||||
|
augend.constant.alias.bool, -- boolean value (true <-> false)
|
||||||
},
|
},
|
||||||
css = {
|
css = {
|
||||||
augend.integer.alias.decimal, -- nonnegative and negative decimal number
|
augend.integer.alias.decimal, -- nonnegative and negative decimal number
|
||||||
@@ -137,9 +140,6 @@ return {
|
|||||||
},
|
},
|
||||||
markdown = {
|
markdown = {
|
||||||
augend.misc.alias.markdown_header,
|
augend.misc.alias.markdown_header,
|
||||||
ordinal_numbers,
|
|
||||||
weekdays,
|
|
||||||
months,
|
|
||||||
},
|
},
|
||||||
json = {
|
json = {
|
||||||
augend.integer.alias.decimal, -- nonnegative and negative decimal number
|
augend.integer.alias.decimal, -- nonnegative and negative decimal number
|
||||||
@@ -153,23 +153,17 @@ return {
|
|||||||
word = true, -- if false, "sand" is incremented into "sor", "doctor" into "doctand", etc.
|
word = true, -- if false, "sand" is incremented into "sor", "doctor" into "doctand", etc.
|
||||||
cyclic = true, -- "or" is incremented into "and".
|
cyclic = true, -- "or" is incremented into "and".
|
||||||
}),
|
}),
|
||||||
ordinal_numbers,
|
|
||||||
weekdays,
|
|
||||||
months,
|
|
||||||
},
|
},
|
||||||
python = {
|
python = {
|
||||||
augend.integer.alias.decimal, -- nonnegative and negative decimal number
|
augend.integer.alias.decimal, -- nonnegative and negative decimal number
|
||||||
capitalized_boolean,
|
capitalized_boolean,
|
||||||
logical_alias,
|
logical_alias,
|
||||||
ordinal_numbers,
|
|
||||||
weekdays,
|
|
||||||
months,
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
end,
|
end,
|
||||||
config = function(_, opts)
|
config = function(_, opts)
|
||||||
require("dial.config").augends:register_group(opts.groups)
|
require("dial.config").augends:register_group(opts.groups)
|
||||||
M.dials_by_ft = opts.dials_by_ft
|
vim.g.dials_by_ft = opts.dials_by_ft
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
@@ -43,7 +43,7 @@ return {
|
|||||||
recommended = true,
|
recommended = true,
|
||||||
{
|
{
|
||||||
"ibhagwan/fzf-lua",
|
"ibhagwan/fzf-lua",
|
||||||
event = "VeryLazy",
|
cmd = "FzfLua",
|
||||||
opts = function(_, opts)
|
opts = function(_, opts)
|
||||||
local config = require("fzf-lua.config")
|
local config = require("fzf-lua.config")
|
||||||
local actions = require("fzf-lua.actions")
|
local actions = require("fzf-lua.actions")
|
||||||
@@ -53,6 +53,8 @@ return {
|
|||||||
config.defaults.keymap.fzf["ctrl-u"] = "half-page-up"
|
config.defaults.keymap.fzf["ctrl-u"] = "half-page-up"
|
||||||
config.defaults.keymap.fzf["ctrl-d"] = "half-page-down"
|
config.defaults.keymap.fzf["ctrl-d"] = "half-page-down"
|
||||||
config.defaults.keymap.fzf["ctrl-x"] = "jump"
|
config.defaults.keymap.fzf["ctrl-x"] = "jump"
|
||||||
|
config.defaults.keymap.fzf["ctrl-f"] = "preview-page-down"
|
||||||
|
config.defaults.keymap.fzf["ctrl-b"] = "preview-page-up"
|
||||||
config.defaults.keymap.builtin["<c-f>"] = "preview-page-down"
|
config.defaults.keymap.builtin["<c-f>"] = "preview-page-down"
|
||||||
config.defaults.keymap.builtin["<c-b>"] = "preview-page-up"
|
config.defaults.keymap.builtin["<c-b>"] = "preview-page-up"
|
||||||
|
|
||||||
@@ -188,7 +190,16 @@ return {
|
|||||||
end,
|
end,
|
||||||
config = function(_, opts)
|
config = function(_, opts)
|
||||||
require("fzf-lua").setup(opts)
|
require("fzf-lua").setup(opts)
|
||||||
require("fzf-lua").register_ui_select(opts.ui_select or nil)
|
end,
|
||||||
|
init = function()
|
||||||
|
LazyVim.on_very_lazy(function()
|
||||||
|
vim.ui.select = function(...)
|
||||||
|
require("lazy").load({ plugins = { "fzf-lua" } })
|
||||||
|
local opts = LazyVim.opts("fzf-lua") or {}
|
||||||
|
require("fzf-lua").register_ui_select(opts.ui_select or nil)
|
||||||
|
return vim.ui.select(...)
|
||||||
|
end
|
||||||
|
end)
|
||||||
end,
|
end,
|
||||||
keys = {
|
keys = {
|
||||||
{ "<c-j>", "<c-j>", ft = "fzf", mode = "t", nowait = true },
|
{ "<c-j>", "<c-j>", ft = "fzf", mode = "t", nowait = true },
|
||||||
@@ -200,12 +211,12 @@ return {
|
|||||||
},
|
},
|
||||||
{ "<leader>/", LazyVim.pick("live_grep"), desc = "Grep (Root Dir)" },
|
{ "<leader>/", LazyVim.pick("live_grep"), desc = "Grep (Root Dir)" },
|
||||||
{ "<leader>:", "<cmd>FzfLua command_history<cr>", desc = "Command History" },
|
{ "<leader>:", "<cmd>FzfLua command_history<cr>", desc = "Command History" },
|
||||||
{ "<leader><space>", LazyVim.pick("auto"), desc = "Find Files (Root Dir)" },
|
{ "<leader><space>", LazyVim.pick("files"), desc = "Find Files (Root Dir)" },
|
||||||
-- find
|
-- find
|
||||||
{ "<leader>fb", "<cmd>FzfLua buffers sort_mru=true sort_lastused=true<cr>", desc = "Buffers" },
|
{ "<leader>fb", "<cmd>FzfLua buffers sort_mru=true sort_lastused=true<cr>", desc = "Buffers" },
|
||||||
{ "<leader>fc", LazyVim.pick.config_files(), desc = "Find Config File" },
|
{ "<leader>fc", LazyVim.pick.config_files(), desc = "Find Config File" },
|
||||||
{ "<leader>ff", LazyVim.pick("auto"), desc = "Find Files (Root Dir)" },
|
{ "<leader>ff", LazyVim.pick("files"), desc = "Find Files (Root Dir)" },
|
||||||
{ "<leader>fF", LazyVim.pick("auto", { root = false }), desc = "Find Files (cwd)" },
|
{ "<leader>fF", LazyVim.pick("files", { root = false }), desc = "Find Files (cwd)" },
|
||||||
{ "<leader>fg", "<cmd>FzfLua git_files<cr>", desc = "Find Files (git-files)" },
|
{ "<leader>fg", "<cmd>FzfLua git_files<cr>", desc = "Find Files (git-files)" },
|
||||||
{ "<leader>fr", "<cmd>FzfLua oldfiles<cr>", desc = "Recent" },
|
{ "<leader>fr", "<cmd>FzfLua oldfiles<cr>", desc = "Recent" },
|
||||||
{ "<leader>fR", LazyVim.pick("oldfiles", { cwd = vim.uv.cwd() }), desc = "Recent (cwd)" },
|
{ "<leader>fR", LazyVim.pick("oldfiles", { cwd = vim.uv.cwd() }), desc = "Recent (cwd)" },
|
||||||
|
|||||||
@@ -7,10 +7,10 @@ return {
|
|||||||
"ggandor/flit.nvim",
|
"ggandor/flit.nvim",
|
||||||
enabled = true,
|
enabled = true,
|
||||||
keys = function()
|
keys = function()
|
||||||
---@type LazyKeys[]
|
---@type LazyKeysSpec[]
|
||||||
local ret = {}
|
local ret = {}
|
||||||
for _, key in ipairs({ "f", "F", "t", "T" }) do
|
for _, key in ipairs({ "f", "F", "t", "T" }) do
|
||||||
ret[#ret + 1] = { key, mode = { "n", "x", "o" }, desc = key }
|
ret[#ret + 1] = { key, mode = { "n", "x", "o" } }
|
||||||
end
|
end
|
||||||
return ret
|
return ret
|
||||||
end,
|
end,
|
||||||
|
|||||||
@@ -14,28 +14,21 @@ return {
|
|||||||
opts = function()
|
opts = function()
|
||||||
local defaults = require("outline.config").defaults
|
local defaults = require("outline.config").defaults
|
||||||
local opts = {
|
local opts = {
|
||||||
symbols = {},
|
symbols = {
|
||||||
symbol_blacklist = {},
|
icons = {},
|
||||||
|
filter = vim.deepcopy(LazyVim.config.kind_filter),
|
||||||
|
},
|
||||||
keymaps = {
|
keymaps = {
|
||||||
up_and_jump = "<up>",
|
up_and_jump = "<up>",
|
||||||
down_and_jump = "<down>",
|
down_and_jump = "<down>",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
local filter = LazyVim.config.kind_filter
|
|
||||||
|
|
||||||
if type(filter) == "table" then
|
for kind, symbol in pairs(defaults.symbols.icons) do
|
||||||
filter = filter.default
|
opts.symbols.icons[kind] = {
|
||||||
if type(filter) == "table" then
|
icon = LazyVim.config.icons.kinds[kind] or symbol.icon,
|
||||||
for kind, symbol in pairs(defaults.symbols) do
|
hl = symbol.hl,
|
||||||
opts.symbols[kind] = {
|
}
|
||||||
icon = LazyVim.config.icons.kinds[kind] or symbol.icon,
|
|
||||||
hl = symbol.hl,
|
|
||||||
}
|
|
||||||
if not vim.tbl_contains(filter, kind) then
|
|
||||||
table.insert(opts.symbol_blacklist, kind)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
return opts
|
return opts
|
||||||
end,
|
end,
|
||||||
|
|||||||
@@ -64,7 +64,9 @@ return {
|
|||||||
"folke/which-key.nvim",
|
"folke/which-key.nvim",
|
||||||
optional = true,
|
optional = true,
|
||||||
opts = {
|
opts = {
|
||||||
defaults = { ["<leader>o"] = { name = "+overseer" } },
|
spec = {
|
||||||
|
{ "<leader>o", group = "overseer" },
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -92,12 +92,12 @@ return {
|
|||||||
},
|
},
|
||||||
{ "<leader>/", LazyVim.pick("live_grep"), desc = "Grep (Root Dir)" },
|
{ "<leader>/", LazyVim.pick("live_grep"), desc = "Grep (Root Dir)" },
|
||||||
{ "<leader>:", "<cmd>Telescope command_history<cr>", desc = "Command History" },
|
{ "<leader>:", "<cmd>Telescope command_history<cr>", desc = "Command History" },
|
||||||
{ "<leader><space>", LazyVim.pick("auto"), desc = "Find Files (Root Dir)" },
|
{ "<leader><space>", LazyVim.pick("files"), desc = "Find Files (Root Dir)" },
|
||||||
-- find
|
-- find
|
||||||
{ "<leader>fb", "<cmd>Telescope buffers sort_mru=true sort_lastused=true<cr>", desc = "Buffers" },
|
{ "<leader>fb", "<cmd>Telescope buffers sort_mru=true sort_lastused=true<cr>", desc = "Buffers" },
|
||||||
{ "<leader>fc", LazyVim.pick.config_files(), desc = "Find Config File" },
|
{ "<leader>fc", LazyVim.pick.config_files(), desc = "Find Config File" },
|
||||||
{ "<leader>ff", LazyVim.pick("auto"), desc = "Find Files (Root Dir)" },
|
{ "<leader>ff", LazyVim.pick("files"), desc = "Find Files (Root Dir)" },
|
||||||
{ "<leader>fF", LazyVim.pick("auto", { root = false }), desc = "Find Files (cwd)" },
|
{ "<leader>fF", LazyVim.pick("files", { root = false }), desc = "Find Files (cwd)" },
|
||||||
{ "<leader>fg", "<cmd>Telescope git_files<cr>", desc = "Find Files (git-files)" },
|
{ "<leader>fg", "<cmd>Telescope git_files<cr>", desc = "Find Files (git-files)" },
|
||||||
{ "<leader>fr", "<cmd>Telescope oldfiles<cr>", desc = "Recent" },
|
{ "<leader>fr", "<cmd>Telescope oldfiles<cr>", desc = "Recent" },
|
||||||
{ "<leader>fR", LazyVim.pick("oldfiles", { cwd = vim.uv.cwd() }), desc = "Recent (cwd)" },
|
{ "<leader>fR", LazyVim.pick("oldfiles", { cwd = vim.uv.cwd() }), desc = "Recent (cwd)" },
|
||||||
@@ -198,6 +198,12 @@ return {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
pickers = {
|
||||||
|
find_files = {
|
||||||
|
find_command = { "fd", "--type", "f", "--color", "never", "-E", ".git" },
|
||||||
|
hidden = true,
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -0,0 +1,20 @@
|
|||||||
|
return {
|
||||||
|
recommended = function()
|
||||||
|
return LazyVim.extras.wants({
|
||||||
|
ft = { "erlang" },
|
||||||
|
root = { "rebar.config", "erlang.mk" },
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
{
|
||||||
|
"neovim/nvim-lspconfig",
|
||||||
|
opts = {
|
||||||
|
servers = {
|
||||||
|
erlangls = {},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"nvim-treesitter/nvim-treesitter",
|
||||||
|
opts = { ensure_installed = { "erlang" } },
|
||||||
|
},
|
||||||
|
}
|
||||||
@@ -137,4 +137,17 @@ return {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
-- Filetype icons
|
||||||
|
{
|
||||||
|
"echasnovski/mini.icons",
|
||||||
|
opts = {
|
||||||
|
file = {
|
||||||
|
[".go-version"] = { glyph = "", hl = "MiniIconsBlue" },
|
||||||
|
},
|
||||||
|
filetype = {
|
||||||
|
gotmpl = { glyph = "", hl = "MiniIconsGrey" },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
@@ -190,30 +190,40 @@ return {
|
|||||||
local client = vim.lsp.get_client_by_id(args.data.client_id)
|
local client = vim.lsp.get_client_by_id(args.data.client_id)
|
||||||
if client and client.name == "jdtls" then
|
if client and client.name == "jdtls" then
|
||||||
local wk = require("which-key")
|
local wk = require("which-key")
|
||||||
wk.register({
|
wk.add({
|
||||||
["<leader>cx"] = { name = "+extract" },
|
{
|
||||||
["<leader>cxv"] = { require("jdtls").extract_variable_all, "Extract Variable" },
|
mode = "n",
|
||||||
["<leader>cxc"] = { require("jdtls").extract_constant, "Extract Constant" },
|
buffer = args.buf,
|
||||||
["gs"] = { require("jdtls").super_implementation, "Goto Super" },
|
{ "<leader>cx", group = "extract" },
|
||||||
["gS"] = { require("jdtls.tests").goto_subjects, "Goto Subjects" },
|
{ "<leader>cxv", require("jdtls").extract_variable_all, desc = "Extract Variable" },
|
||||||
["<leader>co"] = { require("jdtls").organize_imports, "Organize Imports" },
|
{ "<leader>cxc", require("jdtls").extract_constant, desc = "Extract Constant" },
|
||||||
}, { mode = "n", buffer = args.buf })
|
{ "gs", require("jdtls").super_implementation, desc = "Goto Super" },
|
||||||
wk.register({
|
{ "gS", require("jdtls.tests").goto_subjects, desc = "Goto Subjects" },
|
||||||
["<leader>c"] = { name = "+code" },
|
{ "<leader>co", require("jdtls").organize_imports, desc = "Organize Imports" },
|
||||||
["<leader>cx"] = { name = "+extract" },
|
|
||||||
["<leader>cxm"] = {
|
|
||||||
[[<ESC><CMD>lua require('jdtls').extract_method(true)<CR>]],
|
|
||||||
"Extract Method",
|
|
||||||
},
|
},
|
||||||
["<leader>cxv"] = {
|
})
|
||||||
[[<ESC><CMD>lua require('jdtls').extract_variable_all(true)<CR>]],
|
wk.add({
|
||||||
"Extract Variable",
|
{
|
||||||
|
mode = "v",
|
||||||
|
buffer = args.buf,
|
||||||
|
{ "<leader>cx", group = "extract" },
|
||||||
|
{
|
||||||
|
"<leader>cxm",
|
||||||
|
[[<ESC><CMD>lua require('jdtls').extract_method(true)<CR>]],
|
||||||
|
desc = "Extract Method",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"<leader>cxv",
|
||||||
|
[[<ESC><CMD>lua require('jdtls').extract_variable_all(true)<CR>]],
|
||||||
|
desc = "Extract Variable",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"<leader>cxc",
|
||||||
|
[[<ESC><CMD>lua require('jdtls').extract_constant(true)<CR>]],
|
||||||
|
desc = "Extract Constant",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
["<leader>cxc"] = {
|
})
|
||||||
[[<ESC><CMD>lua require('jdtls').extract_constant(true)<CR>]],
|
|
||||||
"Extract Constant",
|
|
||||||
},
|
|
||||||
}, { mode = "v", buffer = args.buf })
|
|
||||||
|
|
||||||
if opts.dap and LazyVim.has("nvim-dap") and mason_registry.is_installed("java-debug-adapter") then
|
if opts.dap and LazyVim.has("nvim-dap") and mason_registry.is_installed("java-debug-adapter") then
|
||||||
-- custom init for Java debugger
|
-- custom init for Java debugger
|
||||||
@@ -223,12 +233,32 @@ return {
|
|||||||
-- Java Test require Java debugger to work
|
-- Java Test require Java debugger to work
|
||||||
if opts.test and mason_registry.is_installed("java-test") then
|
if opts.test and mason_registry.is_installed("java-test") then
|
||||||
-- custom keymaps for Java test runner (not yet compatible with neotest)
|
-- custom keymaps for Java test runner (not yet compatible with neotest)
|
||||||
wk.register({
|
wk.add({
|
||||||
["<leader>t"] = { name = "+test" },
|
{
|
||||||
["<leader>tt"] = { require("jdtls.dap").test_class, "Run All Test" },
|
mode = "n",
|
||||||
["<leader>tr"] = { require("jdtls.dap").test_nearest_method, "Run Nearest Test" },
|
buffer = args.buf,
|
||||||
["<leader>tT"] = { require("jdtls.dap").pick_test, "Run Test" },
|
{ "<leader>t", group = "test" },
|
||||||
}, { mode = "n", buffer = args.buf })
|
{
|
||||||
|
"<leader>tt",
|
||||||
|
function()
|
||||||
|
require("jdtls.dap").test_class({
|
||||||
|
config_overrides = type(opts.test) ~= "boolean" and opts.test.config_overrides or nil,
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
desc = "Run All Test",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"<leader>tr",
|
||||||
|
function()
|
||||||
|
require("jdtls.dap").test_nearest_method({
|
||||||
|
config_overrides = type(opts.test) ~= "boolean" and opts.test.config_overrides or nil,
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
desc = "Run Nearest Test",
|
||||||
|
},
|
||||||
|
{ "<leader>tT", require("jdtls.dap").pick_test, desc = "Run Test" },
|
||||||
|
},
|
||||||
|
})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -24,6 +24,14 @@ return {
|
|||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
["markdownlint-cli2"] = {
|
||||||
|
condition = function(_, ctx)
|
||||||
|
local diag = vim.tbl_filter(function(d)
|
||||||
|
return d.source == "markdownlint"
|
||||||
|
end, vim.diagnostic.get(ctx.buf))
|
||||||
|
return #diag > 0
|
||||||
|
end,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
formatters_by_ft = {
|
formatters_by_ft = {
|
||||||
["markdown"] = { "prettier", "markdownlint-cli2", "markdown-toc" },
|
["markdown"] = { "prettier", "markdownlint-cli2", "markdown-toc" },
|
||||||
@@ -92,6 +100,7 @@ return {
|
|||||||
headline_highlights = {},
|
headline_highlights = {},
|
||||||
-- disable bullets for now. See https://github.com/lukas-reineke/headlines.nvim/issues/66
|
-- disable bullets for now. See https://github.com/lukas-reineke/headlines.nvim/issues/66
|
||||||
bullets = {},
|
bullets = {},
|
||||||
|
quote_string = false,
|
||||||
}
|
}
|
||||||
for i = 1, 6 do
|
for i = 1, 6 do
|
||||||
local hl = "Headline" .. i
|
local hl = "Headline" .. i
|
||||||
|
|||||||
@@ -74,13 +74,13 @@ return {
|
|||||||
php = { "phpcs" },
|
php = { "phpcs" },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
},
|
||||||
"stevearc/conform.nvim",
|
{
|
||||||
optional = true,
|
"stevearc/conform.nvim",
|
||||||
opts = {
|
optional = true,
|
||||||
formatters_by_ft = {
|
opts = {
|
||||||
php = { "php-cs-fixer" },
|
formatters_by_ft = {
|
||||||
},
|
php = { "php_cs_fixer" },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Loaded 30 of 51 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user