dev: remove unused defaults

This commit is contained in:
NotAShelf 2023-07-30 12:31:56 +03:00
parent a5d93bedf9
commit bb6b138027
No known key found for this signature in database
GPG key ID: 02D1DD3FA08B6B29
2 changed files with 11 additions and 16 deletions

View file

@ -74,7 +74,7 @@ in {
disable_netrw = ${boolToString cfg.disableNetrw}, disable_netrw = ${boolToString cfg.disableNetrw},
hijack_netrw = ${boolToString cfg.hijackNetrw}, hijack_netrw = ${boolToString cfg.hijackNetrw},
auto_reload_on_write = ${boolToString cfg.autoreloadOnWrite}, auto_reload_on_write = ${boolToString cfg.autoreloadOnWrite},
sort = { sort = {
sorter = "${cfg.sort.sorter}", sorter = "${cfg.sort.sorter}",
folders_first = ${boolToString cfg.sort.foldersFirst}, folders_first = ${boolToString cfg.sort.foldersFirst},
@ -87,7 +87,7 @@ in {
sync_root_with_cwd = ${boolToString cfg.syncRootWithCwd}, sync_root_with_cwd = ${boolToString cfg.syncRootWithCwd},
reload_on_bufenter = ${boolToString cfg.reloadOnBufEnter}, reload_on_bufenter = ${boolToString cfg.reloadOnBufEnter},
respect_buf_cwd = ${boolToString cfg.respectBufCwd}, respect_buf_cwd = ${boolToString cfg.respectBufCwd},
hijack_directories = { hijack_directories = {
enable = ${boolToString cfg.hijackDirectories.enable}, enable = ${boolToString cfg.hijackDirectories.enable},
auto_open = ${boolToString cfg.hijackDirectories.autoOpen}, auto_open = ${boolToString cfg.hijackDirectories.autoOpen},
@ -140,7 +140,7 @@ in {
}, },
select_prompts = ${boolToString cfg.selectPrompts}, select_prompts = ${boolToString cfg.selectPrompts},
view = { view = {
width = ${nvim.lua.expToLua cfg.view.width}, width = ${nvim.lua.expToLua cfg.view.width},
centralize_selection = ${boolToString cfg.view.centralizeSelection}, centralize_selection = ${boolToString cfg.view.centralizeSelection},
@ -180,7 +180,7 @@ in {
modified_placement = "${cfg.renderer.icons.modifiedPlacement}", modified_placement = "${cfg.renderer.icons.modifiedPlacement}",
padding = "${cfg.renderer.icons.padding}", padding = "${cfg.renderer.icons.padding}",
symlink_arrow = "${cfg.renderer.icons.symlinkArrow}", symlink_arrow = "${cfg.renderer.icons.symlinkArrow}",
show = { show = {
git = ${boolToString cfg.renderer.icons.show.git}, git = ${boolToString cfg.renderer.icons.show.git},
folder = ${boolToString cfg.renderer.icons.show.folder}, folder = ${boolToString cfg.renderer.icons.show.folder},
@ -188,12 +188,12 @@ in {
file = ${boolToString cfg.renderer.icons.show.file}, file = ${boolToString cfg.renderer.icons.show.file},
modified = ${boolToString cfg.renderer.icons.show.modified}, modified = ${boolToString cfg.renderer.icons.show.modified},
}, },
glyphs = { glyphs = {
default = "${cfg.renderer.icons.glyphs.default}", default = "${cfg.renderer.icons.glyphs.default}",
symlink = "${cfg.renderer.icons.glyphs.symlink}", symlink = "${cfg.renderer.icons.glyphs.symlink}",
modified = "${cfg.renderer.icons.glyphs.modified}", modified = "${cfg.renderer.icons.glyphs.modified}",
folder = { folder = {
default = "${cfg.renderer.icons.glyphs.folder.default}", default = "${cfg.renderer.icons.glyphs.folder.default}",
open = "${cfg.renderer.icons.glyphs.folder.open}", open = "${cfg.renderer.icons.glyphs.folder.open}",
@ -241,11 +241,11 @@ in {
max_folder_discovery = ${toString cfg.actions.expandAll.maxFolderDiscovery}, max_folder_discovery = ${toString cfg.actions.expandAll.maxFolderDiscovery},
exclude = ${nvim.lua.listToLuaTable cfg.actions.expandAll.exclude}, exclude = ${nvim.lua.listToLuaTable cfg.actions.expandAll.exclude},
}, },
file_popup = { file_popup = {
open_win_config = ${nvim.lua.expToLua cfg.actions.filePopup.openWinConfig}, open_win_config = ${nvim.lua.expToLua cfg.actions.filePopup.openWinConfig},
}, },
open_file = { open_file = {
quit_on_open = ${boolToString cfg.actions.openFile.quitOnOpen}, quit_on_open = ${boolToString cfg.actions.openFile.quitOnOpen},
eject = ${boolToString cfg.actions.openFile.eject}, eject = ${boolToString cfg.actions.openFile.eject},
@ -260,17 +260,17 @@ in {
}, },
}, },
}, },
remove_file = { remove_file = {
close_window = ${boolToString cfg.actions.removeFile.closeWindow}, close_window = ${boolToString cfg.actions.removeFile.closeWindow},
}, },
}, },
live_filter = { live_filter = {
prefix = "${cfg.liveFilter.prefix}", prefix = "${cfg.liveFilter.prefix}",
always_show_folders = ${boolToString cfg.liveFilter.alwaysShowFolders}, always_show_folders = ${boolToString cfg.liveFilter.alwaysShowFolders},
}, },
tab = { tab = {
sync = { sync = {
open = ${boolToString cfg.tab.sync.open}, open = ${boolToString cfg.tab.sync.open},

View file

@ -392,14 +392,12 @@ with builtins; {
}; };
cursorline = mkOption { cursorline = mkOption {
default = false;
description = "Whether to display the cursor line in NvimTree"; description = "Whether to display the cursor line in NvimTree";
type = types.bool; type = types.bool;
}; };
debounceDelay = mkOption { debounceDelay = mkOption {
type = types.int; type = types.int;
default = 100;
description = '' description = ''
Idle milliseconds before some reload / refresh operations. Idle milliseconds before some reload / refresh operations.
Increase if you experience performance issues around screen refresh. Increase if you experience performance issues around screen refresh.
@ -413,9 +411,6 @@ with builtins; {
A table indicates that the view should be dynamically sized based on the A table indicates that the view should be dynamically sized based on the
longest line (previously `view.adaptive_size`). longest line (previously `view.adaptive_size`).
''; '';
default = 30;
type = with types; oneOf [int attrs]; type = with types; oneOf [int attrs];
}; };