mirror of
https://github.com/tiyn/dotfiles.git
synced 2026-03-09 18:54:47 +01:00
Compare commits
7 Commits
7665b17e28
...
270b104be5
| Author | SHA1 | Date | |
|---|---|---|---|
| 270b104be5 | |||
| f52cd361d4 | |||
| 377d0db8d8 | |||
| dd90bae2b0 | |||
| 0103b382ad | |||
| 4e8a537c32 | |||
| 8c6178418b |
24
.config/latexindent/latexindent.yaml
Normal file
24
.config/latexindent/latexindent.yaml
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
defaultIndent: ' '
|
||||||
|
indentAfterItems:
|
||||||
|
itemize: 1
|
||||||
|
itemize*: 1
|
||||||
|
enumerate: 1
|
||||||
|
enumerate*: 1
|
||||||
|
indentRules:
|
||||||
|
item: 1
|
||||||
|
noAdditionalIndentGlobal:
|
||||||
|
item: 1
|
||||||
|
indentAfterHeadings:
|
||||||
|
textit:
|
||||||
|
indentAfterThisHeading: 1
|
||||||
|
level: 1
|
||||||
|
footnote:
|
||||||
|
indentAfterThisHeading: 1
|
||||||
|
level: 1
|
||||||
|
noAdditionalIndent:
|
||||||
|
textit: 1
|
||||||
|
footnote: 1
|
||||||
|
removeTrailingWhitespace:
|
||||||
|
beforeProcessing: 0
|
||||||
|
afterProcessing: 1
|
||||||
|
indentPreamble: 1
|
||||||
@@ -5,6 +5,7 @@ Crowd-Interaction
|
|||||||
Destruction
|
Destruction
|
||||||
Dictation
|
Dictation
|
||||||
Entlebucher Sennenhund
|
Entlebucher Sennenhund
|
||||||
|
Formatter
|
||||||
Französischvokabeln
|
Französischvokabeln
|
||||||
Gym
|
Gym
|
||||||
Homeserver
|
Homeserver
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ Eyal
|
|||||||
Forest
|
Forest
|
||||||
Frevert
|
Frevert
|
||||||
Freverts
|
Freverts
|
||||||
|
GrapheneOS
|
||||||
Greater
|
Greater
|
||||||
Grixis
|
Grixis
|
||||||
Gump
|
Gump
|
||||||
@@ -38,6 +39,7 @@ Higgers
|
|||||||
IFAM
|
IFAM
|
||||||
IFAMs
|
IFAMs
|
||||||
IMRaD
|
IMRaD
|
||||||
|
Ikigai
|
||||||
Ira
|
Ira
|
||||||
Jeanine
|
Jeanine
|
||||||
Kratom
|
Kratom
|
||||||
@@ -54,10 +56,12 @@ Matvey
|
|||||||
MiiMii
|
MiiMii
|
||||||
Mint
|
Mint
|
||||||
Nate
|
Nate
|
||||||
|
NeoVIM
|
||||||
Númenor
|
Númenor
|
||||||
Oberweseler
|
Oberweseler
|
||||||
Overwatch
|
Overwatch
|
||||||
Papis
|
Papis
|
||||||
|
PfingstAka
|
||||||
Pluribus
|
Pluribus
|
||||||
PopOS
|
PopOS
|
||||||
Precon
|
Precon
|
||||||
@@ -73,6 +77,7 @@ Stina
|
|||||||
TCAV
|
TCAV
|
||||||
Thinkpad
|
Thinkpad
|
||||||
Tjark
|
Tjark
|
||||||
|
VIM
|
||||||
Weizman
|
Weizman
|
||||||
Willenborg
|
Willenborg
|
||||||
WinterAka
|
WinterAka
|
||||||
|
|||||||
@@ -8,24 +8,13 @@ return {
|
|||||||
lua = { "stylua" },
|
lua = { "stylua" },
|
||||||
markdown = { "mdformat" },
|
markdown = { "mdformat" },
|
||||||
python = { "isort", "yapf" },
|
python = { "isort", "yapf" },
|
||||||
sh = { "beautysh" },
|
sh = { "shfmt" },
|
||||||
shell = { "beautysh" },
|
bash = { "shfmt" },
|
||||||
|
zsh = { "shfmt" },
|
||||||
tex = { "latexindent" },
|
tex = { "latexindent" },
|
||||||
yaml = { "yamlfmt" },
|
yaml = { "yamlfmt" },
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
require("conform").formatters.latexindent = {
|
|
||||||
args = require("conform.util").extend_args(
|
|
||||||
require("conform.formatters.latexindent").args,
|
|
||||||
{ "-y=defaultIndent: ' '" }
|
|
||||||
),
|
|
||||||
}
|
|
||||||
require("conform").formatters.beautysh = {
|
|
||||||
args = require("conform.util").extend_args(
|
|
||||||
require("conform.formatters.beautysh").args,
|
|
||||||
{ "--indent-size=2", "--force-function-style=fnpar" }
|
|
||||||
),
|
|
||||||
}
|
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,15 +1,15 @@
|
|||||||
return {
|
return {
|
||||||
-- lang server installations
|
-- lang server installations
|
||||||
{
|
{
|
||||||
'williamboman/mason.nvim',
|
"williamboman/mason.nvim",
|
||||||
dependencies = {
|
dependencies = {
|
||||||
{
|
{
|
||||||
'nvimtools/none-ls.nvim',
|
"nvimtools/none-ls.nvim",
|
||||||
config = function()
|
config = function()
|
||||||
require("null-ls").setup({
|
require("null-ls").setup({
|
||||||
sources = {
|
sources = {
|
||||||
-- latex
|
-- assembler
|
||||||
-- require("null-ls").builtins.formatting.latexindent,
|
require("null-ls").builtins.formatting.asmfmt,
|
||||||
-- lua
|
-- lua
|
||||||
require("null-ls").builtins.formatting.stylua,
|
require("null-ls").builtins.formatting.stylua,
|
||||||
-- markdown
|
-- markdown
|
||||||
@@ -18,20 +18,20 @@ return {
|
|||||||
require("null-ls").builtins.formatting.isort,
|
require("null-ls").builtins.formatting.isort,
|
||||||
require("null-ls").builtins.formatting.yapf,
|
require("null-ls").builtins.formatting.yapf,
|
||||||
-- shell
|
-- shell
|
||||||
-- require("null-ls").builtins.formatting.beautysh,
|
require("null-ls").builtins.formatting.shfmt,
|
||||||
-- yaml
|
-- yaml
|
||||||
require("null-ls").builtins.formatting.yamlfmt,
|
require("null-ls").builtins.formatting.yamlfmt,
|
||||||
}
|
},
|
||||||
})
|
})
|
||||||
end
|
end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'jay-babu/mason-null-ls.nvim',
|
"jay-babu/mason-null-ls.nvim",
|
||||||
opts = {
|
opts = {
|
||||||
automatic_installation = true,
|
automatic_installation = true,
|
||||||
ensure_installed = {
|
ensure_installed = {
|
||||||
-- latex
|
-- assembler
|
||||||
"latexindent",
|
"asmfmt",
|
||||||
-- lua
|
-- lua
|
||||||
"stylua",
|
"stylua",
|
||||||
-- markdown
|
-- markdown
|
||||||
@@ -40,13 +40,13 @@ return {
|
|||||||
"isort",
|
"isort",
|
||||||
"yapf",
|
"yapf",
|
||||||
-- shell
|
-- shell
|
||||||
"beautysh",
|
"shfmt",
|
||||||
-- yaml
|
-- yaml
|
||||||
"yamlfmt",
|
"yamlfmt",
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
opts = { ui = { icons = Install_signs } }
|
opts = { ui = { icons = Install_signs } },
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,22 +24,40 @@ return {
|
|||||||
require("mason-lspconfig").setup({
|
require("mason-lspconfig").setup({
|
||||||
automatic_setup = true,
|
automatic_setup = true,
|
||||||
ensure_installed = {
|
ensure_installed = {
|
||||||
"bashls",
|
-- assembler
|
||||||
|
"asm_lsp",
|
||||||
|
-- c
|
||||||
"clangd",
|
"clangd",
|
||||||
|
-- docker
|
||||||
"dockerls",
|
"dockerls",
|
||||||
|
-- go
|
||||||
"gopls",
|
"gopls",
|
||||||
|
-- html
|
||||||
"html",
|
"html",
|
||||||
|
-- json
|
||||||
"jsonls",
|
"jsonls",
|
||||||
|
-- xml
|
||||||
"lemminx",
|
"lemminx",
|
||||||
|
-- latex
|
||||||
"ltex",
|
"ltex",
|
||||||
"lua_ls",
|
|
||||||
"marksman",
|
|
||||||
"nimls",
|
|
||||||
"pyright",
|
|
||||||
"r_language_server",
|
|
||||||
"sqlls",
|
|
||||||
"texlab",
|
"texlab",
|
||||||
-- "tsserver",
|
-- lua
|
||||||
|
"lua_ls",
|
||||||
|
-- markdown
|
||||||
|
"marksman",
|
||||||
|
-- nim
|
||||||
|
"nimls",
|
||||||
|
-- python
|
||||||
|
"pyright",
|
||||||
|
-- r
|
||||||
|
"r_language_server",
|
||||||
|
-- shell
|
||||||
|
"bashls",
|
||||||
|
-- sql
|
||||||
|
"sqlls",
|
||||||
|
-- typescript / javascript
|
||||||
|
"ts_ls",
|
||||||
|
-- yaml
|
||||||
"yamlls",
|
"yamlls",
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|||||||
2
.indentconfig.yaml
Normal file
2
.indentconfig.yaml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
paths:
|
||||||
|
- /home/user/.config/latexindent/latexindent.yaml
|
||||||
@@ -26,27 +26,30 @@ textype() { \
|
|||||||
}
|
}
|
||||||
|
|
||||||
case "$file" in
|
case "$file" in
|
||||||
*\.vpr) $vipercmd "$file" ;;
|
|
||||||
*\.ms) refer -PS -e "$file" | groff -me -ms -kept -T pdf > "$base".pdf ;;
|
|
||||||
*\.mom) refer -PS -e "$file" | groff -mom -kept -T pdf > "$base".pdf ;;
|
|
||||||
*\.[0-9]) refer -PS -e "$file" | groff -mandoc -T pdf > "$base".pdf ;;
|
*\.[0-9]) refer -PS -e "$file" | groff -mandoc -T pdf > "$base".pdf ;;
|
||||||
*\.rmd) echo "require(rmarkdown); render('$file')" | R -q --vanilla ;;
|
*\.bash) bash "$file" ;;
|
||||||
*\.m) octave -qW "$file" ;;
|
|
||||||
*\.md) pandoc "$file" --pdf-engine=xelatex -o "$base".pdf ;;
|
|
||||||
*config.h) sudo make install ;;
|
|
||||||
*\.tex) textype "$file" ;;
|
|
||||||
*\.java) java "$file" ;;
|
|
||||||
*\.js) node "$file" ;;
|
|
||||||
*\.c) if [ -f Makefile ]; then make run; else cc "$file" -o "$base" && "$base"; fi ;;
|
|
||||||
*\.nim) nim c -r -d:noColors "$file" ;;
|
|
||||||
*\.py) python3 "$file" ;;
|
|
||||||
*\.go) go run "$file" ;;
|
*\.go) go run "$file" ;;
|
||||||
*\.lua) lua "$file" ;;
|
*\.lua) lua "$file" ;;
|
||||||
|
*\.md) pandoc "$file" --pdf-engine=xelatex -o "$base".pdf ;;
|
||||||
|
*\.mom) refer -PS -e "$file" | groff -mom -kept -T pdf > "$base".pdf ;;
|
||||||
|
*\.ms) refer -PS -e "$file" | groff -me -ms -kept -T pdf > "$base".pdf ;;
|
||||||
|
*\.py) python3 "$file" ;;
|
||||||
|
*\.rmd) echo "require(rmarkdown); render('$file')" | R -q --vanilla ;;
|
||||||
*\.sent) setsid sent "$file" 2>/dev/null & ;;
|
*\.sent) setsid sent "$file" 2>/dev/null & ;;
|
||||||
|
*config.h) sudo make install ;;
|
||||||
|
*\.c) if [ -f Makefile ]; then make run; else cc "$file" -o "$base" && "$base"; fi ;;
|
||||||
|
*\.java) java "$file" ;;
|
||||||
|
*\.js) node "$file" ;;
|
||||||
|
*\.m) octave -qW "$file" ;;
|
||||||
|
*\.nim) nim c -r -d:noColors "$file" ;;
|
||||||
*\.r|*\.R) Rscript "$file" ;;
|
*\.r|*\.R) Rscript "$file" ;;
|
||||||
*\.smt2) z3 "$file" ;;
|
|
||||||
*\.rs) (cd "$dir" && cargo locate-project >/dev/null 2>&1) \
|
*\.rs) (cd "$dir" && cargo locate-project >/dev/null 2>&1) \
|
||||||
&& (cd "$(dirname "$(cd "$dir" && cargo locate-project --message-format plain)")" && cargo run) \
|
&& (cd "$(dirname "$(cd "$dir" && cargo locate-project --message-format plain)")" && cargo run) \
|
||||||
|| (rustc "$file" && "./$(basename "${file%.rs}")") ;;
|
|| (rustc "$file" && "./$(basename "${file%.rs}")") ;;
|
||||||
|
*\.sh) dash "$file" ;;
|
||||||
|
*\.smt2) z3 "$file" ;;
|
||||||
|
*\.tex) textype "$file" ;;
|
||||||
|
*\.vpr) $vipercmd "$file" ;;
|
||||||
|
*\.zsh) zsh "$file" ;;
|
||||||
*) sed 1q "$file" | grep "^#!/" | sed "s/^#!//" | xargs -r -I % "$file" ;;
|
*) sed 1q "$file" | grep "^#!/" | sed "s/^#!//" | xargs -r -I % "$file" ;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
Reference in New Issue
Block a user