refactor(plugins/astrocore): move some settings out of plugin
This commit is contained in:
parent
2b6a512de0
commit
1677fceed9
15 changed files with 720 additions and 778 deletions
44
config/keymaps/diagnostics.nix
Normal file
44
config/keymaps/diagnostics.nix
Normal 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
|
||||
'';
|
||||
}
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue