-- 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" -- 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" } -- 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, }, { "pwntester/octo.nvim", event = "BufRead", config = function() require("extra.octo").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", }, }