Nvim: formatted
This commit is contained in:
parent
a9436411a7
commit
db079877ab
5 changed files with 23 additions and 24 deletions
|
@ -10,8 +10,11 @@ return {
|
||||||
enable = true,
|
enable = true,
|
||||||
},
|
},
|
||||||
shortcut = {
|
shortcut = {
|
||||||
{ icon = ' ', desc = 'Update', group = '@property', action = 'Lazy update', key = 'U' },
|
{ icon = ' ', desc = 'Update', group = '@property', action = 'Lazy update', key =
|
||||||
{ icon = ' ', desc = 'Files', group = '@property', action = 'Telescope find_files', key = 'ff' },
|
'U' },
|
||||||
|
{ icon = ' ', desc = 'Files', group = '@property', action = 'Telescope find_files',
|
||||||
|
key =
|
||||||
|
'ff' },
|
||||||
},
|
},
|
||||||
footer = { '',
|
footer = { '',
|
||||||
' Now better then ever ',
|
' Now better then ever ',
|
||||||
|
|
|
@ -12,8 +12,8 @@ return {
|
||||||
require('lualine').setup {
|
require('lualine').setup {
|
||||||
options = {
|
options = {
|
||||||
theme = custom_gruvbox,
|
theme = custom_gruvbox,
|
||||||
component_separators = { left = '', right = ''},
|
component_separators = { left = '', right = '' },
|
||||||
section_separators = { left = '', right = ''},
|
section_separators = { left = '', right = '' },
|
||||||
-- section_separators = ' ',
|
-- section_separators = ' ',
|
||||||
-- component_separators = ' '
|
-- component_separators = ' '
|
||||||
},
|
},
|
||||||
|
@ -58,7 +58,6 @@ return {
|
||||||
symbols = { error = "✘ ", warn = " ", info = " ", hint = " " },
|
symbols = { error = "✘ ", warn = " ", info = " ", hint = " " },
|
||||||
padding = 1,
|
padding = 1,
|
||||||
update_in_insert = true
|
update_in_insert = true
|
||||||
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'diff',
|
'diff',
|
||||||
|
@ -114,7 +113,6 @@ return {
|
||||||
symbols = { error = "✘ ", warn = " ", info = " ", hint = " " },
|
symbols = { error = "✘ ", warn = " ", info = " ", hint = " " },
|
||||||
padding = 1,
|
padding = 1,
|
||||||
update_in_insert = true
|
update_in_insert = true
|
||||||
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'diff',
|
'diff',
|
||||||
|
|
|
@ -83,17 +83,17 @@ return {
|
||||||
vim_item.kind = string.format('%s %s', kind_icons[vim_item.kind], vim_item.kind) -- This concatonates the icons with the name of the item kind
|
vim_item.kind = string.format('%s %s', kind_icons[vim_item.kind], vim_item.kind) -- This concatonates the icons with the name of the item kind
|
||||||
-- Source
|
-- Source
|
||||||
vim_item.menu = ({
|
vim_item.menu = ({
|
||||||
-- buffer = "[Buffer]",
|
-- buffer = "[Buffer]",
|
||||||
-- nvim_lsp = "[LSP]",
|
-- nvim_lsp = "[LSP]",
|
||||||
-- luasnip = "[LuaSnip]",
|
-- luasnip = "[LuaSnip]",
|
||||||
-- nvim_lua = "[Lua]",
|
-- nvim_lua = "[Lua]",
|
||||||
-- latex_symbols = "[LaTeX]",
|
-- latex_symbols = "[LaTeX]",
|
||||||
buffer = "",
|
buffer = "",
|
||||||
nvim_lsp = "",
|
nvim_lsp = "",
|
||||||
luasnip = "",
|
luasnip = "",
|
||||||
nvim_lua = "",
|
nvim_lua = "",
|
||||||
latex_symbols = "",
|
latex_symbols = "",
|
||||||
})[entry.source.name]
|
})[entry.source.name]
|
||||||
return vim_item
|
return vim_item
|
||||||
end
|
end
|
||||||
},
|
},
|
||||||
|
@ -115,7 +115,7 @@ return {
|
||||||
documentation = cmp.config.window.bordered(),
|
documentation = cmp.config.window.bordered(),
|
||||||
},
|
},
|
||||||
mapping = cmp.mapping.preset.insert({
|
mapping = cmp.mapping.preset.insert({
|
||||||
['<C-b>'] = cmp.mapping.scroll_docs( -4),
|
['<C-b>'] = cmp.mapping.scroll_docs(-4),
|
||||||
['<C-f>'] = cmp.mapping.scroll_docs(4),
|
['<C-f>'] = cmp.mapping.scroll_docs(4),
|
||||||
-- ['<C-Space>'] = cmp.mapping.complete(),
|
-- ['<C-Space>'] = cmp.mapping.complete(),
|
||||||
-- ['<C-e>'] = cmp.mapping.abort(),
|
-- ['<C-e>'] = cmp.mapping.abort(),
|
||||||
|
@ -140,12 +140,11 @@ return {
|
||||||
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()
|
||||||
elseif luasnip.jumpable( -1) then
|
elseif luasnip.jumpable(-1) then
|
||||||
luasnip.jump( -1)
|
luasnip.jump(-1)
|
||||||
else
|
else
|
||||||
fallback()
|
fallback()
|
||||||
end
|
end
|
||||||
|
@ -160,7 +159,7 @@ return {
|
||||||
{
|
{
|
||||||
name = 'buffer',
|
name = 'buffer',
|
||||||
option = {
|
option = {
|
||||||
get_bufnrs = function ()
|
get_bufnrs = function()
|
||||||
return vim.api.nvim_list_bufs()
|
return vim.api.nvim_list_bufs()
|
||||||
end
|
end
|
||||||
},
|
},
|
||||||
|
|
|
@ -2,7 +2,7 @@ return {
|
||||||
{
|
{
|
||||||
"folke/twilight.nvim",
|
"folke/twilight.nvim",
|
||||||
keys = {
|
keys = {
|
||||||
{ "<leader>T", "<cmd>Twilight <cr>", desc = "Twilight"},
|
{ "<leader>T", "<cmd>Twilight <cr>", desc = "Twilight" },
|
||||||
},
|
},
|
||||||
config = function()
|
config = function()
|
||||||
require("twilight").setup {
|
require("twilight").setup {
|
||||||
|
|
|
@ -4,6 +4,5 @@ return {
|
||||||
keys = {
|
keys = {
|
||||||
{ "<leader>u", "<cmd>UndotreeToggle<cr>", desc = "toggle undotree" },
|
{ "<leader>u", "<cmd>UndotreeToggle<cr>", desc = "toggle undotree" },
|
||||||
},
|
},
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue