<commit_before>local map = require('utils').map
local cmd = vim.cmd

cmd([[colorscheme dracula]])

-- " Remove trailing spaces on save
cmd([[autocmd BufWritePre * :%s/\s\+$//e]])


-- " Window Splitting and file navigation
map('n', ',hs', ':split<CR>', {silent = true})
map('n', ',vs', ':vsplit<CR>', {silent = true})
map('n', '\\', ':NERDTreeToggle<CR>', {noremap = true, silent = true})

map('n', '<leader><space>', ':Vipe<CR>', {silent = true})

-- " Switch between test and production code
map('n', '<Leader>.', ':A<CR>',{})

-- " Common typos
cmd(':command! WQ wq')
cmd(':command! WQ wq')
cmd(':command! Wq wq')
cmd(':command! Wqa wqa')
cmd(':command! Qall qall')
cmd(':command! W w')
cmd(':command! Q q')

<commit_msg>Add some mappings to nvim<commit_after>local map = require('utils').map
local cmd = vim.cmd

cmd([[colorscheme dracula]])

-- " Remove trailing spaces on save
cmd([[autocmd BufWritePre * :%s/\s\+$//e]])

-- " Search under word
map('n', '<Leader>rg', '<ESC>:FZFRg<Space>', { noremap = true, silent = false })
map('n', '<Leader>rw', '<ESC>:FZFRg <C-R><C-W><enter>', { noremap = true, silent = false })

-- " Split window and file navigation
map('n', ',hs', ':split<CR>', {silent = true})
map('n', ',vs', ':vsplit<CR>', {silent = true})
map('n', '\\', ':NERDTreeToggle<CR>', {noremap = true, silent = true})

map('n', '<leader><space>', ':Vipe<CR>', {silent = true})

-- " Switch between test and production code
map('n', '<Leader>.', ':A<CR>',{})

-- " Open nvim help
map( "n", ",h", [[<Cmd>lua require'telescope.builtin'.help_tags({results_title='Help Results'})<CR>]], { noremap = true, silent = true })

-- " Common typos
cmd(':command! WQ wq')
cmd(':command! WQ wq')
cmd(':command! Wq wq')
cmd(':command! Wqa wqa')
cmd(':command! Qall qall')
cmd(':command! W w')
cmd(':command! Q q')

require'lspconfig'.solargraph.setup{}

{'fraction_non_alphanumeric': 0.25202812330989727, 'fraction_numerical': 0.0, 'mean_word_length': 5.208053691275167, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 29, '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': '3179154', 'n_tokens_mistral': 720, 'n_tokens_neox': 717, 'n_words': 184}