Skip to content
This repository was archived by the owner on Apr 16, 2024. It is now read-only.

Commit 64e5fe8

Browse files
authored
release: v3.1.0
See CHANGELOG.md file for more information about this release
2 parents 1719808 + 3206b42 commit 64e5fe8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+6003
-5003
lines changed

.editorconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
root = true
2+
3+
# Unix-style newlines with a newline ending every file
4+
[*]
5+
charset = utf-8
6+
end_of_line = lf
7+
insert_final_newline = true
8+
trim_trailing_whitespace = true
9+
10+
# 2 spaces indentation
11+
[*.lua]
12+
indent_size = 2
13+
indent_style = space

.gitattributes

Lines changed: 0 additions & 3 deletions
This file was deleted.

.github/workflows/format.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ jobs:
1414
uses: JohnnyMorganz/stylua-action@1.0.0
1515
with:
1616
token: ${{ secrets.GITHUB_TOKEN }}
17-
args: --config-path=stylua.toml -g *.lua -g !doomrc.lua -- .
17+
args: --config-path=./.stylua.toml -g *.lua -g !doomrc.lua -g !lua/colors/**/*.lua -- .
1818
- name: Commit files
1919
run: |
2020
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
2121
git config --local user.name "github-actions[bot]"
2222
if [[ ! -z $(git status -s) ]]; then
23-
git add *.lua lua/
24-
git commit -m "Format lua files"
23+
git add *.lua colors/*.lua lua/
24+
git commit -m "chore: format source code"
2525
fi
2626
- name: Push formatted files
2727
uses: ad-m/github-push-action@master

.github/workflows/lint.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,17 @@ name: lint
22

33
on:
44
push:
5-
paths: '**.lua'
65
branches: [main, develop]
76
pull_request:
8-
paths: '**.lua'
97
types: [opened, synchronize]
108

119
jobs:
12-
selene:
10+
luacheck:
1311
runs-on: ubuntu-latest
1412
steps:
1513
- uses: actions/checkout@v2
16-
- name: Setup and run selene
17-
uses: NTBBloodbath/selene-action@v1.0.0
14+
- uses: nebularg/actions-luacheck@v1.1.0
1815
with:
19-
token: ${{ secrets.GITHUB_TOKEN }}
20-
args: "."
16+
files: '.'
17+
config: 'https://raw.githubusercontent.com/NTBBloodbath/doom-nvim/develop/.luacheckrc'
18+
annotate: 'error'

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
# My temp files
22
plugin/
33
sessions/
4+
undodir/
45
time_cost.txt
6+
tags
57
# Backup files
68
.doom_releases
79
.doom_backup_hash

.luacheckrc

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
stds.nvim = {
2+
globals = {
3+
vim = { fields = { "g" } },
4+
table = { fields = { "unpack" } },
5+
package = { fields = { "searchers" } },
6+
},
7+
read_globals = {
8+
"vim",
9+
"jit",
10+
"packer_plugins",
11+
},
12+
}
13+
std = "lua51+nvim"
14+
15+
-- Rerun tests only if their modification time changed.
16+
cache = true
17+
18+
-- NOTE: rules from 200...400 are specific for Neovim stuff, e.g. vim.opt
19+
ignore = {
20+
"212/_.*", -- Unused argument, for variables with "_" prefix.
21+
"331", -- Value assigned to a local variable is mutated but never accessed.
22+
"631", -- Line is too long.
23+
}
24+
25+
exclude_files = {
26+
"plugin/packer_compiled.lua",
27+
}
28+
29+
-- vim: ft=lua sw=2 ts=2

.stylua.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
column_width = 100
2+
line_endings = "Unix"
3+
indent_type = "Spaces"
4+
indent_width = 2
5+
quote_style = "AutoPreferDouble"

CHANGELOG.md

Lines changed: 82 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,85 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [3.1.0] - 2021-08-26
11+
12+
### Added
13+
14+
- Options field to `doom_config.lua`, see [#62](https://github.com/NTBBloodbath/doom-nvim/pull/62)
15+
- New prompt for editing doom configurations
16+
- Better internal errors handling
17+
- Allow to use options (e.g. silent) in the custom mappings
18+
- Custom settings defined on `doom_config.lua` are automatically reloaded
19+
- `SPC - d - l` keybinding for manually reload configurations
20+
- Windows support (note that some plugins does not work well on Windows and that's not a doom issue!)
21+
- `SPC - d - s` keybinding now offers a live preview for the colorschemes
22+
- `tsx` treesitter parser is now installed alongside with the typescript one, see [#84](https://github.com/NTBBloodbath/doom-nvim/issues/84)
23+
- Allow to override default keymappings
24+
- Quick save with `SPC - v / m`
25+
- Jump keybindings on which-key
26+
- Keybindings to move lines (`Alt + j / k`)
27+
- `win_width` option, for automatically setting the windows width
28+
- You can now add your doom-nvim configurations to your dotfiles without having to use submodules!
29+
See [#79](https://github.com/NTBBloodbath/doom-nvim/issues/79)
30+
- Plugins:
31+
- New plugin: treesitter companion plugins (autotag, docs, etc)
32+
- New plugin: nvim-mapper, a keybindings cheatsheet
33+
- New plugin: DAP (Debugging Adapter Protocol) support
34+
- New plugin: trouble, better quickfix window
35+
- New plugin: todo-comments.nvim, better TODO comments
36+
- New plugin: superman, man pages integration
37+
- New plugin: ranger, file browser integration
38+
- New plugin: firenvim, use Neovim in your favorite web browser!
39+
- New plugin: registers.nvim, show contents of each register on a popup window
40+
- Added more dynamic color palettes to galaxyline (e.g. nord, dracula, tokyonight)
41+
42+
### Changed
43+
44+
- Assume `~/.config/nvim` rather than `~/.config/doom-nvim`, see [#41](https://github.com/NTBBloodbath/doom-nvim/pull/41)
45+
- Autocommands and keybindings now lives in `doom.extras` instead of `doom.core`
46+
- Use a custom toggleterm instance for running and compiling code
47+
- `<leader><space>` keybind is now `<leader>` + \`
48+
- Format files before saving them instead of saving and formatting later
49+
- Improved crash report (`SPC - d - R`) output
50+
- undodir is now located at `~/.local/share/nvim`
51+
- We have adopted a more saner and common coding style:
52+
- Spaces over tabs
53+
- Two spaces for indentation
54+
- Plugins:
55+
- Changed some packer defaults for cloning, should speed up the cloning step with heavy size plugins like plenary
56+
- Changed kommentary lazy-loading event
57+
- Changed nvim-compe lazy-loading event
58+
- Improved how which-key plugin is being lazy-loaded
59+
- Updated TrueZen configurations
60+
- Updated gitsigns configurations
61+
- Lua LSP configurations are now handled by lua-dev.nvim plugin
62+
- session-lens was replaced by persistence.nvim
63+
- Improved some dashboard icons
64+
- indent-blankline character is now full height
65+
- Saner telescope configurations
66+
67+
### Fixed
68+
69+
- Respect `XDG_CONFIG_HOME` environment variable
70+
- Plugins:
71+
- Occasional bug with autosessions
72+
- Properly lazy-load TrueZen
73+
- Use GCC compiler for haskell treesitter parser
74+
- bufferline will not be shown when:
75+
1. Only one buffer is opened
76+
2. While being in the dashboard
77+
- Add extra whitespace to some icons on galaxyline
78+
- Disable indent-blankline on norg files
79+
80+
### Deleted
81+
82+
- "Async" logic, it was not true async so we don't need it anymore
83+
- Installer, doom-nvim can be installed with just two commands. Now you can have truly power over
84+
the installation process and a very transparent installation
85+
- Unneeded `:checkhealth` add-on
86+
- Plugins:
87+
- lspsaga, we are now using the built-in functionalities for LSP (hover doc, etc)
88+
1089
## [3.0.13] - 2021-08-24
1190

1291
### Fixed
@@ -446,8 +525,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
446525

447526
- Initial stable release
448527

449-
[unreleased]: https://github.com/NTBBloodbath/doom-nvim/compare/v3.0.13...develop
450-
[3.0.12]: https://github.com/NTBBloodbath/doom-nvim/compare/v3.0.12...v3.0.13
528+
[unreleased]: https://github.com/NTBBloodbath/doom-nvim/compare/v3.1.0...develop
529+
[3.1.0]: https://github.com/NTBBloodbath/doom-nvim/compare/v3.0.13...v3.1.0
530+
[3.0.13]: https://github.com/NTBBloodbath/doom-nvim/compare/v3.0.12...v3.0.13
451531
[3.0.12]: https://github.com/NTBBloodbath/doom-nvim/compare/v3.0.11...v3.0.12
452532
[3.0.11]: https://github.com/NTBBloodbath/doom-nvim/compare/v3.0.10...v3.0.11
453533
[3.0.10]: https://github.com/NTBBloodbath/doom-nvim/compare/v3.0.9...v3.0.10

README.md

Lines changed: 47 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -85,41 +85,77 @@ Its design is guided by these mantras:
8585

8686
### Installation
8787

88-
- Curl 7.x (for using the installation script)
8988
- Git 2.23+
9089

9190
### Runtime
9291

9392
- Neovim 0.5.0 onwards
9493

9594
- GNU `find`
96-
- _Optionals:_
97-
- [ripgrep] 11.0+ or [fd] 7.3.0+ (improves file indexing performance for some commands)
98-
- `nodejs` and `npm` (required to use some Language Server Protocols)
95+
- [ripgrep] 11.0+ or [fd] 7.3.0+ (optional but highly recommended, improves file indexing performance for some commands)
96+
- `nodejs` and `npm` (optional, required to use some Language Server Protocols)
9997

10098
Doom is comprised of [~40 optional plugins][modules], some of which may have
10199
additional dependencies. [Please visit their documentation][modules].
102100

103101
## Install
104102

105-
Simply run the following command:
103+
> **IMPORTANT**: if you don't have a patched nerd font then you will need to
104+
> install one in your system so you will be able to see icons in Neovim.
105+
106+
First you'll want to backup your current Neovim configuration if you have one.
107+
108+
> **NOTES**:
109+
>
110+
> 1. Your current configuration will be backed up to `~/.config/nvim.bak`
111+
> or where your `XDG_CONFIG_HOME` environment variable points to.
112+
>
113+
> 2. If you're a cheovim user you can skip this step and go directly to
114+
> [installing with cheovim](#installing-with-cheovim).
115+
116+
```sh
117+
[ -d ${XDG_CONFIG_HOME:-$HOME/.config}/nvim ] && mv ${XDG_CONFIG_HOME:-$HOME/.config}/nvim ${XDG_CONFIG_HOME:-$HOME/.config}/nvim.bak
118+
```
119+
120+
Now that you have backed up your current Neovim configuration you can proceed to install
121+
`doom-nvim`.
106122

107123
```sh
108-
curl -sLf https://raw.githubusercontent.com/NTBBloodbath/doom-nvim/main/install.sh | bash
124+
git clone --depth 1 https://github.com/NTBBloodbath/doom-nvim.git ${XDG_CONFIG_HOME:-$HOME/.config}/nvim
109125
```
110126

111127
Or if you want to live in the bleeding-edge with the latest features:
112128

113129
```sh
114-
curl -sLf https://raw.githubusercontent.com/NTBBloodbath/doom-nvim/main/install.sh | bash -s -- -d
130+
git clone --depth 1 -b develop https://github.com/NTBBloodbath/doom-nvim.git ${XDG_CONFIG_HOME:-$HOME/.config}/nvim
131+
```
132+
133+
### Installing with cheovim
134+
135+
If you're using cheovim as your Neovim configurations manager you can install `doom-nvim` and then
136+
use the recipe listed in cheovim documentation:
137+
138+
```sh
139+
# Clone doom-nvim under a specific directory under our '~/.config' directory
140+
git clone --depth 1 https://github.com/NTBBloodbath/doom-nvim.git ${XDG_CONFIG_HOME:-$HOME/.config}/doom-nvim
141+
142+
# Change the doom-nvim internal path
143+
sed -i "37s/nvim/doom-nvim/" ${XDG_CONFIG_HOME:-$HOME/.config}/doom-nvim/lua/doom/core/system/init.lua
115144
```
116145

146+
```lua
147+
-- In your '~/.config/nvim/profiles.lua'
148+
doom_nvim = { "~/.config/doom-nvim", {
149+
plugins = "packer",
150+
preconfigure = "doom-nvim"
151+
}
152+
}
153+
```
154+
---
155+
117156
Then [read our Getting Started guide][getting-started] to be walked through
118157
installing, configuring and maintaining Doom Nvim.
119158

120-
> **NOTE**: If you want to see all the available commands in the installation script, then use
121-
> <kbd>bash -s -- -h</kbd> instead of just <kbd>bash</kbd>
122-
123159
## Getting help
124160

125161
Neovim is not very difficult. Although you will occasionally run into problems
@@ -130,6 +166,7 @@ if you are not an advanced vimmer. When you do, here are some places you can loo
130166
its modules.
131167
- [The Plugins Management section][plugins-management] covers how to install
132168
and disable plugins.
169+
- [Our troubleshooting wiki](https://github.com/NTBBloodbath/doom-nvim/wiki/Troubleshooting)
133170
- Search the [Doom Nvim's issue tracker](https://github.com/NTBBloodbath/doom-nvim/issues)
134171
before opening a new issue to see if your issue was already been reported and to
135172
avoid duplicating issues.

autoload/health/doom.vim

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)