fix: remove redundant formatters_by_ft, fix notifications keymap
This commit is contained in:
parent
fd25eb8f8b
commit
f58d0b9e8c
2 changed files with 4 additions and 12 deletions
|
|
@ -1,17 +1,9 @@
|
||||||
{...}: {
|
{...}: {
|
||||||
vim.formatter.conform-nvim = {
|
vim.formatter.conform-nvim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
setupOpts = {
|
setupOpts.format_on_save = {
|
||||||
formatters_by_ft = {
|
|
||||||
lua = ["stylua"];
|
|
||||||
rust = ["rustfmt"];
|
|
||||||
nix = ["alejandra"];
|
|
||||||
python = ["black"];
|
|
||||||
};
|
|
||||||
format_on_save = {
|
|
||||||
timeout_ms = 2000;
|
timeout_ms = 2000;
|
||||||
lsp_format = "fallback";
|
lsp_format = "fallback";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@
|
||||||
{key = "<leader>fb"; mode = ["n"]; action = "<cmd>FzfLua buffers<cr>"; desc = "Buffer List";}
|
{key = "<leader>fb"; mode = ["n"]; action = "<cmd>FzfLua buffers<cr>"; desc = "Buffer List";}
|
||||||
{key = "<leader>fh"; mode = ["n"]; action = "<cmd>FzfLua help_tags<cr>"; desc = "Help Tags";}
|
{key = "<leader>fh"; mode = ["n"]; action = "<cmd>FzfLua help_tags<cr>"; desc = "Help Tags";}
|
||||||
{key = "<leader>fo"; mode = ["n"]; action = "<cmd>FzfLua oldfiles<cr>"; desc = "Recent Files";}
|
{key = "<leader>fo"; mode = ["n"]; action = "<cmd>FzfLua oldfiles<cr>"; desc = "Recent Files";}
|
||||||
{key = "<leader>fn"; mode = ["n"]; action = "<cmd>FzfLua notify<cr>"; desc = "Notifications";}
|
{key = "<leader>fn"; mode = ["n"]; action = "<cmd>Noice<cr>"; desc = "Notifications";}
|
||||||
|
|
||||||
# Nvim-tree
|
# Nvim-tree
|
||||||
{key = "<leader><leader>"; mode = ["n"]; action = "<cmd>NvimTreeToggle<CR>"; desc = "File Tree";}
|
{key = "<leader><leader>"; mode = ["n"]; action = "<cmd>NvimTreeToggle<CR>"; desc = "File Tree";}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue