repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

remove `prose`

69c171d3fbcf503716b5ee955d9e2be2f8a00017

Oliver Krylow <o.krylow@isp-insoft.de> ·

unsigned

Browse filesCompare with HEAD

Changed files (2)

TODO.md

Modified
27 27 - eva: calculator
28 28 - bandwhich: show network traffic information
29 29 - so: search Stack Exchange
30 -- prose: simple text (markdown, emails, paragraphs) formatter
31 30 - linky: check markdown for broken links
32 31 - comrak: render markdown to html
43 42 - [ ] Sudo/Doas
44 43 - [ ] LSP diagnostics only on BufWrite
45 44 - [ ] easier too read colors for lsp hovers
45 +- [ ] crack nvim auto completion. how to configure it to my tastes?
46 +- [ ] port keymaps in nvim config to cartographer
47 +- [ ] test luadoc style docs. will it be rendered nicely in hovers?
47 49 ## Done

neovim/lua/lsp.lua

Modified
152 152 -- Null-ls
153 153 local nls = require("null-ls")
154 - local helpers = require("null-ls.helpers")
155 - local methods = require("null-ls.methods")
156 - local prose_format = helpers.make_builtin({
157 - method = methods.internal.FORMATTING,
158 - filetypes = { "markdown" },
159 - generator_opts = {
160 - command = "prose",
161 - --FIXME this should be a higher order function, because the tab width needs to be lazily fetched at callsite and for the buffer instead of the global value.
162 - args = { "-f", "-w", "80", "-m", "-t", vim.o.tabstop },
163 - to_stdin = true,
164 - },
165 - factory = helpers.formatter_factory,
166 - })
167 155 nls.setup({
168 156 debug = false,
169 157 -- Format: [CODE] MESSAGE (SOURCE)
170 158 diagnostics_format = "[#{c}] #{m} (#{s})",
171 159 sources = {
172 160 nls.builtins.formatting.stylua,
173 - prose_format,
174 161 -- this is a nice linter, but wihtout configuration, it spews too much nonsense.
175 162 -- one can define the stdlib for vim in a config file, but the builtin selene does not find the config file.
176 163 -- this is a general issue with formatters/linters integrated into neovim.