<commit_before>vim.api.nvim_set_keymap(
    'n',
    '<leader>k',
    ':NvimTreeToggle<CR>',
    {
        noremap = true,
        silent = true,
    }
)

require('nvim-tree.view').View.width = 40<commit_msg>fix(vim): keymap for file tree finds file<commit_after>local view = require('nvim-tree.view')
_G.NvimTreeConfig = {}

function NvimTreeConfig.find_toggle()
    if view.win_open() then
        view.close()
    else
        vim.cmd('NvimTreeFindFile')
    end
end

vim.api.nvim_set_keymap(
    'n',
    '<leader>k',
    '<CMD>lua NvimTreeConfig.find_toggle()<CR>',
    {
        noremap = true,
        silent = true,
    }
)

view.width = 40
{'fraction_non_alphanumeric': 0.14969135802469136, 'fraction_numerical': 0.006172839506172839, 'mean_word_length': 2.6875, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3801368', 'n_tokens_mistral': 261, 'n_tokens_neox': 249, 'n_words': 40}