LiadOz / nvim-dap-repl-highlights

Add syntax highlighting to the nvim-dap REPL
110 stars 6 forks source link

No installation instructions #10

Closed FalcoGer closed 8 months ago

FalcoGer commented 8 months ago

I tried installing this plugin with vim-plugged as usual, but it didn't activate.

Plug 'LiadOz/nvim-dap-repl-highlights'

I tried doing it manually with

:lua require('nvim-dap-repl-highlights').setup()

But I got

E5108: Error executing lua [string ":lua"]:1: module 'nvim-dap-repl-highlights' not found:
        no field package.preload['nvim-dap-repl-highlights']
        no file './nvim-dap-repl-highlights.lua'
        no file '/home/user/repositories/vim/neovim/.deps/usr/share/luajit-2.1.0-beta3/nvim-dap-repl-highlights.lua'
        no file '/usr/local/share/lua/5.1/nvim-dap-repl-highlights.lua'
        no file '/usr/local/share/lua/5.1/nvim-dap-repl-highlights/init.lua'
        no file '/home/user/repositories/vim/neovim/.deps/usr/share/lua/5.1/nvim-dap-repl-highlights.lua'
        no file '/home/user/repositories/vim/neovim/.deps/usr/share/lua/5.1/nvim-dap-repl-highlights/init.lua'
        no file './nvim-dap-repl-highlights.so'
        no file '/usr/local/lib/lua/5.1/nvim-dap-repl-highlights.so'
        no file '/home/user/repositories/vim/neovim/.deps/usr/lib/lua/5.1/nvim-dap-repl-highlights.so'
        no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
        [C]: in function 'require'
        [string ":lua"]:1: in main chunk
Press ENTER or type command to continue

So I looked into the repository and saw the cargo file (rust is not mentioned as a dependency). So I built it with

cargo build --release --all-features

and amended my vimrc/init

Plug 'LiadOz/nvim-dap-repl-highlights' {'do': 'cargo build --release --all-features'}

I tried again, and again it didn't work (same error as above). I don't want to run a system wide install.

Please add documentation on how to install this.

I also noticed that the directory that I used to set up vim-plugged doesn't appear in that list of error messages. It should be in ~/.vim/plugged. All my other plugins work just fine like that.

FalcoGer commented 8 months ago

Nevermind. I had the plugin order wrong.