-- 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.dashboard.active = true options.builtin.terminal.active = true options.builtin.rooter.active = true options.builtin.bufferline.active = true options.builtin.nvimtree.active = true -- 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.nvimtree.auto_open = 0 -- Treesitter options.builtin.treesitter.ensure_installed = "maintained" options.builtin.treesitter.autotag.enable = true options.builtin.treesitter.playground.enable = true options.plugins = { { "folke/twilight.nvim", config = function() require("extra.twilight").config() end, -- cmd = "ZenMode", }, { "nacro90/numb.nvim", event = "BufRead", config = function() require("extra.numb").config() end, }, { "pwntester/octo.nvim", event = "BufRead", config = function() require("extra.octo").config() end, }, { "ray-x/lsp_signature.nvim", event = "InsertEnter", config = function() require("extra.lsp_signature").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", }, }