[fix] Changes nvim and handlr
This commit is contained in:
@@ -1 +1,3 @@
|
|||||||
export BROWSER="handlr"
|
function open
|
||||||
|
handlr open $argv
|
||||||
|
end
|
||||||
|
|||||||
@@ -1,8 +1,11 @@
|
|||||||
{
|
{
|
||||||
|
"LuaSnip": { "branch": "master", "commit": "ea7d7ea510c641c4f15042becd27f35b3e5b3c2b" },
|
||||||
"cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" },
|
"cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" },
|
||||||
"cmp-cmdline": { "branch": "main", "commit": "8ee981b4a91f536f52add291594e89fb6645e451" },
|
"cmp-cmdline": { "branch": "main", "commit": "8ee981b4a91f536f52add291594e89fb6645e451" },
|
||||||
|
"cmp-git": { "branch": "main", "commit": "f900a4cf117300fdc3ba31d26f8b6223ccd9c574" },
|
||||||
"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": "18095520391186d634a0045dacaa346291096566" },
|
||||||
"comfortable-motion.vim": { "branch": "master", "commit": "e20aeafb07c6184727b29f7674530150f7ab2036" },
|
"comfortable-motion.vim": { "branch": "master", "commit": "e20aeafb07c6184727b29f7674530150f7ab2036" },
|
||||||
"copilot.vim": { "branch": "release", "commit": "719dd8d0beab993dbad47a9e86ecb0dbd4a99da5" },
|
"copilot.vim": { "branch": "release", "commit": "719dd8d0beab993dbad47a9e86ecb0dbd4a99da5" },
|
||||||
"d2-vim": { "branch": "master", "commit": "981c87dccb63df2887cc41b96e84bf550f736c57" },
|
"d2-vim": { "branch": "master", "commit": "981c87dccb63df2887cc41b96e84bf550f736c57" },
|
||||||
|
|||||||
@@ -105,7 +105,7 @@ return require('lazy').setup({
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
dependencies = { { "nvim-lua/plenary.nvim" } },
|
dependencies = { "nvim-lua/plenary.nvim" },
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{ 'folke/which-key.nvim', config = function() require("which-key").setup() end, event = "BufEnter" },
|
{ 'folke/which-key.nvim', config = function() require("which-key").setup() end, event = "BufEnter" },
|
||||||
@@ -243,21 +243,74 @@ return require('lazy').setup({
|
|||||||
{ 'hrsh7th/cmp-buffer', lazy = false },
|
{ 'hrsh7th/cmp-buffer', lazy = false },
|
||||||
{ 'hrsh7th/cmp-path', lazy = false },
|
{ 'hrsh7th/cmp-path', lazy = false },
|
||||||
{ 'hrsh7th/cmp-cmdline', lazy = false },
|
{ 'hrsh7th/cmp-cmdline', lazy = false },
|
||||||
|
{ 'L3MON4D3/LuaSnip' },
|
||||||
|
{ 'saadparwaiz1/cmp_luasnip' },
|
||||||
|
{
|
||||||
|
"petertriho/cmp-git",
|
||||||
|
dependencies = { "nvim-lua/plenary.nvim" },
|
||||||
|
config = function() require "cmp_git".setup() end,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
'hrsh7th/nvim-cmp',
|
'hrsh7th/nvim-cmp',
|
||||||
lazy = false,
|
lazy = false,
|
||||||
setup = function()
|
config = function()
|
||||||
local cmp = require("cmp")
|
local cmp = require("cmp")
|
||||||
-- print!"setting up cmp");
|
|
||||||
cmp.setup({
|
cmp.setup({
|
||||||
view = cmp.config.view({
|
view = {
|
||||||
entries = { name = 'custom', selection_order = 'near_cursor' }
|
entries = { name = 'custom', selection_order = 'near_cursor' }
|
||||||
}),
|
},
|
||||||
|
snippet = {
|
||||||
|
expand = function(args)
|
||||||
|
require('luasnip').lsp_expand(args.body)
|
||||||
|
end
|
||||||
|
},
|
||||||
|
window = {
|
||||||
|
completion = cmp.config.window.bordered(),
|
||||||
|
documentation = cmp.config.window.bordered(),
|
||||||
|
},
|
||||||
sources = cmp.config.sources({
|
sources = cmp.config.sources({
|
||||||
{ name = 'buffer' },
|
{ name = 'buffer' },
|
||||||
{ name = 'nvim_lsp' },
|
{ name = 'nvim_lsp' },
|
||||||
|
{ name = 'luasnip' },
|
||||||
{ name = 'path' },
|
{ name = 'path' },
|
||||||
|
{ name = 'git' },
|
||||||
}),
|
}),
|
||||||
|
mapping = cmp.mapping.preset.insert({
|
||||||
|
['<CR>'] = cmp.mapping.confirm(),
|
||||||
|
['<C-y>'] = cmp.mapping.complete(),
|
||||||
|
-- ['<C-Space>'] = cmp.mapping.complete(),
|
||||||
|
['<C-n>'] = cmp.config.next,
|
||||||
|
['<C-p>'] = cmp.config.prev,
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
|
cmp.setup.cmdline({ '/', '?' }, {
|
||||||
|
mapping = cmp.mapping.preset.cmdline {
|
||||||
|
['<C-n>'] = cmp.config.disable,
|
||||||
|
['<C-p>'] = cmp.config.disable,
|
||||||
|
},
|
||||||
|
sources = {
|
||||||
|
{ name = 'buffer' }
|
||||||
|
}
|
||||||
|
})
|
||||||
|
cmp.setup.cmdline(':', {
|
||||||
|
mapping = cmp.mapping.preset.cmdline {
|
||||||
|
['<C-n>'] = cmp.config.disable,
|
||||||
|
['<C-p>'] = cmp.config.disable,
|
||||||
|
},
|
||||||
|
-- mapping = cmp.mapping.preset.cmdline(),
|
||||||
|
sources = cmp.config.sources({
|
||||||
|
{ name = 'path' }
|
||||||
|
}, {
|
||||||
|
{ name = 'cmdline' }
|
||||||
|
})
|
||||||
|
})
|
||||||
|
cmp.setup.filetype('gitcommit', {
|
||||||
|
sources = cmp.config.sources({
|
||||||
|
{ name = 'git' }, -- You can specify the `git` source if [you were installed it](https://github.com/petertriho/cmp-git).
|
||||||
|
}, {
|
||||||
|
{ name = 'buffer' },
|
||||||
|
})
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
},
|
},
|
||||||
@@ -458,6 +511,6 @@ return require('lazy').setup({
|
|||||||
|
|
||||||
}, {
|
}, {
|
||||||
defaults = {
|
defaults = {
|
||||||
lazy = false,
|
lazy = true,
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -196,7 +196,6 @@ local opts = {
|
|||||||
},
|
},
|
||||||
check = {
|
check = {
|
||||||
},
|
},
|
||||||
-- inlayHints.closureReturnTypeHints.enable
|
|
||||||
inlayHints = {
|
inlayHints = {
|
||||||
closureReturnTypeHints = {
|
closureReturnTypeHints = {
|
||||||
enable = true,
|
enable = true,
|
||||||
|
|||||||
Reference in New Issue
Block a user