feat: Adding a custom zsh function for running rsync "moves"
Adding the capabilities and on_attach to all current LSP options in Nvim.
This commit is contained in:
parent
246ba3d490
commit
3cb82e1982
@ -61,12 +61,16 @@ return {
|
||||
-- vim.lsp.set_log_level("debug")
|
||||
|
||||
vim.lsp.config('gdscript', {
|
||||
capabilities = capabilities,
|
||||
on_attach = on_attach,
|
||||
flags = {
|
||||
debounce_text_changes = 100,
|
||||
}
|
||||
})
|
||||
|
||||
vim.lsp.config('lua_ls', {
|
||||
capabilities = capabilities,
|
||||
on_attach = on_attach,
|
||||
settings = {
|
||||
Lua = {
|
||||
diagnostics = {
|
||||
@ -79,6 +83,8 @@ return {
|
||||
})
|
||||
|
||||
vim.lsp.config('pylsp', {
|
||||
capabilities = capabilities,
|
||||
on_attach = on_attach,
|
||||
settings = {
|
||||
pylsp = {
|
||||
plugins = {
|
||||
@ -101,6 +107,8 @@ return {
|
||||
})
|
||||
|
||||
vim.lsp.config("rust_analyzer", {
|
||||
capabilities = capabilities,
|
||||
on_attach = on_attach,
|
||||
settings = {
|
||||
['rust_analyzer'] = {
|
||||
check = {
|
||||
|
||||
7
zshrc
7
zshrc
@ -104,6 +104,13 @@ for file in $include_files; do
|
||||
source $file
|
||||
done
|
||||
|
||||
# Custom rsync move function that also removes empty directories that have their contents removed
|
||||
# NOTE: This will delete *any* empty directories in the CWD
|
||||
rmv() {
|
||||
rsync -avzhP --remove-source-files --ignore-existing "${@:1:$#-1}" "${@:$#}" && \
|
||||
find ./* -depth -type d -empty -exec rmdir "{}" \;
|
||||
}
|
||||
|
||||
# NVM required config
|
||||
export NVM_DIR="$HOME/.nvm"
|
||||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user