My Neovim Setup

Jun 26 2023 · 1 min read

Intro

Recently I got no motivation to code, mainly because I got no projects idea while also struggling finding a new job in my city. Then I stumble upon Takuya Matsuyama's (craftzdog) vim setup. I've always like the aesthetic setup he has so I decided to try neovim and configure it for my self. So this is my setup.

Ingredients

Here is the ingredients for my neovim setup right now, it will be update from time to time.

You can see my dotfiles repo here on file on my github repo

Everything is in the repo, but I will compile and show some of my keybind setup here.


-- nvim tree mapping
km.set('n', '<c-n>', ':NvimTreeFindFileToggle<CR>')


-- Moving line mapping
km.set('n', 'J', ':m .+1<CR>')
km.set('n', 'K', ':m .-2<CR>')
-- moving multiple line mapping
km.set('v', 'K', ":m '<-2<CR>gv=gv")
km.set('v', 'J', ":m '>+1<CR>gv=gv")

-- bufferline mapping for navigate buffer
vim.keymap.set('n', '<Tab>', '<Cmd>BufferLineCycleNext<CR>')
vim.keymap.set('n', '<leader><Tab>', '<Cmd>bufferLIneCyclePrev<CR>')

I have been trying to adopt neovim since 2022, but since it is really hard i had to constantly switch back to vscode. And now since that I finally managed to at least geting comfortable with neovim, I can see an improvement in speed. I no longer need to touch my mouse when writing code and have super usefull plugins and keybinding that make things faster and easier.

One thing I missed though, I can't find my favorite theme called mayukai, I will probably try to learn how to port it from vscode if I should.

~Dasvidaniya!