Skip to content

Commit

Permalink
fix(nvim): fix cmp git, path
Browse files Browse the repository at this point in the history
  • Loading branch information
lanej committed Apr 21, 2024
1 parent f8aa7c9 commit 8f87b61
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions nvim/lua/lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ cmp.setup({
},
window = {
-- completion = cmp.config.window.bordered(),
-- documentation = cmp.config.window.bordered(),
documentation = cmp.config.window.bordered(),
},
formatting = {
format = function(entry, vim_item)
Expand Down Expand Up @@ -63,8 +63,7 @@ cmp.setup({
{ name = 'nvim_lsp' },
{ name = 'vsnip' },
{ name = 'tmux' },
},
{
{ name = 'path' },
{
name = 'buffer',
option = {
Expand All @@ -85,12 +84,8 @@ cmp.setup({
cmp.setup.filetype('gitcommit', {
sources = cmp.config.sources(
{
{ name = 'cmp_git' }, -- You can specify the `cmp_git` source if you were installed it.
},
{
{ name = 'git' }, -- You can specify the `cmp_git` source if you were installed it.
{ name = 'tmux' },
},
{
{ name = 'buffer' },
})
})
Expand Down Expand Up @@ -260,4 +255,6 @@ vim.keymap.set('n', '<space>wa', vim.lsp.buf.add_workspace_folder, {noremap = tr
vim.keymap.set('n', '<space>wr', vim.lsp.buf.remove_workspace_folder, {noremap = true, silent = true })
vim.keymap.set('n', '<space>wl', function()
print(vim.inspect(vim.lsp.buf.list_workspace_folders()))
end, {noremap = true, silent = true })
end, { noremap = true, silent = true })

require("cmp_git").setup()

0 comments on commit 8f87b61

Please sign in to comment.