Compare commits
5 Commits
5f3a44163e
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 59562cb4a9 | |||
| 1ba886e9c9 | |||
| 3c2e72a8be | |||
| 44cacf67be | |||
| fb123ea928 |
5
REMEMBER_TO_GET_SUBMODULES
Normal file
5
REMEMBER_TO_GET_SUBMODULES
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
This repository has sub-modules! Be sure to get them with
|
||||||
|
|
||||||
|
git submodule update --init --recursive
|
||||||
|
|
||||||
|
otherwise things will break!
|
||||||
49
clang-format/clang-format
Normal file
49
clang-format/clang-format
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
BasedOnStyle: WebKit
|
||||||
|
IndentWidth: 8
|
||||||
|
---
|
||||||
|
Language: Cpp
|
||||||
|
DerivePointerAlignment: false
|
||||||
|
PointerAlignment: Right
|
||||||
|
ColumnLimit: 80
|
||||||
|
AlignAfterOpenBracket: AlwaysBreak
|
||||||
|
AlignConsecutiveAssignments: None
|
||||||
|
AlignConsecutiveBitFields: None
|
||||||
|
AlignConsecutiveDeclarations: None
|
||||||
|
AlignConsecutiveMacros: AcrossEmptyLinesAndComments
|
||||||
|
AlignEscapedNewlines: Right
|
||||||
|
AlignOperands: AlignAfterOperator
|
||||||
|
AlignTrailingComments: true
|
||||||
|
AllowAllArgumentsOnNextLine: false
|
||||||
|
AllowAllConstructorInitializersOnNextLine: false
|
||||||
|
AllowAllParametersOfDeclarationOnNextLine: false
|
||||||
|
AllowShortBlocksOnASingleLine: Empty
|
||||||
|
AllowShortCaseLabelsOnASingleLine: false
|
||||||
|
AllowShortEnumsOnASingleLine: false
|
||||||
|
AllowShortFunctionsOnASingleLine: false
|
||||||
|
AllowShortIfStatementsOnASingleLine: false
|
||||||
|
AllowShortLambdasOnASingleLine: false
|
||||||
|
AllowShortLoopsOnASingleLine: false
|
||||||
|
AlwaysBreakAfterReturnType: None
|
||||||
|
AlwaysBreakBeforeMultilineStrings: true
|
||||||
|
AlwaysBreakTemplateDeclarations: Yes
|
||||||
|
BinPackArguments: false
|
||||||
|
BinPackParameters: false
|
||||||
|
ExperimentalAutoDetectBinPacking: false
|
||||||
|
BitFieldColonSpacing: Both
|
||||||
|
BreakBeforeBraces: Linux
|
||||||
|
BreakBeforeBinaryOperators: All
|
||||||
|
BreakBeforeTernaryOperators: true
|
||||||
|
BreakConstructorInitializers: BeforeComma
|
||||||
|
BreakInheritanceList: BeforeComma
|
||||||
|
BreakStringLiterals: true
|
||||||
|
ContinuationIndentWidth: 8
|
||||||
|
Cpp11BracedListStyle: true
|
||||||
|
IncludeBlocks: Regroup
|
||||||
|
SortIncludes: true
|
||||||
|
IndentRequires: true
|
||||||
|
NamespaceIndentation: Inner
|
||||||
|
ReflowComments: true
|
||||||
|
SpacesBeforeTrailingComments: 3
|
||||||
|
TabWidth: 8
|
||||||
|
UseTab: AlignWithSpaces
|
||||||
|
PenaltyReturnTypeOnItsOwnLine: 1000
|
||||||
@@ -5,6 +5,12 @@
|
|||||||
{ "source": "init.zsh", "dest": ".zshrc" }
|
{ "source": "init.zsh", "dest": ".zshrc" }
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "clang-format",
|
||||||
|
"link-files": [
|
||||||
|
{ "source": "clang-format", "dest": ".clang-format" }
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "nvim",
|
"name": "nvim",
|
||||||
"link-dirs": [
|
"link-dirs": [
|
||||||
|
|||||||
@@ -2,13 +2,9 @@ return {
|
|||||||
'nvim-treesitter/nvim-treesitter',
|
'nvim-treesitter/nvim-treesitter',
|
||||||
build = ':TSUpdate',
|
build = ':TSUpdate',
|
||||||
config = function()
|
config = function()
|
||||||
local configs = require('nvim-treesitter.configs')
|
vim.api.nvim_create_autocmd('FileType', {
|
||||||
|
pattern = { 'c' },
|
||||||
configs.setup {
|
callback = function() vim.treesitter.start() end,
|
||||||
ensure_installed = { 'c', 'cpp', 'lua', 'vimdoc', 'luadoc', 'vim', 'markdown' },
|
})
|
||||||
sync_install = false,
|
|
||||||
highlight = { enable = true },
|
|
||||||
indent = { enable = false }
|
|
||||||
}
|
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ alias ll="ls -alG"
|
|||||||
|
|
||||||
alias vim=nvim
|
alias vim=nvim
|
||||||
alias nj=ninja
|
alias nj=ninja
|
||||||
|
alias ls="ls --color=auto"
|
||||||
|
|
||||||
alias ...="cd ../.."
|
alias ...="cd ../.."
|
||||||
alias ....="cd ../../.."
|
alias ....="cd ../../.."
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
zshrc=~/.zshrc
|
zshrc=~/.zshrc
|
||||||
|
zshenv=~/.zshenv
|
||||||
if [ -z $zshrc ]; then
|
if [ -z $zshrc ]; then
|
||||||
echo "Err: Cannot find dotfile directory."
|
echo "Err: Cannot find dotfile directory."
|
||||||
exit -1
|
exit -1
|
||||||
@@ -48,3 +49,10 @@ source $zsh_dir/commands.zsh
|
|||||||
# KEYBIND initialisation
|
# KEYBIND initialisation
|
||||||
|
|
||||||
source $zsh_dir/keybind.zsh
|
source $zsh_dir/keybind.zsh
|
||||||
|
|
||||||
|
|
||||||
|
# SYSTEM-SPECIFIC initialisation
|
||||||
|
|
||||||
|
if [ -z $zshenv ]; then
|
||||||
|
source $zshenv
|
||||||
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user