Skip to content

Commit

Permalink
Merge branch 'molleweide' into feat/core-recursive
Browse files Browse the repository at this point in the history
* molleweide: (92 commits)
  markdown_tools add plugin
  refactor(settings): move settings table into root
  chore: format source code
  fix(explorer): avoid startup warning about unknown option
  fix(explorer): load when editing dir
  fix(netrw): do not disable loading netrw when netrw feature is enabled
  fix(git): small fix + formatting
  moonfly theme
  add more modules incluing ruby
  feat(langs,dockerfile): Added Dockerfile language support.
  chore: format source code
  feat(lsp): Enabled ghost_text by default
  chore(docs): Removed references to deprecated `develop` branch.
  chore: format source code
  feat(langs,ocaml): add language (doom-neovim#373)
  chore: format source code
  fix(docker,lsp,core): Dockerfile, lsp warning and preserve_edit_pos (doom-neovim#371)
  fix(linter): Increased formatting timeout.
  fix(lsp): Broken snippet options
  refact(langs): Renamed `snippets` to `extra_snippets`.
  ...
  • Loading branch information
molleweide committed Aug 9, 2022
2 parents 03e9a39 + a6eea44 commit 3791e2f
Show file tree
Hide file tree
Showing 153 changed files with 2,583 additions and 1,856 deletions.
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ tags
# OS files
.DS_Store
# Doom Nvim Contrib files
contribute/doom-nvim-contrib
contribute/local-share-nvim
contribute/workspace
tools/doom-nvim-contrib
tools/local-share-nvim
tools/workspace

# User modules
user/modules/*
Expand Down
29 changes: 28 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,34 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
## [4.0.0]

- `doom_modules.lua` renamed to `modules.lua`
- `doom_config.lua` renamed to `config.lua`
- `doom_userplugins.lua` replaced by the `doom.use_package(...)` helper function.
- refact!: `+lsp` flags for languages are now redundant, all langs have LSP enabled by default.
- refact!: Rewrote doom-nvim internals to simplify code + improve modularity and integrations between modules.
- `modules.lua` now only has two sections: `features` and `langs`
- Modules defined in `lua/doom/modules/SECTION_NAME/MODULE_NAME`
- Each module contains all plugins, config, keybinds, autocommands for a feature or a language.
- Users can override or add new modules by creating a folder in `lua/user/modules/SECTION_NAME/MODULE_NAME` ([implementing custom modules](https://github.com/NTBBloodbath/doom-nvim/docs/modules.md#building-your-own-module)).
- refact!: `config.lua` to define your config programatically / imperatively using new [helper functions](https://github.com/NTBBloodbath/doom-nvim#configuring-and-personalising-configlua).
- feat: Added an install script (clones doom-nvim, checks out a new branch `my-config`).
- feat: Added `repl` module (run code in neovim using [iron.nvim](https://github.com/hkupty/iron.nvim)).
- feat: Added `annotations` module (generate code documentation using [neogen](https://github.com/danymat/neogen)) to replace broken `nvim-tree-docs` plugin.
- feat: Added `projects` module (quickly switch between projects using [project.nvim](https://github.com/ahmedkhalf/project.nvim)).
- feat: Added `lsp_progress` module (shows lsp startup and loading using [fidget.nvim](https://github.com/j-hui/fidget.nvim))
- refact!: `linter` and `formatter` module merged into one (`linter`).
- refact!: `linter` module to use [null-ls.nvim](https://github.com/jose-elias-alvarez/null-ls.nvim).
- refact: Renamed `kommentary` module to `comment` module, switched to [Comment.nvim](https://github.com/numToStr/Comment.nvim) and fixed keybinds.
- feat: Implemented a `nest.nvim` inspired keymap syntax that integrates with `whichkey` and `nvim-mapper`.
- feat: Added optional [impatient.nvim](lewis6991/impatient.nvim) (`doom.impatient_enabled = true` in `config.lua`).
- WARN: This can create bugs when modifying your config and you'll probably have to run `:LuaCacheClear`.
- refact: Removed `develop` branch, doom-nvim will now use rolling releases with tagged stable versions.
- refact: Auto updating logic moved into core module
- Now requires user to use a custom config branch
- Updating will merge the latest tagged stable version with your custom config branch.
- tweak: Various startup time improvements.

## [3.3.0]
- Removed support for Neovim 0.5
Expand Down
120 changes: 80 additions & 40 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
![License](https://img.shields.io/github/license/NTBBloodbath/doom-nvim?style=for-the-badge)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=for-the-badge)](http://makeapullrequest.com)
![Latest Release](https://img.shields.io/github/v/release/NTBBloodbath/doom-nvim?include_prereleases&style=for-the-badge&color=red)
![GitHub last commit (branch)](https://img.shields.io/github/last-commit/NTBBloodbath/doom-nvim/develop?style=for-the-badge)
![Neovim version](https://img.shields.io/badge/Neovim-0.5-57A143?style=for-the-badge&logo=neovim)
![GitHub last commit (branch)](https://img.shields.io/github/last-commit/NTBBloodbath/doom-nvim/main?style=for-the-badge)
![Neovim version](https://img.shields.io/badge/Neovim-0.7-57A143?style=for-the-badge&logo=neovim)
[![Discord](https://img.shields.io/badge/discord-join-7289da?style=for-the-badge&logo=discord)](https://discord.gg/xhvBM45zBf)

<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
Expand All @@ -18,28 +18,10 @@

</div>

---

- [Doom Nvim](#doom-nvim)
* [What is Doom Nvim?](#what-is-doom-nvim-)
* [Install](#install)
* [Configuring](#configuring)
+ [Enabling features: `modules.lua`](#-moduleslua-)
- [What is a module?](#what-is-a-module-)
- [Enabing/disabling modules](#enabing-disabling-modules)
- [All modules](#all-modules)
+ [Configuring and personalising: `config.lua`](#-configlua-)
- [Modifying neovim and doom options](#modifying-neovim-and-doom-options)
* [Adding plugins](#adding-plugins)
* [Adding Keybinds](#adding-keybinds)
* [Adding autocommands](#adding-autocommands)
* [Adding commands](#adding-commands)
- [Overriding module defaults](#overriding-module-defaults)
* [FAQ](#faq)
* [Contributing](#contributing)
* [Contributors](#contributors)

---
> Note: Doom nvim v4.0.0 has just been released (29th July 2022).
> This release introduces many changes so feel free to ask questions on the
> discord or in the github discussions page or create an issue ticket and I'll
> solve it as soon as possible.
## What is Doom Nvim?

Expand All @@ -58,51 +40,97 @@ Some of the defining features that make this project unique are:

## Install

TODO: Add install docs here
### Mac OS / Linux

```bash
bash <(curl -s https://raw.githubusercontent.com/NTBBloodbath/doom-nvim/main/tools/install.sh)
```

### Manual (Mac OS / Linux)

1. Clone doom-nvim to ~/.config/nvim
- `git clone https://github.com/NTBBloodbath/doom-nvim.git ${XDG_CONFIG_HOME:-$HOME/.config}/nvim`
2. (optional) Checkout the latest stable version in a new branch called `my-config` so the auto-updater works.
- `git checkout tags/$(git tag -l --sort -version:refname | head -n 1) -b my-config`
- ℹ️ The auto-updater will be broken without this step but you're free to check updates using the `:DoomCheckUpdates` command and manage updates manually.

---

- [Configuring](#configuring)
- [Enabling features: `modules.lua`](#enabling-features-moduleslua)
- [What is a module?](#what-is-a-module)
- [Enabing/disabling modules](#enabingdisabling-modules)
- [All modules](#all-modules)
- [Configuring and personalising: `config.lua`](#configuring-and-personalising-configlua)
- [Modifying neovim and doom options](#modifying-neovim-and-doom-options)
* [Adding plugins](#adding-plugins)
* [Adding keybinds](#adding-keybinds)
* [Adding autocommands](#adding-autocommands)
* [Adding commands](#adding-commands)
- [Overriding module defaults](#overriding-module-defaults)
- [FAQ](#faq)
- [Contributing](#contributing)
- [Contributors](#contributors)
- [Uninstall](#uninstalling)

---

## Configuring

Doom nvim is configured by enabling modules in the `modules.lua` file and then tweaking, overriding or adding new packages, keybinds and more within the `config.lua` module.
Doom nvim is configured by enabling modules in the `modules.lua` file and then
tweaking, overriding or adding new packages, keybinds and more within the
`config.lua` module.

> We recommend creating a custom config branch (the auto install script will
> do this for you) and committing your changes to this branch. The auto updater
> will merge new releases into your config branch for you.
### Enabling features: `modules.lua`

#### What is a module?
A module is a collection of packages, autocommands, keybinds and functions that add new capabilities or functionality to Doom Nvim.
We organise modules into 3 categories:

A module is a collection of packages, autocommands, keybinds and functions that
add new capabilities or functionality to Doom Nvim. See what's avaliable in
`modules.lua` and enable the modules that you think you would like. Then restart
`doom-nvim`, run `:PackerSync` and then restart `doom-nvim` again.

We organise modules into 2 categories:
- `features` extend the abilities of Doom Nvim by adding new functionality.
- `langs` add support for new languages.
- `user` (**optional**) You can create and enable your own modules without modifying the Doom Nvim source code (read more)[#TODO:].

#### Enabing/disabling modules

You can enable or disable a module by going to `modules.lua` (`<leader>Dm`) and commenting or uncommenting the entry.
You can enable or disable a module by going to `modules.lua` (`<leader>Dm`) and
commenting or uncommenting the entry.

```lua
-- modules.lua

return {
-- `lsp` module is enabled, `telescope is disabled`
features = {
'lsp'
-- 'telescope'
},
-- `lua` language is enabled, `rust is disabled`
langs = {
'lua',
-- 'rust',
}
}
```
> Here the `lsp` module is enabled but the `telescope` module is disabled,
> similarly the `lua` language is enabled but the `rust` language module is disabled.

#### All modules

Doom-nvim currently has 35+ `features` modules and 20+ `langs` modules.
You can find a full list of modules (here)[./docs/modules.md#all-modules]
You can find a full list of modules [here](./docs/modules.md#all-modules)

### Configuring and personalising: `config.lua`

#### Modifying neovim and doom options

Doom nvim provides a number of config options, including wrapping some of vim's own options. See all available config options (in the API Reference)[./docs/api.md].
Doom nvim provides a number of config options, including wrapping some of vim's
own options. See all available config options [in the API Reference](./docs/api.md).

```lua
-- config.lua
Expand All @@ -114,7 +142,8 @@ doom.settings.indent = 2 -- Sets vim.opt.shiftwith, vim.opt.so
vim.opt.colorcolumn = 120 -- Regular vim options can also be set
```

> **NOTE:** If you have the `lua` language and `lsp` module enabled all of these options will be autocompleted.
> **NOTE:** If you have the `lua` language and `lsp` module enabled all of these
> options will be autocompleted.
##### Adding plugins

Expand All @@ -138,7 +167,8 @@ doom.use_package({
##### Adding Keybinds

Additional keybinds can be defined with the `doom.use_keybind()` function.
This is a wrapper around a custom `nest.nvim` implementation and provides the same API. [DOCS](https://github.com/connorgmeehan/nest.nvim/tree/integrations-api#quickstart-guide)
This is a wrapper around a custom `nest.nvim` implementation and provides the
same API. [DOCS](https://github.com/connorgmeehan/nest.nvim/tree/integrations-api#quickstart-guide)

```lua
-- config.lua
Expand All @@ -150,7 +180,8 @@ doom.use_keybind({
})
```

> **NOTE:** By providing the `name` field your custom keybinds will show up in `whichkey` and `mapper` if you have those modules enabled.
> **NOTE:** By providing the `name` field your custom keybinds will show up
> in `whichkey` and `mapper` if you have those modules enabled.
##### Adding autocommands

Expand Down Expand Up @@ -275,15 +306,23 @@ return {
The majors changes between v3 and v4 are the following.

- `doom_config.lua` renamed to `config.lua`
- Adding custom commands, keybinds and autocommands done using new [`doom.use_*`](#-configlua-) helper functions.
- Adding extra plugins done using new [`doom.use_package`](#adding-plugins) helper function.
- Adding custom commands, keybinds and autocommands done using new [`doom.use_*`](#-configlua-)
helper functions.
- Adding extra plugins done using new [`doom.use_package`](#adding-plugins) helper
function.
- `doom_modules.lua` renamed to `modules.lua`
- Many of the modules categories have been combined, there are now only `features` (modifying capabilities of doom-nvim) and `languages` (add support for a language)
- Many of the modules categories have been combined, there are now only `features`
(modifying capabilities of doom-nvim) and `languages` (add support for a language)
- Languages `+lsp`, `+formatting`, etc flags are no longer necessary

> Because of the durastic changes to the way you configure doom-nvim we recommend
> starting a new branch and porting your changes across.
## Uninstalling

To uninstall doom-nvim delete the `.nvim` folder from `$XDG_CONFIG_HOME/nvim` (`rm -r ~/.config/nvim`)
You will also need to delete `packer_compiled.lua` from `$XDG_DATA_HOME/nvim/plugin/packer_compiled` (`rm ~/.local/share/nvim/plugin/packer_compiled.lua`)

## Contributing

For for information please see our [contributing docs](./docs/contributing.md).
Expand Down Expand Up @@ -316,6 +355,7 @@ Special thanks to these amazing people for helping improve doom (see [emoji key]
</tr>
</table>


<!-- markdownlint-restore -->
<!-- prettier-ignore-end -->

36 changes: 25 additions & 11 deletions RNDM.lua
Original file line number Diff line number Diff line change
@@ -1,17 +1,34 @@
--[[
-> TODAY:
1. setup mollewei.de on `heroku`
2. clean up -> pitch-machine.com
https://github.com/soywod/himalaya
you have left politics and you are now outside of the fucking system that keeps you from slapping him into the fucki face like a retarded
little dog that really dosen't make anything into the righteous strong motherfucking bitch as cucksucker and so that is the
thing that we would never want to do you know. but on the otherhand we could also run that into the fucking shit hole that they are
using.
epidemic-sounds/ sonos / spotify /
https://www.youtube.com/results?search_query=paas+comparison
- linode / digital ocean
I need to get a proton email. which is a clean and secure thing that is NOT google
Email turn of -> verisure/facebook/more.???
okay so this is a bit annoying and so that really pisses me off a lot which is a fucking bitch and so that really makes me angry you know.
fuck this fucking shit you know mother fucking bitch ass cuck sucker.
split -> https://www.youtube.com/watch?v=bJl4VSoESpo
allright so this is pretty fucking cool but it still requires something
that is a little bit more secure than somehting else except for the
things that we have gotten out in the reason street which is quite fucking insane.
i don't ufkcing understand how they can do this shit.
logseq vs obsidian | https://github.com/logseq/logseq
todo: neorg -> indentation = 8 (extreme indentations for legebility.)
split -> https://www.youtube.com/watch?v=bJl4VSoESpo
https://github.com/masukomi/scheme-format
- kontakta Kid, Nicky, Marcus, andra musik maenniskor. franska killen vikarie
Expand Down Expand Up @@ -457,16 +474,13 @@ bbb
--
--


-- invisio + lysa

-- merge settings branch into latest next.


-- MODULE STRUCTURE > dynamically collect module category dirs instead of having them hard coded.
--
--
--


--
Expand Down
1 change: 1 addition & 0 deletions after/ftplugin/man.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
set rnu nu
4 changes: 2 additions & 2 deletions config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -834,8 +834,8 @@ doom.use_cmd({

-- vim.opt.guifont = { 'Hack Nerd Font', 'h12' }
-- Editor config
doom.border_style = { "", "", "", "", "", "", "", "" }
doom.impatient_enabled = true
-- doom.border_style = { "", "", "", "", "", "", "", "" }
-- doom.impatient_enabled = true
-- vim.lsp.set_log_level('trace')

vim.diagnostic.config({
Expand Down
Loading

0 comments on commit 3791e2f

Please sign in to comment.