From e56382a546ccf0facbd0c2d2a974fbd3f477b902 Mon Sep 17 00:00:00 2001 From: Hau Nguyen Date: Wed, 20 Sep 2023 13:49:26 +0700 Subject: [PATCH] chore: cleanup neovim --- data/nvim/init.lua | 62 ++++++---------------------------------------- 1 file changed, 7 insertions(+), 55 deletions(-) diff --git a/data/nvim/init.lua b/data/nvim/init.lua index 86efd8f..8e23a67 100644 --- a/data/nvim/init.lua +++ b/data/nvim/init.lua @@ -141,7 +141,7 @@ require("lazy").setup({ vim.cmd("colorscheme caret") end, - enabled = false, + enabled = true, }, -- https://github.com/folke/tokyonight.nvim @@ -195,7 +195,7 @@ require("lazy").setup({ vim.cmd("colorscheme mellifluous") end, - enabled = true, + enabled = false, }, -- https://github.com/ibhagwan/fzf-lua @@ -213,25 +213,6 @@ require("lazy").setup({ end, }, - -- https://github.com/nvim-lualine/lualine.nvim - { - "nvim-lualine/lualine.nvim", - config = function() - require("lualine").setup({ - options = { - icons_enabled = false, - theme = "auto", - component_separators = { left = "", right = "" }, - section_separators = { left = "", right = "" }, - }, - extensions = { "fzf", "nvim-tree" }, - }) - - -- Disable showmode when use lualine - vim.opt.showmode = false - end, - }, - -- https://github.com/nvim-tree/nvim-tree.lua { "nvim-tree/nvim-tree.lua", @@ -373,14 +354,6 @@ require("lazy").setup({ end, }, - -- https://github.com/lukas-reineke/indent-blankline.nvim - { - "lukas-reineke/indent-blankline.nvim", - config = function() - require("indent_blankline").setup() - end, - }, - -- https://github.com/lewis6991/gitsigns.nvim { "lewis6991/gitsigns.nvim", @@ -480,6 +453,11 @@ require("lazy").setup({ -- https://github.com/echasnovski/mini.nvim/blob/main/readmes/mini-cursorword.md require("mini.cursorword").setup() + -- https://github.com/echasnovski/mini.nvim/blob/main/readmes/mini-statusline.md + require("mini.statusline").setup({ + use_icons = false, + }) + -- https://github.com/echasnovski/mini.nvim/blob/main/readmes/mini-surround.md require("mini.surround").setup() @@ -560,32 +538,6 @@ require("lazy").setup({ end, }, - -- https://github.com/nvim-treesitter/nvim-treesitter-textobjects - { - "nvim-treesitter/nvim-treesitter-textobjects", - dependencies = { - "nvim-treesitter/nvim-treesitter-context", - }, - config = function() - require("nvim-treesitter.configs").setup({ - textobjects = { - select = { - enable = true, - lookahead = true, - keymaps = { - ["af"] = "@function.outer", - ["if"] = "@function.inner", - ["ac"] = "@class.outer", - ["ic"] = "@class.inner", - ["ab"] = "@block.outer", - ["ib"] = "@block.inner", - }, - }, - }, - }) - end, - }, - -- https://github.com/neovim/nvim-lspconfig { "neovim/nvim-lspconfig",