mirror of
https://github.com/mikkelsvartveit/dotfiles.git
synced 2025-12-22 19:22:38 +00:00
Tweak neovim config
This commit is contained in:
parent
230dee6642
commit
dce78000d2
1 changed files with 7 additions and 2 deletions
|
|
@ -73,9 +73,13 @@ require("lazy").setup({
|
||||||
sources = {
|
sources = {
|
||||||
{ name = "nvim_lsp" },
|
{ name = "nvim_lsp" },
|
||||||
},
|
},
|
||||||
|
completion = {
|
||||||
|
-- Highlight first item in completion menu automatically
|
||||||
|
completeopt = "menu,menuone,noinsert",
|
||||||
|
},
|
||||||
mapping = cmp.mapping.preset.insert({
|
mapping = cmp.mapping.preset.insert({
|
||||||
-- Enter key confirms completion item
|
-- Enter key confirms completion item
|
||||||
["<CR>"] = cmp.mapping.confirm({ select = true }),
|
["<CR>"] = cmp.mapping.confirm({ select = false }),
|
||||||
|
|
||||||
-- Ctrl + space triggers completion menu
|
-- Ctrl + space triggers completion menu
|
||||||
["<C-Space>"] = cmp.mapping.complete(),
|
["<C-Space>"] = cmp.mapping.complete(),
|
||||||
|
|
@ -166,7 +170,8 @@ require("lazy").setup({
|
||||||
require("supermaven-nvim").setup({})
|
require("supermaven-nvim").setup({})
|
||||||
|
|
||||||
-- Disable on startup
|
-- Disable on startup
|
||||||
vim.api.nvim_command("silent! SupermavenStop")
|
local api = require("supermaven-nvim.api")
|
||||||
|
api.stop()
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue