mirror of
https://github.com/neovim/neovim.git
synced 2026-04-23 07:45:32 +00:00
fix(options): make 'cdhome' take effect on any platform
Platform specific options are cringe and should either be fixed or deleted. In this case, the platform difference can trivially be implemented using a conditional default value. If the user overrides the value, then it is because the user wants that value, regardless of the corporation who manufactured the OS that the user is running. Possible alternative: delete the option by making it always on.
This commit is contained in:
3
runtime/lua/vim/_meta/options.lua
generated
3
runtime/lua/vim/_meta/options.lua
generated
@@ -700,12 +700,11 @@ vim.go.cmp = vim.go.casemap
|
||||
--- When on, `:cd`, `:tcd` and `:lcd` without an argument changes the
|
||||
--- current working directory to the `$HOME` directory like in Unix.
|
||||
--- When off, those commands just print the current directory name.
|
||||
--- On Unix this option has no effect.
|
||||
--- This option cannot be set from a `modeline` or in the `sandbox`, for
|
||||
--- security reasons.
|
||||
---
|
||||
--- @type boolean
|
||||
vim.o.cdhome = false
|
||||
vim.o.cdhome = true
|
||||
vim.o.cdh = vim.o.cdhome
|
||||
vim.go.cdhome = vim.o.cdhome
|
||||
vim.go.cdh = vim.go.cdhome
|
||||
|
||||
Reference in New Issue
Block a user