mirror of
https://github.com/fredrikr79/nixos.git
synced 2025-12-24 01:50:20 +01:00
neovim formatting and header switching keys
This commit is contained in:
31
home.nix
31
home.nix
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user