configure codeium and autoformat plugin files. Consider changing codeium hotkeys in the future
This commit is contained in:
parent
e7bab8d905
commit
0038862d2e
|
@ -4,6 +4,7 @@
|
||||||
"cmp-nvim-lsp": { "branch": "main", "commit": "44b16d11215dce86f253ce0c30949813c0a90765" },
|
"cmp-nvim-lsp": { "branch": "main", "commit": "44b16d11215dce86f253ce0c30949813c0a90765" },
|
||||||
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
|
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
|
||||||
"cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" },
|
"cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" },
|
||||||
|
"codeium.vim": { "branch": "main", "commit": "31dd2962c81759be007895db6ce089feec397c86" },
|
||||||
"conform.nvim": { "branch": "master", "commit": "9d5ba06d6ee7418c674f498634617416d15b6239" },
|
"conform.nvim": { "branch": "master", "commit": "9d5ba06d6ee7418c674f498634617416d15b6239" },
|
||||||
"copilot.vim": { "branch": "release", "commit": "5b19fb001d7f31c4c7c5556d7a97b243bd29f45f" },
|
"copilot.vim": { "branch": "release", "commit": "5b19fb001d7f31c4c7c5556d7a97b243bd29f45f" },
|
||||||
"fidget.nvim": { "branch": "main", "commit": "a1493d94ecb3464ab3ae4d5855765310566dace4" },
|
"fidget.nvim": { "branch": "main", "commit": "a1493d94ecb3464ab3ae4d5855765310566dace4" },
|
||||||
|
|
|
@ -1,15 +1,12 @@
|
||||||
return {
|
return {
|
||||||
"windwp/nvim-autopairs",
|
'windwp/nvim-autopairs',
|
||||||
-- Optional dependency
|
-- Optional dependency
|
||||||
dependencies = { 'hrsh7th/nvim-cmp' },
|
dependencies = { 'hrsh7th/nvim-cmp' },
|
||||||
config = function()
|
config = function()
|
||||||
require("nvim-autopairs").setup {}
|
require('nvim-autopairs').setup {}
|
||||||
-- If you want to automatically add `(` after selecting a function or method
|
-- If you want to automatically add `(` after selecting a function or method
|
||||||
local cmp_autopairs = require('nvim-autopairs.completion.cmp')
|
local cmp_autopairs = require 'nvim-autopairs.completion.cmp'
|
||||||
local cmp = require('cmp')
|
local cmp = require 'cmp'
|
||||||
cmp.event:on(
|
cmp.event:on('confirm_done', cmp_autopairs.on_confirm_done())
|
||||||
'confirm_done',
|
end,
|
||||||
cmp_autopairs.on_confirm_done()
|
|
||||||
)
|
|
||||||
end,
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,25 @@
|
||||||
|
return {
|
||||||
|
'Exafunction/codeium.vim',
|
||||||
|
-- event = 'BufEnter',
|
||||||
|
config = function()
|
||||||
|
vim.keymap.set('i', '<C-g>', function()
|
||||||
|
return vim.fn['codeium#Accept']()
|
||||||
|
end, { expr = true, silent = true })
|
||||||
|
|
||||||
|
vim.keymap.set('i', '<C-;>', function()
|
||||||
|
return vim.fn['codeium#CycleCompletions'](1)
|
||||||
|
end, { expr = true, silent = true })
|
||||||
|
|
||||||
|
vim.keymap.set('i', '<C-,>', function()
|
||||||
|
return vim.fn['codeium#CycleCompletions'](-1)
|
||||||
|
end, { expr = true, silent = true })
|
||||||
|
|
||||||
|
vim.keymap.set('i', '<C-x>', function()
|
||||||
|
return vim.fn['codeium#Clear']()
|
||||||
|
end, { expr = true, silent = true })
|
||||||
|
|
||||||
|
vim.keymap.set('i', '<C-o>', function()
|
||||||
|
return vim.fn['codeium#Complete']()
|
||||||
|
end, { expr = true, silent = true })
|
||||||
|
end,
|
||||||
|
}
|
|
@ -1,15 +1,15 @@
|
||||||
-- use `nvim .` or `knv .` to open neovim with this active
|
-- use `nvim .` or `knv .` to open neovim with this active
|
||||||
return {
|
return {
|
||||||
'stevearc/oil.nvim',
|
'stevearc/oil.nvim',
|
||||||
opts = {
|
opts = {
|
||||||
view_options = {
|
view_options = {
|
||||||
-- Show files and directories that start with "."
|
-- Show files and directories that start with "."
|
||||||
show_hidden = true,
|
show_hidden = true,
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
-- Optional dependencies
|
-- Optional dependencies
|
||||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
dependencies = { 'nvim-tree/nvim-web-devicons' },
|
||||||
|
|
||||||
-- set keymap for opening Oil file explorer
|
-- set keymap for opening Oil file explorer
|
||||||
vim.keymap.set({ 'n' }, '<leader>oe', ':Oil<CR>', { desc = 'Open Oil file explorer', silent = true })
|
vim.keymap.set({ 'n' }, '<leader>oe', ':Oil<CR>', { desc = 'Open Oil file explorer', silent = true }),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue