Sender | Message | Time |
---|---|---|
29 Jun 2023 | ||
Hannes | * And if you do find a function that is only defined using a symbol then you can create an alias for it, I think the syntax would be something like this: const better_name = AnnoyingPackage.(:§) | 09:51:56 |
qwjyh | In reply to @headphonejack:matrix.orgI use neovim with hrsh7th/nvim-cmp and kdheepak/cmp-latex-symbols. julia-vim conflicts with other plugins in my environment :( | 11:56:11 |
qwjyh | Download image.png | 11:57:50 |
qwjyh | This article is helpful. https://dev.to/uncomfyhalomacro/the-must-have-neovim-plugins-for-julia-3j3m | 12:03:53 |
headphonejack | Oh thanks! Great stuff! | 17:33:23 |
headphonejack | In reply to @hasnep:matrix.orgIs there a way to list all aliases and their related commands? Background: The Julia documentation for example uses for integer division the special character, which I cannot enter (yet). So I need to know the command, which get called. But it is only an example ... I need a complete list... | 18:17:54 |
headphonejack left the room. | 18:33:01 | |
30 Jun 2023 | ||
Hannes | In reply to @headphonejack:matrix.org You seem to have left the room so I don't know if you'll see this message, but there's no way to look up a complete list of symbols and their corresponding functions because the symbols are also functions, it just happens that we define them to be the same as other functions. E.g. you could do The easiest way to look up a symbol is to use the Julia REPL, just type
| 05:03:43 |
Hannes | In reply to @headphonejack:matrix.org* You seem to have left the room so I don't know if you'll see this message, but there's no way to look up a complete list of symbols and their corresponding functions because the symbols are also functions, it just happens that we define them to be the same as other functions. E.g. you could do The easiest way to look up a symbol is to use the Julia REPL, just type
It carries on with more info about the | 05:04:33 |
headphonejack joined the room. | 17:28:07 | |
headphonejack | Sorry for leaving the room so suddenly...I had to go to work (and nearly forgot about it...:) On the neovim channel they show me a way to configure NeoVim to handle Julia code well. But (I think) the assumed a bare-bones NeoVim installation. I am using NVChad instead. Will see, how and whether I could configure that one. I would like to use Helix instead, because there is not that much configuration drama with that one (anyone using Helix editor for Julia here?)...But Helix (currenly) doesn't support these LaTeX->special symbol magic. So as it seems at the moment I need: An editor (Helix), code (obviously) and an other Julia REPL to cut'n'paste stuff back and forth with occasional "translation sessions"... | 17:35:15 |
qwjyh | FYI, you can use IM(Input Methods) to type non ASCII characters everywhere. I've tried fcitx with fcitx-table-unicode-latex and fcitx5 with m17n(which includes latex ime), but none of them was fully compatible with Julia. Maybe you can make conversion table for the input method framework. And I sometimes use fcitx5's Unicode input feature which I can input arbitrary Unicode characters with hexadecimal code or character name. | 20:40:12 |
1 Jul 2023 | ||
Hannes | To be honest, if you don't want to use these symbols you don't have to, I normally don't use them. and if you occasionally need to use one then copy-pasting from the repl isn't that bad, developing in Julia almost always involves having a repl open so it's only a small amount of friction. If you're doing scientific programming with lots of Greek letters or specific operations that are traditionally written with specific mathematical symbols then I understand wanting to use the Unicode symbols for that, and copy pasting is not an acceptable solution then | 02:04:48 |
Nappael changed their display name from Chris to Nappael. | 02:06:14 | |
Andreas Weh | In reply to @qwjyh:matrix.orgCorrect me if I am wrong, but I think if you installed the language server, nvim-cmp also gives you the completions without cmp-latex-symbols . | 06:13:42 |
qwjyh | In reply to @wehandre:matrix.physik.uni-augsburg.deI tried it and I get completion without cmp-latex-symbols . But julia's language server starts up slow, so I'll keep cmp-latex-symbols in my config. | 06:39:44 |
hermitesch joined the room. | 21:46:57 | |
2 Jul 2023 | ||
headphonejack | How did you configure nvim-cmp to get these latex-symbols? | 02:49:11 |
osaut joined the room. | 07:06:43 | |
qwjyh | add kdheepak/cmp-latex-symbols as a completion source for nvim-cmp ``` require("nvim-cmp").setup({ ... sources = { .... { name = "latex_symbols", option = {strategy = 0}, .... }, .... }) ``` Described here: https://github.com/hrsh7th/nvim-cmp#recommended-configuration and here: https://github.com/kdheepak/cmp-latex-symbols#install | 09:46:43 |
headphonejack | WHOW! Thanks a lot ! :) | 09:47:41 |
qwjyh | https://github.com/qwjyh/dotfiles/blob/main/dotfiles/neovim/init.lua Here's my init.lua | 09:49:14 |
headphonejack | One question: Since I am using NvChad, which seperates between NvChad-owned-configuration and that of the the user: WIll the syntax of your configuration add the settings to already existing settings for nvim-cmp (that is for my case those made by NvChad) or will it overwrite already existing settings? Or in other words: How can I add those settings to those already existing once...? | 11:55:40 |
qwjyh | I've never used NvChad. Maybe you should read NvChad docs. https://nvchad.com/docs/quickstart/install | 12:52:36 |
headphonejack | That's what I came from <sigh>.... | 12:53:53 |
qwjyh | Maybe this one? https://nvchad.com/docs/config/walkthrough#custom_config | 12:54:57 |
headphonejack | ...I think (read: don't know for sure) the docs are a little outdated. The docs are talking about nvim-cmp, but trying to configure it gives the error message "unknown: nvim-vmp". I think I need to dig into it a little deeper as previously planned...<sigh> | 12:57:27 |
headphonejack | * ...I think (read: don't know for sure) the docs are a little outdated. The docs are talking about nvim-cmp, but trying to configure it gives the error message "unknown: nvim-cmp". I think I need to dig into it a little deeper as previously planned...<sigh> | 12:57:49 |
qwjyh | Maybe you did require'nvim-cmp' ? | 13:04:24 |
qwjyh | Correct one is require('cmp') | 13:06:15 |