Skip to content

The file you open is in read-only mode, so it won't be accidentally modified, similar to the file read-only function in VSCODE

License

Notifications You must be signed in to change notification settings

czfadmin/readonly.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Readonly.nvim

The file you open is in read-only mode, so it won't be accidentally modified, similar to the file read-only function in VSCODE

HOW TO USE IT?

  • lazyvim
return {
  "czfadmin/readonly.nvim",
  event = "BufReadPre",
  enabled = true,
  opts = {
    restricted_directories = {
      "/etc",
      "/usr",
      "/var",
      "/tmp",
      "/opt",
      "*/node_modules/.*"
    },
    exclude_directories = {},

  },
  config = function(_, opts)
    require("readonly").setup(opts)
  end,
}

About

The file you open is in read-only mode, so it won't be accidentally modified, similar to the file read-only function in VSCODE

Resources

License

Stars

Watchers

Forks

Packages

No packages published