profile: change recommended keymap for diagnostic float and list

This commit is contained in:
Dmitriy Pleshevskiy 2024-08-10 14:36:49 +03:00
parent dd5d3cb614
commit abe4a27f8f
Signed by: pleshevskiy
GPG key ID: 17041163DA10A9A2

View file

@ -113,10 +113,10 @@ in
];
vim.keymap.set = lib.optionals config.plugins.language-server.lspconfig.enable [
{ mode = "n"; lhs = "${Space}e"; rhs = raw "vim.diagnostic.open_float"; }
{ mode = "n"; lhs = localLeader "df"; rhs = raw "vim.diagnostic.open_float"; }
{ mode = "n"; lhs = "[d"; rhs = raw "vim.diagnostic.goto_prev"; }
{ mode = "n"; lhs = "]d"; rhs = raw "vim.diagnostic.goto_next"; }
{ mode = "n"; lhs = "${Space}q"; rhs = raw "vim.diagnostic.setloclist"; }
{ mode = "n"; lhs = localLeader "dl"; rhs = raw "vim.diagnostic.setloclist"; }
] ++ lib.optionals config.plugins.navigation.telescope.enable (
[
{ mode = "n"; lhs = leader "ff"; rhs = cmd "Telescope find_files"; }