Skip to content

Instantly share code, notes, and snippets.

@nicolashery
Created May 15, 2025 13:34
Show Gist options
  • Save nicolashery/1cf721bd5d46874c9a57178cc4a0c4e6 to your computer and use it in GitHub Desktop.
Save nicolashery/1cf721bd5d46874c9a57178cc4a0c4e6 to your computer and use it in GitHub Desktop.
My config for LazyVim

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment