neovim formatting and header switching keys

This commit is contained in:
2025-01-31 15:43:57 +01:00
parent d1803fe3ae
commit ee47fa7989

View File

@@ -190,6 +190,36 @@ in
action = ":UndotreeToggle<cr>";
mode = [ "n" ];
}
{
key = "<leader>cs";
action = ":ClangdSwitchSourceHeader<cr>";
mode = [ "n" ];
}
{
key = "<leader>cff";
action = ":Format<cr>";
mode = [ "n" ];
}
{
key = "<leader>cfd";
action = ":FormatDisable<cr>";
mode = [ "n" ];
}
{
key = "<leader>cfe";
action = ":FormatEnable<cr>";
mode = [ "n" ];
}
{
key = "<leader>cft";
action = ":FormatToggle<cr>";
mode = [ "n" ];
}
];
colorschemes.dracula = {
@@ -343,6 +373,7 @@ in
cmp_luasnip = {enable = true;}; # snippets
cmp-cmdline = {enable = true;}; # autocomplete for cmdline
lsp-format.enable = true;
lsp = {
enable = true;