Compare commits
3 commits
ef3a9dbc2c
...
ff3656deb7
| Author | SHA1 | Date | |
|---|---|---|---|
| ff3656deb7 | |||
| 3d0b34c714 | |||
| 10151c17a8 |
3 changed files with 23 additions and 21 deletions
|
|
@ -7,14 +7,6 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
# Run the formatter on file save.
|
|
||||||
format_on_save = {
|
|
||||||
lspFallback = true;
|
|
||||||
timeoutMs = 500;
|
|
||||||
};
|
|
||||||
# Receive notificaton when a formatter errors.
|
|
||||||
notifyOnError = true;
|
|
||||||
|
|
||||||
# Map of filetype to formatters.
|
# Map of filetype to formatters.
|
||||||
formatters_by_ft = {
|
formatters_by_ft = {
|
||||||
c = ["clang-format"];
|
c = ["clang-format"];
|
||||||
|
|
@ -34,6 +26,25 @@
|
||||||
command = lib.getExe pkgs.stylua;
|
command = lib.getExe pkgs.stylua;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Receive notificaton when a formatter errors.
|
||||||
|
notifyOnError = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Keymaps for conform.nvim
|
||||||
|
keymaps = [
|
||||||
|
{
|
||||||
|
mode = "";
|
||||||
|
key = "<leader>f";
|
||||||
|
action.__raw = ''
|
||||||
|
function()
|
||||||
|
require('conform').format { async = true, lsp_fallback = true }
|
||||||
|
end
|
||||||
|
'';
|
||||||
|
options = {
|
||||||
|
desc = "Format buffer";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -18,10 +18,10 @@
|
||||||
# Configure our telescope keymaps.
|
# Configure our telescope keymaps.
|
||||||
keymaps = {
|
keymaps = {
|
||||||
# File Pickers
|
# File Pickers
|
||||||
"<leader>ff" = {
|
"<leader>sf" = {
|
||||||
action = "find_files";
|
action = "find_files";
|
||||||
options = {
|
options = {
|
||||||
desc = "Find project files";
|
desc = "Search project files";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
"<leader>/" = {
|
"<leader>/" = {
|
||||||
|
|
@ -32,10 +32,10 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
# Vim Pickers
|
# Vim Pickers
|
||||||
"<leader>fb" = {
|
"<leader>sb" = {
|
||||||
action = "buffers";
|
action = "buffers";
|
||||||
options = {
|
options = {
|
||||||
desc = "Find open buffers";
|
desc = "Search open buffers";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
"<leader>:" = {
|
"<leader>:" = {
|
||||||
|
|
|
||||||
|
|
@ -5,15 +5,6 @@
|
||||||
|
|
||||||
# Prefixes, No operation.
|
# Prefixes, No operation.
|
||||||
keymaps = [
|
keymaps = [
|
||||||
{
|
|
||||||
mode = "n";
|
|
||||||
key = "<leader>f";
|
|
||||||
action = "<Nop>";
|
|
||||||
options = {
|
|
||||||
desc = "+find/files";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
{
|
{
|
||||||
mode = "n";
|
mode = "n";
|
||||||
key = "<leader>s";
|
key = "<leader>s";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue