From 73a60f5ee71bb60265ec0c97be7531a5e7605d8c Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Thu, 13 Jan 2022 19:12:32 +0100 Subject: Remove bloat nvim config --- .config/nvim/config.lua | 166 ------------------------------------------------ 1 file changed, 166 deletions(-) delete mode 100644 .config/nvim/config.lua (limited to '.config/nvim/config.lua') diff --git a/.config/nvim/config.lua b/.config/nvim/config.lua deleted file mode 100644 index d622353..0000000 --- a/.config/nvim/config.lua +++ /dev/null @@ -1,166 +0,0 @@ --- general -options.format_on_save = true -options.colorscheme = "dark" -vim.opt.wrap = false - --- Keymappings -options.leader = "space" - -options.keys.normal_mode[""] = "nohlsearch" - --- LSP -options.lsp.diagnostics.virtual_text = false --- require("extra.json_schemas").setup() - --- After changing plugin config it is recommended to run :PackerCompile -options.builtin.autopairs.active = true -options.builtin.dashboard.active = true -options.builtin.terminal.active = true -options.builtin.telescope.active = true -options.builtin.bufferline.active = true -options.builtin.lualine.active = true -options.builtin.lualine.style = "dark" -options.builtin.project.patterns = { ".git" } - --- Whichkey -options.builtin.which_key.mappings.l.d = { "TroubleToggle", "Diagnostics" } -options.builtin.which_key.mappings.l.R = { - "TroubleToggle lsp_references", - "References", -} -options.builtin.which_key.mappings.l.o = { "SymbolsOutline", "Outline" } -options.builtin.which_key.mappings.T.h = { - "TSHighlightCapturesUnderCursor", - "Highlight", -} -options.builtin.which_key.mappings.T.p = { "TSPlaygroundToggle", "Playground" } -options.builtin.which_key.mappings["z"] = { "ZenMode", "Zen" } -options.builtin.which_key.mappings["r"] = { - name = "Replace", - r = { "lua require('spectre').open()", "Replace" }, - w = { - "lua require('spectre').open_visual({select_word=true})", - "Replace Word", - }, - f = { "lua require('spectre').open_file_search()", "Replace Buffer" }, -} -options.builtin.which_key.mappings.f = { - "lua require('lir.float').toggle()", - "Files", -} -options.builtin.which_key.mappings.v = { "vsplit", "Vertical Split" } -options.builtin.which_key.mappings.h = { "split", "Horizontal Split" } - --- options.builtin.nvimtree.auto_open = 0 - --- Treesitter -options.builtin.treesitter.ensure_installed = "maintained" -options.builtin.treesitter.autotag.enable = false -options.builtin.treesitter.playground.enable = false -options.builtin.treesitter.indent.disable = { "python" } - -options.builtin.which_key.mappings["z"] = { "ZenMode", "Zen" } -options.builtin.which_key.mappings["r"] = { - name = "Replace", - r = { "lua require('spectre').open()", "Replace" }, - w = { - "lua require('spectre').open_visual({select_word=true})", - "Replace Word", - }, - f = { "lua require('spectre').open_file_search()", "Replace Buffer" }, -} - -options.builtin.telescope.on_config_done = function() - local actions = require "telescope.actions" - options.builtin.telescope.defaults.mappings.i[""] = actions.move_selection_next - options.builtin.telescope.defaults.mappings.i[""] = - actions.move_selection_previous - options.builtin.telescope.defaults.mappings.i[""] = actions.cycle_history_next - options.builtin.telescope.defaults.mappings.i[""] = actions.cycle_history_prev -end - --- Extra plugings - -options.plugins = { - { - "folke/trouble.nvim", - cmd = "TroubleToggle", - }, - - { - "nvim-telescope/telescope-project.nvim", - event = "BufWinEnter", - setup = function() - vim.cmd [[packadd telescope.nvim]] - end, - }, - - { - "nacro90/numb.nvim", - event = "BufRead", - config = function() - require("extra.numb").config() - end, - }, - - { - "unblevable/quick-scope", - config = function() - require "extra.quickscope" - end, - }, - - { - "phaazon/hop.nvim", - event = "BufRead", - config = function() - require("extra.hop").config() - end, - }, - - { - "tamago324/lir.nvim", - config = function() - require "extra.lir" - end, - }, - - { - "norcalli/nvim-colorizer.lua", - config = function() - require("extra.colorizer").config() - end, - }, - - { - "windwp/nvim-spectre", - event = "BufRead", - config = function() - require("extra.spectre").config() - end, - }, - - { - "folke/zen-mode.nvim", - config = function() - require("extra.zen").config() - end, - }, - - { - "karb94/neoscroll.nvim", - config = function() - require("extra.neoscroll").config() - end, - }, - - { - "kevinhwang91/nvim-bqf", - event = "BufRead", - }, - - { - "sindrets/diffview.nvim", - event = "BufRead", - }, -} -- cgit v1.2.3-70-g09d2