Skip to content

Commit

Permalink
chore: remove rc question and doc update
Browse files Browse the repository at this point in the history
  • Loading branch information
Diogo-ss committed Mar 26, 2024
1 parent bce429e commit 463eb5a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 13 deletions.
13 changes: 6 additions & 7 deletions .github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ Integrates Five-Server and Neovim. View dynamic and static pages.

## ✨ Features:

- Debugging by notifications (optional)
- Bebug via notify (optional)
- Log file (optional)
- Supports fiveserverrc
- automatic installation with NPM or PNPM
- no global installation required
- multiple instances in a single neovim session
- Automatic installation with NPM or PNPM
- No global installation required
- Multiple instances in a single Neovim session

## 🎯 Requirements

Expand Down Expand Up @@ -45,7 +45,7 @@ These are the standard options. Change them according to your needs.
-- configure debug.
debug = {
-- enables or disables debug.
enabled = true,
enabled = false,
-- log filename.
file_name = "fs-debug.log",
},
Expand All @@ -67,12 +67,11 @@ These are the standard options. Change them according to your needs.
-- RC filename (not recommended to change).
path = ".fiveserverrc",
},
-- settings to be saved in Five Server RC.
-- settings to be saved in Five-Server RC.
-- the key name and value will be used.
config = {
-- set the server port.
port = 5500,

-- the output level.
logLevel = 3,

Expand Down
2 changes: 1 addition & 1 deletion lua/fs/config/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ M.opts = {
-- configure debug.
debug = {
-- enables or disables debug.
enabled = true,
enabled = false,
-- log filename.
file_name = "fs-debug.log",
},
Expand Down
6 changes: 1 addition & 5 deletions lua/fs/utils/rc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,7 @@ function M.gen_rc(path, force)
path = path or config.opts.fiveserverrc.gen_rc.path

if M.has_rc(path) and not force then
local response = vim.fn.input "There is already a fiveserverrc. Would you like to generate another one? [y/N]: "
if response:lower() ~= "y" then
logger.logger_warn "Operation canceled."
return
end
return
end

M._gen_rc(path)
Expand Down

0 comments on commit 463eb5a

Please sign in to comment.