ITADN

How can I serve a directory from its absolute path

#12Closedstatquant 创建于 2024-07-12
S
statquantcommented
Hello, I must be missing something obvious but I cannot manage to serve a given directory. I tried passing `--open=` and/or `--watch=` in `args` but that's not working, that makes sense because on the command line it's not working either My config is the following ``` local config = function() require('lazy').setup({}) require('live-server').setup({ args = { '--port=0', '--browser=firefox', '--htpasswd=/home/statquant/.live_server_pwd.txt', '/home/statquant/Work' } }) end return { 'barrett-ruth/live-server.nvim', laxy = false, -- build = 'pnpm add -g live-server', cmd = { 'LiveServerStart', 'LiveServerStop' }, config = config, enabled = true, } ``` Say I want to serve `/home/statquant`, how should I proceed ?
关闭于 2024-07-15 11 条评论