Compare commits
3 Commits
479b68d90c
...
e9a5875888
Author | SHA1 | Date | |
---|---|---|---|
e9a5875888 | |||
c5a622638d | |||
24dffcb1bb |
@ -207,7 +207,7 @@ local handlers = {
|
||||
|
||||
-- Use a loop to conveniently call 'setup' on multiple servers and
|
||||
-- map buffer local keybindings when the language server attaches
|
||||
local servers = { 'pyright', 'bashls', 'yamlls', 'ansiblels', 'gopls', 'solargraph', 'terraformls', 'tflint', 'marksman' }
|
||||
local servers = { 'pyright', 'bashls', 'yamlls', 'ansiblels', 'gopls', 'solargraph', 'terraformls', 'tflint', 'marksman', 'rust_analyzer' }
|
||||
for _, lsp in pairs(servers) do
|
||||
require('lspconfig')[lsp].setup {
|
||||
on_attach = on_attach,
|
||||
@ -340,6 +340,8 @@ require("nvim-tree").setup({
|
||||
require'treesitter-context'.setup{}
|
||||
|
||||
require("nvim-autopairs").setup {}
|
||||
|
||||
require'lspconfig'.rust_analyzer.setup {}
|
||||
EOF
|
||||
|
||||
" Added popout window to see diagnostic
|
||||
|
@ -4,6 +4,7 @@
|
||||
[commit]
|
||||
gpgsign = true
|
||||
verbose = true
|
||||
|
||||
[pull]
|
||||
rebase = false
|
||||
|
||||
@ -18,6 +19,7 @@
|
||||
co = checkout
|
||||
cp = cherry-pick
|
||||
df = !git --no-pager diff
|
||||
br = !git branch | cat
|
||||
dfh = !git --no-pager diff
|
||||
diffh = !git --no-pager diff
|
||||
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an - %ae>%Creset' --abbrev-commit --branches
|
||||
@ -26,10 +28,9 @@
|
||||
squash-all = "!f(){ git reset $(git commit-tree HEAD^{tree} \"$@\");};f"
|
||||
st = status --ignore-submodules=dirty -s
|
||||
untrack-file = !git update-index --assume-unchanged
|
||||
exclude-file = !git update-index --assume-unchanged
|
||||
c = commit --author='Marcin Woźniak <y0rune@aol.com> -s'
|
||||
cw = commit --author='Marcin Woźniak <marcin.wozniak@wundermanthompson.com> -s'
|
||||
pullwork = GIT_SSH_COMMAND='ssh -i ~/.ssh/work/id_rsa' git pull
|
||||
|
||||
|
||||
[url "git@github.com:"]
|
||||
insteadOf = "https://github.com/"
|
||||
|
@ -296,6 +296,7 @@ function install_kubernetes() {
|
||||
function install_rust() {
|
||||
if command_exists rustc; then
|
||||
rustup update
|
||||
rustup component add rust-analyzer
|
||||
else
|
||||
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh
|
||||
fi
|
||||
|
@ -1,2 +1,2 @@
|
||||
#!/bin/bash
|
||||
yt-dlp $1
|
||||
yt-dlp "$@"
|
||||
|
2
.local/bin/yt-video-cut
Executable file
2
.local/bin/yt-video-cut
Executable file
@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
yt-dlp --external-downloader ffmpeg --external-downloader-args "ffmpeg_i:-ss $1 -to $2" "${@:3}"
|
Loading…
Reference in New Issue
Block a user