refactor(plugins/astrocore): move some settings out of plugin

This commit is contained in:
Nicolas Goudry 2024-06-07 22:51:48 +02:00
parent 2b6a512de0
commit 1677fceed9
No known key found for this signature in database
GPG key ID: 5FC434D9FFD1DF44
15 changed files with 720 additions and 778 deletions

View file

@ -0,0 +1,44 @@
# Diagnostics
# https://github.com/AstroNvim/AstroNvim/blob/v4.7.7/lua/astronvim/plugins/_astrocore_mappings.lua#L92-L100
[
{
key = "<Leader>ld";
options.desc = "Hover diagnostics";
action.__raw = ''
function()
vim.diagnostic.open_float()
end
'';
}
{
key = "[d";
options.desc = "Previous diagnostic";
action.__raw = ''
function()
vim.diagnostic.goto_prev()
end
'';
}
{
key = "]d";
options.desc = "Next diagnostic";
action.__raw = ''
function()
vim.diagnostic.goto_next()
end
'';
}
{
key = "gl";
options.desc = "Hover diagnostics";
action.__raw = ''
function()
vim.diagnostic.open_float()
end
'';
}
]