keiwanjamaly / init.lua

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Keymaps

  • 'K/J' as well as '/' move up and down in the Buffer and centeres the cursor position.
  • - opens up the file explorer and goes to the parent directory
  • <C-r> refreshes the directory
  • Movement:
    1. '' left
    2. '' down
    3. '' up
    4. '' right
  • Telescope:
    1. <leader>ff fuzzy find files
    2. <leader>fg fuzzy find grep content inside files
    3. <leader>fh fuzzy find help files

Installed Plugins

colorscheme

The colorscheme used here are the vim moonfly colors

oil

Oil a file explorer for vim, which allows you to edit files like a vim buffer. It is configured, such that

focus

Focus automatically resizes the window pane. There are no keys configured here.

brackets

There are three plugins handling bracket behaviour

  1. autoclode
  2. nvim-surround

nvim-tmux-navigator

The nvim-tmux-navigator allows for a fast navigation between tmux and neovim panes. The keybindings are

The tmux config must containt following code

# Smart pane switching with awareness of Vim splits.
# decide whether we're in a Vim process
is_vim="ps -o state= -o comm= -t '#{pane_tty}' \
    | grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|n?vim?x?)(diff)?$'"

bind-key -n 'C-h' if-shell "$is_vim" 'send-keys C-h' 'select-pane -L'
bind-key -n 'C-j' if-shell "$is_vim" 'send-keys C-j' 'select-pane -D'
bind-key -n 'C-k' if-shell "$is_vim" 'send-keys C-k' 'select-pane -U'
bind-key -n 'C-l' if-shell "$is_vim" 'send-keys C-l' 'select-pane -R'

bind-key -T copy-mode-vi 'C-h' select-pane -L
bind-key -T copy-mode-vi 'C-j' select-pane -D
bind-key -T copy-mode-vi 'C-k' select-pane -U
bind-key -T copy-mode-vi 'C-l' select-pane -R

comment

The comment plugin is configured in such a way that <C-/> toggles between comments.

treesitter

Tresitter is a parser and syntax highliter for everything :)

telescope

Telescope quickly allows to look up files. It's keybindings are

formatter

Formatter is currently configured to the languages

  1. lua
  2. c/cpp
  3. cmake must be installed manually
  4. sh (the formatter must be installed manually)

lualine

lualine for a nice statusline

About


Languages

Language:Lua 100.0%