diff --git a/nvim/.config/nvim/lua/plugin/dashboard.lua b/nvim/.config/nvim/lua/plugin/dashboard.lua index e3b20af..b4ef63e 100644 --- a/nvim/.config/nvim/lua/plugin/dashboard.lua +++ b/nvim/.config/nvim/lua/plugin/dashboard.lua @@ -10,8 +10,11 @@ return { enable = true, }, shortcut = { - { icon = '󰚰 ', desc = 'Update', group = '@property', action = 'Lazy update', key = 'U' }, - { icon = ' ', desc = 'Files', group = '@property', action = 'Telescope find_files', key = 'ff' }, + { icon = '󰚰 ', desc = 'Update', group = '@property', action = 'Lazy update', key = + 'U' }, + { icon = ' ', desc = 'Files', group = '@property', action = 'Telescope find_files', + key = + 'ff' }, }, footer = { '', ' Now better then ever ', diff --git a/nvim/.config/nvim/lua/plugin/lualine.lua b/nvim/.config/nvim/lua/plugin/lualine.lua index b2e2fdf..77e9d0e 100644 --- a/nvim/.config/nvim/lua/plugin/lualine.lua +++ b/nvim/.config/nvim/lua/plugin/lualine.lua @@ -12,8 +12,8 @@ return { require('lualine').setup { options = { theme = custom_gruvbox, - component_separators = { left = '', right = ''}, - section_separators = { left = '', right = ''}, + component_separators = { left = '', right = '' }, + section_separators = { left = '', right = '' }, -- section_separators = ' ', -- component_separators = ' ' }, @@ -58,7 +58,6 @@ return { symbols = { error = "✘ ", warn = " ", info = " ", hint = "󰌶 " }, padding = 1, update_in_insert = true - }, { 'diff', @@ -114,7 +113,6 @@ return { symbols = { error = "✘ ", warn = " ", info = " ", hint = "󰌶 " }, padding = 1, update_in_insert = true - }, { 'diff', diff --git a/nvim/.config/nvim/lua/plugin/nvim-cmp.lua b/nvim/.config/nvim/lua/plugin/nvim-cmp.lua index 5aac5c3..6d3cb94 100644 --- a/nvim/.config/nvim/lua/plugin/nvim-cmp.lua +++ b/nvim/.config/nvim/lua/plugin/nvim-cmp.lua @@ -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 -- Source vim_item.menu = ({ - -- buffer = "[Buffer]", - -- nvim_lsp = "[LSP]", - -- luasnip = "[LuaSnip]", - -- nvim_lua = "[Lua]", - -- latex_symbols = "[LaTeX]", - buffer = "", - nvim_lsp = "", - luasnip = "", - nvim_lua = "", - latex_symbols = "", - })[entry.source.name] + -- buffer = "[Buffer]", + -- nvim_lsp = "[LSP]", + -- luasnip = "[LuaSnip]", + -- nvim_lua = "[Lua]", + -- latex_symbols = "[LaTeX]", + buffer = "", + nvim_lsp = "", + luasnip = "", + nvim_lua = "", + latex_symbols = "", + })[entry.source.name] return vim_item end }, @@ -115,7 +115,7 @@ return { documentation = cmp.config.window.bordered(), }, mapping = cmp.mapping.preset.insert({ - [''] = cmp.mapping.scroll_docs( -4), + [''] = cmp.mapping.scroll_docs(-4), [''] = cmp.mapping.scroll_docs(4), -- [''] = cmp.mapping.complete(), -- [''] = cmp.mapping.abort(), @@ -140,12 +140,11 @@ return { fallback() end end, { "i", "s" }), - [""] = cmp.mapping(function(fallback) if cmp.visible() then cmp.select_prev_item() - elseif luasnip.jumpable( -1) then - luasnip.jump( -1) + elseif luasnip.jumpable(-1) then + luasnip.jump(-1) else fallback() end @@ -160,7 +159,7 @@ return { { name = 'buffer', option = { - get_bufnrs = function () + get_bufnrs = function() return vim.api.nvim_list_bufs() end }, diff --git a/nvim/.config/nvim/lua/plugin/twilight.lua b/nvim/.config/nvim/lua/plugin/twilight.lua index b4f064f..2714a65 100644 --- a/nvim/.config/nvim/lua/plugin/twilight.lua +++ b/nvim/.config/nvim/lua/plugin/twilight.lua @@ -2,7 +2,7 @@ return { { "folke/twilight.nvim", keys = { - { "T", "Twilight ", desc = "Twilight"}, + { "T", "Twilight ", desc = "Twilight" }, }, config = function() require("twilight").setup { diff --git a/nvim/.config/nvim/lua/plugin/undotree.lua b/nvim/.config/nvim/lua/plugin/undotree.lua index 7aa474d..33e5b12 100644 --- a/nvim/.config/nvim/lua/plugin/undotree.lua +++ b/nvim/.config/nvim/lua/plugin/undotree.lua @@ -4,6 +4,5 @@ return { keys = { { "u", "UndotreeToggle", desc = "toggle undotree" }, }, - } }