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
|
-- Some Primeagen
|
||||||
'ThePrimeagen/harpoon',
|
'ThePrimeagen/harpoon',
|
||||||
|
|
||||||
|
-- Copilot
|
||||||
|
'github/copilot.vim',
|
||||||
|
|
||||||
-- NOTE: This is where your plugins related to LSP can be installed.
|
-- NOTE: This is where your plugins related to LSP can be installed.
|
||||||
-- The configuration is done below. Search for lspconfig to find it below.
|
-- 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
|
-- 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/`.
|
-- 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' },
|
{ import = 'custom.plugins' },
|
||||||
}, {})
|
}, {})
|
||||||
|
|
||||||
|
@ -508,6 +517,7 @@ local servers = {
|
||||||
pyright = {},
|
pyright = {},
|
||||||
-- rust_analyzer = {},
|
-- rust_analyzer = {},
|
||||||
-- tsserver = {},
|
-- tsserver = {},
|
||||||
|
-- emmet_language_server = {},
|
||||||
|
|
||||||
lua_ls = {
|
lua_ls = {
|
||||||
Lua = {
|
Lua = {
|
||||||
|
@ -561,15 +571,15 @@ cmp.setup {
|
||||||
behavior = cmp.ConfirmBehavior.Replace,
|
behavior = cmp.ConfirmBehavior.Replace,
|
||||||
select = true,
|
select = true,
|
||||||
},
|
},
|
||||||
['<Tab>'] = cmp.mapping(function(fallback)
|
-- ['<Tab>'] = cmp.mapping(function(fallback)
|
||||||
if cmp.visible() then
|
-- if cmp.visible() then
|
||||||
cmp.select_next_item()
|
-- cmp.select_next_item()
|
||||||
elseif luasnip.expand_or_jumpable() then
|
-- elseif luasnip.expand_or_jumpable() then
|
||||||
luasnip.expand_or_jump()
|
-- luasnip.expand_or_jump()
|
||||||
else
|
-- else
|
||||||
fallback()
|
-- fallback()
|
||||||
end
|
-- end
|
||||||
end, { 'i', 's' }),
|
-- end, { 'i', 's' }),
|
||||||
['<S-Tab>'] = cmp.mapping(function(fallback)
|
['<S-Tab>'] = cmp.mapping(function(fallback)
|
||||||
if cmp.visible() then
|
if cmp.visible() then
|
||||||
cmp.select_prev_item()
|
cmp.select_prev_item()
|
||||||
|
|
Loading…
Reference in New Issue