My config for LazyVim.
Theme:
-- ~/.config/nvim/lua/plugins/catppuccin
return {
"catppuccin/nvim",
name = "catppuccin",
priority = 1000,
opts = {
flavour = "frappe",
},
}
-- ~/.config/nvim/lua/plugins/lazyvim.lua
return {
"LazyVim/LazyVim",
opts = {
colorscheme = "catppuccin",
},
}
Keybindings:
-- ~/.config/nvim/lua/config/keymaps.lua
-- Exit terminal mode in the builtin terminal with a shortcut that is a bit easier
-- for people to discover. Otherwise, you normally need to press <C-\><C-n>, which
-- is not what someone will guess without a bit more experience.
--
-- NOTE: This won't work in all terminal emulators/tmux/etc. Try your own mapping
-- or just use <C-\><C-n> to exit terminal mode
vim.keymap.set("t", "<Esc><Esc>", "<C-\\><C-n>", { desc = "Exit terminal mode" })
Distraction-free code editing (no autocomplete menus, diagnostics, hints, ghost text, occurrence highlights, etc.):
-- ~/.config/nvim/lua/plugins/nvim-lspconfig.lua
return {
"neovim/nvim-lspconfig",
opts = {
-- disable diagnostics overlays
-- can still see all diagnostics with <leader>xx
diagnostics = {
virtual_text = false,
signs = false,
underline = false,
},
-- disable inlay hints
inlay_hints = {
enabled = false,
},
-- disable codelens (should be disabled by default)
codelens = {
enabled = false,
},
},
}
-- ~/.config/nvim/lua/plugins/blink.lua
return {
"saghen/blink.cmp",
opts = {
completion = {
menu = {
-- disable autocomplete menu automatically showing
-- can still manually show with <C-Space>
auto_show = false,
},
ghost_text = {
-- disable autocomplete ghost text
enabled = false,
},
},
},
}
-- ~/.config/nvim/lua/plugins/noice.lua
return {
"folke/noice.nvim",
opts = {
lsp = {
signature = {
-- disable signature help popup when typing function arguments
-- can still manually show (in Normal mode) with <K>
enabled = false,
},
},
},
}
-- ~/.config/nvim/lua/plugins/snacks.lua
return {
"folke/snacks.nvim",
opts = {
words = {
-- disable reference highlighting for word under cursor
enabled = false,
},
},
}
-- ~/.config/nvim/lua/config/options.lua
-- disable autoformat on save
-- can still manually trigger with <leader>cf
vim.g.autoformat = false