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.set_log_level("debug")
|
||||||
|
|
||||||
vim.lsp.config('gdscript', {
|
vim.lsp.config('gdscript', {
|
||||||
|
capabilities = capabilities,
|
||||||
|
on_attach = on_attach,
|
||||||
flags = {
|
flags = {
|
||||||
debounce_text_changes = 100,
|
debounce_text_changes = 100,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
vim.lsp.config('lua_ls', {
|
vim.lsp.config('lua_ls', {
|
||||||
|
capabilities = capabilities,
|
||||||
|
on_attach = on_attach,
|
||||||
settings = {
|
settings = {
|
||||||
Lua = {
|
Lua = {
|
||||||
diagnostics = {
|
diagnostics = {
|
||||||
@ -79,6 +83,8 @@ return {
|
|||||||
})
|
})
|
||||||
|
|
||||||
vim.lsp.config('pylsp', {
|
vim.lsp.config('pylsp', {
|
||||||
|
capabilities = capabilities,
|
||||||
|
on_attach = on_attach,
|
||||||
settings = {
|
settings = {
|
||||||
pylsp = {
|
pylsp = {
|
||||||
plugins = {
|
plugins = {
|
||||||
@ -101,6 +107,8 @@ return {
|
|||||||
})
|
})
|
||||||
|
|
||||||
vim.lsp.config("rust_analyzer", {
|
vim.lsp.config("rust_analyzer", {
|
||||||
|
capabilities = capabilities,
|
||||||
|
on_attach = on_attach,
|
||||||
settings = {
|
settings = {
|
||||||
['rust_analyzer'] = {
|
['rust_analyzer'] = {
|
||||||
check = {
|
check = {
|
||||||
|
|||||||
7
zshrc
7
zshrc
@ -104,6 +104,13 @@ for file in $include_files; do
|
|||||||
source $file
|
source $file
|
||||||
done
|
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
|
# NVM required config
|
||||||
export NVM_DIR="$HOME/.nvm"
|
export NVM_DIR="$HOME/.nvm"
|
||||||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
|
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user