Skip to content

mockee/nvim-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yan's Neovim Config

Manager

LSP configs

require('mason-lspconfig').setup {
  -- All servers set up via lspconfig are automatically installed
  automatic_installation = true
}

Workbench

Theme

Use folke/tokyonight.nvim

require('tokyonight').setup({
  style = 'night',
  transparent = true
})

Use nvim-tree/nvim-web-devicons with Hack font

$ brew tap homebrew/cask-fonts
$ brew install --cask font-hack-nerd-font

Statusline

Use Lualine and enable the tokyonight colorscheme and lazy.status

Tabs

akinsho/nvim-bufferline.lua

Normal Command Description
te :tabedit New tab
<Tab> BufferLineCycleNext Navigate to the next tab
<S-Tab> BufferLineCyclePrev Navigate to the previous tab

Text Editor

Autocomplete

Code Formatter

require('null-ls').setup {
  sources = {
    null_ls.builtins.formatting.prettierd,
    null_ls.builtins.formatting.autopep8,
  }
}

Syntax highlighting

LSP UIs

glepnir/lspsaga.nvim - A light-weight LSP plugin based on Neovim's built-in LSP with a highly performant UI

Normal Command
gh Lspsaga lsp_finder
gd Lspsaga peek_definition
gs Lspsaga signature_help
gr Lspsaga rename
gl Lspsaga show_diagnostic
[e Lspsaga diagnostic_jump_next
]e Lspsaga diagnostic_jump_prev
K Lspsaga hover_doc
<leader>,cd Lspsaga show_line_diagnostics
<leader>,ca Lspsaga code_action
<leader>o Lspsaga outline

Indent Blankline

Use lukas-reineke/indent-blankline.nvim

require('indent_blankline').setup({
  show_current_context = true,
})

Comment

Use numToStr/Comment.nvim - Smart and powerful comment plugin for Neovim

Normal / Visual Description
gcc / gc Toggles the current line / region using linewise comment
gbc / gb Toggles the current line / region using blockwise comment

Color highlighter

Use norcalli/nvim-colorizer.lua - The fastest Neovim colorizer

Features

Fuzzy Finder

Use telescope.nvim

Normal Function Description
<leader>ff builtin.find_files Lists files in the current working directory
<leader>fg builtin.live_grep Search for a string in the current working directory and get results live as type
<leader>fb builtin.buffers Lists open buffers in current Neovim instance
<leader>fr builtin.resume Lists the results incl. multi-selections of the previous picker
<leader>fh builtin.help_tags Lists available help tags and opens a new window with the relevant help info on <cr>
<leader>fk builtin.keymaps Lists normal mode keymappings
<leader>b extensions.file_browser Open file browser

File Browser

Use telescope.nvim extension - telescope-file-browser.nvim

Normal fb_actions Description
c create Create file/folder at current path (trailing path separator creates folder)
r rename Rename multi-selected files/folders
d remove Delete (multi-)selected files/folders
o open Open file/folder with default system application
u goto_parent_dir Go to parent directory
e goto_home_dir Go to home directory
w goto_cwd Go to current working directory (cwd)
t change_cwd Change nvim's cwd to selected folder/file(parent)

Terminal

Use akinsho/toggleterm.nvim

toggleterm.setup({
  open_mapping = [[<c-\>]],
})

Git

Markdown Preview

Use iamcco/markdown-preview.nvim

:MarkdownPreview

About

Yan's Neovim config

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages