Compare commits

..

5 Commits

6 changed files with 73 additions and 8 deletions

View 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
View 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

View File

@@ -5,6 +5,12 @@
{ "source": "init.zsh", "dest": ".zshrc" }
]
},
{
"name": "clang-format",
"link-files": [
{ "source": "clang-format", "dest": ".clang-format" }
]
},
{
"name": "nvim",
"link-dirs": [

View File

@@ -2,13 +2,9 @@ return {
'nvim-treesitter/nvim-treesitter',
build = ':TSUpdate',
config = function()
local configs = require('nvim-treesitter.configs')
configs.setup {
ensure_installed = { 'c', 'cpp', 'lua', 'vimdoc', 'luadoc', 'vim', 'markdown' },
sync_install = false,
highlight = { enable = true },
indent = { enable = false }
}
vim.api.nvim_create_autocmd('FileType', {
pattern = { 'c' },
callback = function() vim.treesitter.start() end,
})
end
}

View File

@@ -2,6 +2,7 @@ alias ll="ls -alG"
alias vim=nvim
alias nj=ninja
alias ls="ls --color=auto"
alias ...="cd ../.."
alias ....="cd ../../.."

View File

@@ -1,4 +1,5 @@
zshrc=~/.zshrc
zshenv=~/.zshenv
if [ -z $zshrc ]; then
echo "Err: Cannot find dotfile directory."
exit -1
@@ -48,3 +49,10 @@ source $zsh_dir/commands.zsh
# KEYBIND initialisation
source $zsh_dir/keybind.zsh
# SYSTEM-SPECIFIC initialisation
if [ -z $zshenv ]; then
source $zshenv
fi