mapping and copilot
This commit is contained in:
parent
1228bd5fd2
commit
1fb6db0c55
28
init.lua
28
init.lua
|
@ -86,6 +86,9 @@ require('lazy').setup({
|
|||
-- Some Primeagen
|
||||
'ThePrimeagen/harpoon',
|
||||
|
||||
-- Copilot
|
||||
'github/copilot.vim',
|
||||
|
||||
-- NOTE: This is where your plugins related to LSP can be installed.
|
||||
-- The configuration is done below. Search for lspconfig to find it below.
|
||||
{
|
||||
|
@ -245,6 +248,12 @@ require('lazy').setup({
|
|||
--
|
||||
-- An additional note is that if you only copied in the `init.lua`, you can just comment this line
|
||||
-- to get rid of the warning telling you that there are not plugins in `lua/custom/plugins/`.
|
||||
-- {
|
||||
-- "olrtg/nvim-emmet",
|
||||
-- config = function()
|
||||
-- vim.keymap.set({ "n", "v" }, '<leader>xe', require('nvim-emmet').wrap_with_abbreviation)
|
||||
-- end,
|
||||
-- },
|
||||
{ import = 'custom.plugins' },
|
||||
}, {})
|
||||
|
||||
|
@ -508,6 +517,7 @@ local servers = {
|
|||
pyright = {},
|
||||
-- rust_analyzer = {},
|
||||
-- tsserver = {},
|
||||
-- emmet_language_server = {},
|
||||
|
||||
lua_ls = {
|
||||
Lua = {
|
||||
|
@ -561,15 +571,15 @@ cmp.setup {
|
|||
behavior = cmp.ConfirmBehavior.Replace,
|
||||
select = true,
|
||||
},
|
||||
['<Tab>'] = cmp.mapping(function(fallback)
|
||||
if cmp.visible() then
|
||||
cmp.select_next_item()
|
||||
elseif luasnip.expand_or_jumpable() then
|
||||
luasnip.expand_or_jump()
|
||||
else
|
||||
fallback()
|
||||
end
|
||||
end, { 'i', 's' }),
|
||||
-- ['<Tab>'] = cmp.mapping(function(fallback)
|
||||
-- if cmp.visible() then
|
||||
-- cmp.select_next_item()
|
||||
-- elseif luasnip.expand_or_jumpable() then
|
||||
-- luasnip.expand_or_jump()
|
||||
-- else
|
||||
-- fallback()
|
||||
-- end
|
||||
-- end, { 'i', 's' }),
|
||||
['<S-Tab>'] = cmp.mapping(function(fallback)
|
||||
if cmp.visible() then
|
||||
cmp.select_prev_item()
|
||||
|
|
Loading…
Reference in New Issue