Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lua/insis/plugins/nvim-tree.lua
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ if nvimTree and cfg and cfg.enable then
keymap("n", cfg.keys.paste, api.fs.paste, opts("Paste"))
keymap("n", cfg.keys.copy_name, api.fs.copy.filename, opts("Copy Name"))
keymap("n", cfg.keys.copy_path, api.fs.copy.relative_path, opts("Copy Relative Path"))
keymap("n", cfg.copy_absolute_path, api.fs.copy.absolute_path, opts("Copy Absolute Path"))
keymap("n", cfg.toggle_file_info, api.node.show_info_popup, opts("Info"))
keymap("n", cfg.keys.copy_absolute_path, api.fs.copy.absolute_path, opts("Copy Absolute Path"))
keymap("n", cfg.keys.toggle_file_info, api.node.show_info_popup, opts("Info"))
end
-- disable netrw at the very start of your init.lua (strongly advised)
vim.g.loaded_netrw = 1
Expand Down
6 changes: 3 additions & 3 deletions lua/insis/utils/global.lua
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ function _G.isWSL()
end

function _G.isMAC()
return vim.fn.has("maxunic") == 1
return vim.fn.has("macunix") == 1
end

function _G.isLinux(self)
return not self.is_wsl() and not self.is_mac()
function _G.isLinux()
return not _G.isWSL() and not _G.isMAC()
end

table.indexOf = function(t, object)
Expand Down