Skip to content

yfrvids/dnd

Repository files navigation

Table

Requirements
Usage
Features
Errors

Requirements:

  • Python>3
  • PIP to the latest version with
    • Windows: python.exe -m pip install --upgrade pip
    • Linux(Ubuntu): sudo apt install pip
    • Linux (Arch Linux) sudo pacman -S python-pip
  • Git
  • Nodejs, Npm
    • Windows: nodejs website
    • Linux(Ubuntu):
      sudo apt install curl
      curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
      source ~/.bashrc
      nvm list-remote
      nvm install v<LTSversion>
      nvm list
      nvim install lts/...
      nvm use v<LTSversion>
  • Deno
    • Windows:
    • Linux/Mac:
      • curl -fsSL https://deno.land/install.sh | sh

      • Crear archivo envexport: touch /home/yourUser/.deno/envexport

  • Neovim
    • Windows:
      • In Windows Powershell Install Chocolatey (Do not install Chocolatey through the nodejs installer, but from the script on the web site)
      • As ADMINISTRATOR Install Neovim on Windows Powershell through Chocolatey
    • Linux(Ubuntu): https://github.com/neovim/neovim-releases/releases
    • Linux (Arch Linux) sudo pacman -S neovim
  • texlive-latex From .tex files to .pdf files
    • Linux(Debian)
      • From synaptic install texlive-latex-base, texlive-base, texlive-binaries

Usage

🖥️ Windows
  • Clone the repository to the location AppData/Local/
  • From the terminal, go to the AppData/Local/dnd/ folder
  • Give permissions to the install.ps1 file with Set-ExecutionPolicy Bypass -Scope Process -Force, and execute it with .\install.ps1
  • Restart the terminal
💻 Linux
  • Clone the repository to the location .config/
  • From the terminal, go to the .config/dnd/ folder
  • Give permissions to the install.sh file with chmod +x install.sh, and execute it with ./install
  • Restart the terminal

  • In the windows terminal enter dnd using dnd
  • To find the configuration folder for dnd type from neovim :echo stdpath('config')
  • Recommended font: In the fonts folder there is a set of JetBrains fonts, from File Explorer select all fonts and right click on install. Then from the windows console configuration (powershell or cmd) go to the Profiles section and select Defaults, then select Appearance, and in the Font face box select a JetBrains font (JetBrainsMono Nerd Font Mono as a personal recommendation) This font allows the display of icons for both folders and file type, and also for special characters that aesthetically improve the visualization of the code. And finally click on save.

Features

dnd (DeltanvimDocs)

  • Compile .tex files with pdflatex fileName.tex
  • View pdf file which was compiled with zathura fileName.pdf (zathura/okular/firefox/etc)
  • Integrated terminal with Ctrl + j
  • LSP server manager, DAP servers, linters and formatters with :Mason
  • A file explorer tree with Ctrl + b
  • Quick and easy mappings (👀 check lua/plugins/keymaps.lua file)
  • Quickly navigate between functions, classes and methods using the hierarchical file view with ts
  • Identification of problems in the code by precise diagnostics 🕵🏻‍♂️ with tt
  • Available code actions 💡 press space + as to display the options (in this case the space key corresponds to the <leader> key)
  • Start or invoke Github Copilot with the command :Copilot setup
    • Use the command :Copilot enable to enable the plugin
    • Use the command :Copilot disable to disable the plugin
    • Use Tab to accept the suggestions
  • Markdown preview with :PeekOpen and :PeekClose (You can check 👀 the lua/plugins/peekdeltanvim.lua file if you want to modify the Live Server settings, such as the default browser for the preview and so on)
  • Support for KaTex for mathematical formulas in Markdown files:
    $$
    E = mc^2
    $$
    
    $E = mc^2$

Errors

Error executing Lua callback: Vim:E475: Invalid value for argument cmd: 'deno' is not executable

Error completo:

Error executing Lua callback: Vim:E475: Invalid value for argument cmd: 'deno' is not executable 
stack traceback:                                                                                                    
        [C]: in function 'jobstart'                                                                                 
        ...e/.local/share/dnd/lazy/peek.nvim/lua/peek/app.lua:53: in function 'init'                          
        .../.local/share/dnd/lazy/peek.nvim/lua/peek/init.lua:23: in function 'open'                          
        .../.local/share/dnd/lazy/peek.nvim/lua/peek/init.lua:113: in function <.../.local/share/dnd/lazy/peek.nvim/lua/peek/init.lua:104>

¿Cuando ocurre?
Ocurre cuando se quiere inicar el server de markdown mediante el comando :PeekOpen. Por lo tanto el indicativo de 'deno' is not executable muestra que deno a pesar de estar instalado en el sistema, el sistema no lo reconoce.

Solution:

  1. Dirigirse a la ubicación del ejecutable mediante: cd ~/.deno/bin/

  2. Copiar el ejecutable a la ruta /usr/local/bin mediante: sudo cp -r deno /usr/local/bin/

  3. Cerrar/Reiniciar la terminal

Error: /home/yourUser/.deno/envexport: No such file or directory

Solution:

  1. Crear el archivo envexport mediante: touch /home/yourUser/.deno/envexport
Error: Peek error: error: Module not found "file:///home/yourUser/.local/share/dnd /lazy/peek.nvim/public/main.bundle.js". Press ENTER or type command to continue

Solution:*

  1. Dirigirse al directorio peek.nvim mediante: cd ~/.local/share/dnd/lazy/peek.nvim

  2. Dentro del directorio peek.nvim ejecutar el siguiente comando: deno task --quiet build:fast

  3. Reinstalar peek ingresando a dnd mediante el comando dnvim en la terminal mediante el comando :Lazy

About

A Deltanvim version for latex, markdown, or any type of text documents

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors