diff --git a/lua/core/autocmd.lua b/lua/core/autocmd.lua index e7ba79f..4e0cbd2 100644 --- a/lua/core/autocmd.lua +++ b/lua/core/autocmd.lua @@ -6,8 +6,3 @@ vim.api.nvim_create_autocmd("Filetype", { pattern = "*", command = "setlocal formatoptions-=c formatoptions-=r formatoptions-=o" }) - -vim.api.nvim_create_autocmd("FocusLost", { - pattern = "*", - command = ":wa" -}) diff --git a/lua/core/statusline.lua b/lua/core/statusline.lua index 9672388..0912228 100644 --- a/lua/core/statusline.lua +++ b/lua/core/statusline.lua @@ -4,4 +4,4 @@ vim.api.nvim_set_option("statusline", " ") -- tabline -- always show tabline (0 = never, 1 = only with at least 2 tabs, 2 = always) and colors -vim.api.nvim_set_option("showtabline", 2) +vim.api.nvim_set_option("showtabline", 1) diff --git a/lua/plugin/bufferline.lua b/lua/plugin/bufferline.lua deleted file mode 100644 index b9b3934..0000000 --- a/lua/plugin/bufferline.lua +++ /dev/null @@ -1,26 +0,0 @@ -return { - { - "akinsho/bufferline.nvim", - config = function() - require("bufferline").setup({ - options = { - offsets = { - { - filetype = "netrw", - text = "File Explorer", - highlight = "Directory", - text_align = 'center', - separator = true - } - }, - show_buffer_close_icons = false, - }, - highlights = { - buffer_selected = { - fg = "#dfa000", - }, - }, - }) - end, - } -} diff --git a/lua/plugin/fugitive.lua b/lua/plugin/fugitive.lua index cd5bdbb..5d9ada6 100644 --- a/lua/plugin/fugitive.lua +++ b/lua/plugin/fugitive.lua @@ -1,18 +1,19 @@ return { - { - 'tpope/vim-fugitive', - keys = { - { "GG", "Git ", desc = "git" }, - { "Gs", "Git status ", desc = "git status" }, - { "Gd", "Git diff ", desc = "git diff" }, - { "GD", "Git diff --staged ", desc = "git diff --staged" }, - { "Gl", "Git log --graph ", desc = "git log --graph" }, - { "Ga", "Git add --interactive ", desc = "git add" }, - { "GA", "Git add -A ", desc = "git add -A " }, - { "Gc", "Git commit ", desc = "git commit" }, - { "GC", "Git commit --amend ", desc = "git commit --amend " }, - { "Gp", "Git push ", desc = "git push" }, - { "GP", "Git pull ", desc = "git pull" }, - }, - } + { + 'tpope/vim-fugitive', + keys = { + { "gG", "Git ", desc = "git" }, + { "gs", "Git status ", desc = "git status" }, + { "gd", "Git diff ", desc = "git diff" }, + { "gD", "Git diff --staged ", desc = "git diff --staged" }, + { "gl", "Git log --graph ", desc = "git log --graph" }, + { "ga", "Git add --interactive ", desc = "git add" }, + { "gA", "Git add -A ", desc = "git add -A " }, + { "gc", "Git commit ", desc = "git commit" }, + { "gC", "Git commit --amend ", desc = "git commit --amend " }, + { "gCN", "Git commit --amend --no-edit ", desc = "git commit --amend " }, + { "gp", "Git push ", desc = "git push" }, + { "gP", "Git pull ", desc = "git pull" }, + }, + } } diff --git a/lua/plugin/gitsigns.lua b/lua/plugin/gitsigns.lua index 9b63384..60c83ab 100644 --- a/lua/plugin/gitsigns.lua +++ b/lua/plugin/gitsigns.lua @@ -30,20 +30,9 @@ return { end, { expr = true }) -- Actions - map({ 'n', 'v' }, 'hs', ':Gitsigns stage_hunk') - map({ 'n', 'v' }, 'hr', ':Gitsigns reset_hunk') - map('n', 'hS', gs.stage_buffer) - map('n', 'hu', gs.undo_stage_hunk) - map('n', 'hR', gs.reset_buffer) - map('n', 'hp', gs.preview_hunk) - map('n', 'hb', function() gs.blame_line { full = true } end) - map('n', 'tb', gs.toggle_current_line_blame) - map('n', 'hd', gs.diffthis) - map('n', 'hD', function() gs.diffthis('~') end) - map('n', 'td', gs.toggle_deleted) + map('n', 'gB', function() gs.blame_line { full = true } end) + map('n', 'gb', gs.toggle_current_line_blame) - -- Text object - map({ 'o', 'x' }, 'ih', ':Gitsigns select_hunk') end }) end, diff --git a/lua/plugin/surround.lua b/lua/plugin/surround.lua deleted file mode 100644 index 6bf538e..0000000 --- a/lua/plugin/surround.lua +++ /dev/null @@ -1,20 +0,0 @@ -return { - { - "echasnovski/mini.surround", - event = "VeryLazy", - opts = { - mappings = { - add = "sa", - delete = "sd", - find = "sf", - find_left = "sF", - highlight = "sh", - replace = "sr", - update_n_lines = "sn", - }, - }, - config = function(_, opts) - require("mini.surround").setup(opts) - end, - } -} diff --git a/lua/plugin/telescope.lua b/lua/plugin/telescope.lua index a698477..13f2b15 100644 --- a/lua/plugin/telescope.lua +++ b/lua/plugin/telescope.lua @@ -1,21 +1,21 @@ return { - { - "nvim-telescope/telescope.nvim", - lazy = true, - cmd = "Telescope", - version = false, - keys = { - { ":", "Telescope command_history", desc = "Command History" }, - { ",", "Telescope buffers show_all_buffers=true", desc = "Switch Buffer" }, - -- find - { "ff", "Telescope find_files", desc = "Find Files" }, - { "fb", "Telescope current_buffer_fuzzy_find", desc = "Find Strings in current Buffer" }, - { "fg", "Telescope live_grep", desc = "Grep Content in Files" }, - { "/", "Telescope live_grep", desc = "Grep Content in Files" }, - { "fl", "Telescope grep_string", desc = "Grep currently hovered String" }, - { "fG", "Telescope git_files", desc = "Find Git Files" }, - { "fk", "Telescope keymaps", desc = "List Keymaps" }, - { "fr", "Telescope oldfiles", desc = "Find Recent Files" }, - }, + { + "nvim-telescope/telescope.nvim", + lazy = true, + cmd = "Telescope", + version = false, + keys = { + { ":", "Telescope command_history", desc = "Command History" }, + { ",", "Telescope buffers show_all_buffers=true", desc = "Switch Buffer" }, + -- find + { "ff", "Telescope find_files", desc = "Find Files" }, + { "fb", "Telescope current_buffer_fuzzy_find", desc = "Find Strings in current Buffer" }, + { "fg", "Telescope live_grep", desc = "Grep Content in Files" }, + { "/", "Telescope live_grep", desc = "Grep Content in Files" }, + { "fh", "Telescope grep_string", desc = "Grep currently hovered String" }, + { "fG", "Telescope git_files", desc = "Find Git Files" }, + { "fk", "Telescope keymaps", desc = "List Keymaps" }, + { "fr", "Telescope oldfiles", desc = "Find Recent Files" }, }, + }, } diff --git a/lua/plugin/todo-comments.lua b/lua/plugin/todo-comments.lua deleted file mode 100644 index 7e9149a..0000000 --- a/lua/plugin/todo-comments.lua +++ /dev/null @@ -1,11 +0,0 @@ -return { - { - "folke/todo-comments.nvim", - dependencies = { "nvim-lua/plenary.nvim" }, - opts = { - -- your configuration comes here - -- or leave it empty to use the default settings - -- refer to the configuration section below - } - } -} diff --git a/lua/plugin/trouble.lua b/lua/plugin/trouble.lua deleted file mode 100644 index 25ef1bd..0000000 --- a/lua/plugin/trouble.lua +++ /dev/null @@ -1,13 +0,0 @@ -return { - "folke/trouble.nvim", - dependencies = { "nvim-tree/nvim-web-devicons" }, - opts = {}, - config = function() - vim.keymap.set("n", "xx", function() require("trouble").toggle() end) - vim.keymap.set("n", "xw", function() require("trouble").toggle("workspace_diagnostics") end) - vim.keymap.set("n", "xd", function() require("trouble").toggle("document_diagnostics") end) - vim.keymap.set("n", "xq", function() require("trouble").toggle("quickfix") end) - vim.keymap.set("n", "xl", function() require("trouble").toggle("loclist") end) - vim.keymap.set("n", "gr", function() require("trouble").open("lsp_references") end) - end -}