Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
pcc committed Nov 8, 2024
1 parent cefeaa0 commit 91800f2
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rc/filetype/c-family.kak
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ declare-option -docstring %{
Can be one of the following:
ifdef: old style ifndef/define guard
pragma: newer type of guard using "pragma once"
} str c_include_guard_style "ifdef"
} str c_include_guard_style "pragma"

define-command -hidden c-family-insert-include-guards %{
evaluate-commands %sh{
Expand Down
3 changes: 3 additions & 0 deletions share/kak/kakrc
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,6 @@ set global indentwidth 2
map global normal * "w _ b *"
map global normal 0 <a-h>
map global normal $ <a-l>

eval %sh{kak-lsp --kakoune -s $kak_session}
lsp-enable
2 changes: 2 additions & 0 deletions src/keys.hh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
#include "unicode.hh"
#include "vector.hh"

#include <stdint.h>

namespace Kakoune
{

Expand Down
5 changes: 3 additions & 2 deletions src/normal.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2303,7 +2303,8 @@ void reformat(Context &context, NormalParams params)
Buffer& buffer = context.buffer();
if (buffer.name().ends_with(".c") || buffer.name().ends_with(".cc") ||
buffer.name().ends_with(".cpp") || buffer.name().ends_with(".h") ||
buffer.name().ends_with(".hpp") || buffer.name().ends_with(".hh"))
buffer.name().ends_with(".hpp") || buffer.name().ends_with(".hh") ||
buffer.name().ends_with(".inc"))
{
clang_format(context, params);
return;
Expand All @@ -2321,7 +2322,7 @@ void reformat(Context &context, NormalParams params)
return select_paragraph(context, sel, 0,
ObjectFlags::ToBegin | ObjectFlags::ToEnd);
});
do_pipe<true>("fmt", context);
do_pipe<true>("fmt -72", context);
}

constexpr size_t keymap_max_size = 512;
Expand Down
1 change: 1 addition & 0 deletions src/ranked_match.hh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

#include "string.hh"
#include "meta.hh"
#include <stdint.h>

namespace Kakoune
{
Expand Down

0 comments on commit 91800f2

Please sign in to comment.