Skip to content

Commit

Permalink
[nvim] add supermaven
Browse files Browse the repository at this point in the history
  • Loading branch information
nomutin committed Oct 18, 2024
1 parent 7c93d3b commit 5ee7fcf
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ Minimal dotfiles for my `macOS` and `Linux`.

![platform](https://img.shields.io/badge/platform-macOS%20|%20Linux-blue)
![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/nomutin/dotfiles)
![GitHub repo size](https://img.shields.io/github/repo-size/nomutin/dotfiles)
[![ci](https://github.com/nomutin/dotfiles/actions/workflows/ci.yaml/badge.svg)](https://github.com/nomutin/dotfiles/actions/workflows/ci.yaml)

</div>
Expand All @@ -19,6 +18,7 @@ bash -c "$(curl https://raw.githubusercontent.com/nomutin/dotfiles/master/script

- Shell - [bash](https://www.gnu.org/software/bash/)
- Terminal Emulator - [Alacritty](https://alacritty.org/)
- Package Manager - [Homebrew](https://brew.sh), [mise](https://mise.jdx.dev/)
- CLI Manager - [mise](https://mise.jdx.dev/)
- App Manager (Mac) - [Homebrew](https://brew.sh)
- Terminal Multiplexer - [zellij](https://zellij.dev)
- Text Editor - [neovim](https://neovim.io)
18 changes: 11 additions & 7 deletions xdg_config/nvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ vim.opt.pumheight = 10
vim.opt.ignorecase = true
vim.opt.smartcase = true
vim.opt.scrolloff, vim.opt.sidescrolloff = 8, 8
vim.opt.splitright, vim.opt.splitbelow = true, true
vim.opt.showtabline = 2
vim.opt.laststatus = 3
vim.opt.smartindent = true
Expand All @@ -20,8 +21,10 @@ vim.opt.cursorline = true
vim.opt.number = true
vim.opt.wrap = false
vim.opt.list = true
vim.keymap.set("i", "jk", "<ESC>", { noremap = true })

vim.api.nvim_set_hl(0, "Type", { fg = "NvimLightBlue" })
vim.keymap.set("i", "jk", "<ESC>", { noremap = true })
vim.keymap.set("t", "fd", "<C-\\><C-n>", { noremap = true })

-- ====== CLIPBOARD ======
local function paste(_)
Expand All @@ -44,18 +47,13 @@ vim.opt.rtp:prepend(lazypath)
require("lazy").setup({
{
"saghen/blink.cmp",
lazy = false,
event = "InsertEnter",
version = "v0.*",
opts = {
trigger = { signature_help = { enabled = true } },
windows = { autocomplete = { selection = "auto_insert" }, documentation = { auto_show = true } },
},
},
{
"zbirenbaum/copilot.lua",
event = "InsertEnter",
opts = { suggestion = { auto_trigger = true, hide_during_completion = false } },
},
{
"folke/flash.nvim",
keys = {
Expand Down Expand Up @@ -91,12 +89,18 @@ require("lazy").setup({
main = "nvim-treesitter.configs",
opts = { highlight = { enable = true }, indent = { enable = true } },
},
{
"supermaven-inc/supermaven-nvim",
event = "InsertEnter",
opts = { keymaps = { accept_suggestion = "<C-k>" } },
},
{
"nvim-telescope/telescope.nvim",
dependencies = { "nvim-lua/plenary.nvim", "nvim-telescope/telescope-file-browser.nvim" },
keys = {
{ "<leader>f", "<cmd>Telescope find_files<cr>", desc = "Find Files" },
{ "<leader>/", "<cmd>Telescope live_grep<cr>", desc = "Search Word" },
{ "<leader>b", "<cmd>Telescope buffers<cr>", desc = "List Buffers" },
{ "<leader>n", "<cmd>Telescope file_browser hidden=true path=%:p:h<cr>", desc = "Open File Browser" },
},
},
Expand Down

0 comments on commit 5ee7fcf

Please sign in to comment.