framework: nixvim hotkeys, add transmission
This commit is contained in:
parent
31eff1409f
commit
9159862b4c
2 changed files with 16 additions and 4 deletions
|
|
@ -210,6 +210,16 @@ in {
|
|||
action = luaFunc "require('dapui').toggle()";
|
||||
options.desc = "DAP UI Toggle";
|
||||
}
|
||||
{
|
||||
key = "<leader>cd";
|
||||
action = "<CMD>Trouble diagnostics toggle<CR>";
|
||||
options.desc = "toggle lsp diagnostics";
|
||||
}
|
||||
{
|
||||
key = "<leader>cs";
|
||||
action = "<CMD>Trouble symbols toggle<CR>";
|
||||
options.desc = "toggle lsp symbols";
|
||||
}
|
||||
];
|
||||
|
||||
autoCmd = [
|
||||
|
|
@ -241,7 +251,7 @@ in {
|
|||
event = "BufWritePre";
|
||||
pattern = "*.ts";
|
||||
callback = luaFunc ''
|
||||
vim.lsp.buf.format({async = false})
|
||||
vim.lsp.buf.format()
|
||||
'';
|
||||
}
|
||||
];
|
||||
|
|
@ -300,6 +310,8 @@ in {
|
|||
"K" = "hover";
|
||||
"<leader>cr" = "rename";
|
||||
"<F2>" = "rename";
|
||||
"gd" = "definition";
|
||||
"gt" = "type_definition";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue