feat(nvim)!: add mini-nvim

This commit is contained in:
Moritz Böhme 2023-05-28 18:23:25 +02:00
parent a66a17984e
commit 1366bf3e08
No known key found for this signature in database
GPG key ID: 970C6E89EB0547A9
17 changed files with 104 additions and 321 deletions

View file

@ -17,42 +17,25 @@ null_ls.setup({
},
})
-- disable cspell initially
-- disable (c)spell initially
null_ls.disable("cspell")
null_ls.disable("spell")
-- make sources toggle able
require("which-key").register({
n = {
name = "null-ls",
c = {
s = {
function()
null_ls.toggle("spell")
end,
"spell",
},
S = {
function()
null_ls.toggle("cspell")
end,
"cspell",
},
g = {
function()
null_ls.toggle("gitsigns")
end,
"gitsigns",
},
s = {
function()
null_ls.toggle("shellcheck")
end,
"shellcheck",
},
S = {
function()
null_ls.toggle("statix")
end,
"statix",
},
d = {
function()
null_ls.toggle("deadnix")
end,
"deadnix",
},
},
}, { prefix = "<leader>t" })