-- 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.compe.active = true options.builtin.autopairs.active = false options.builtin.dashboard.active = true options.builtin.terminal.active = true options.builtin.telescope.active = true options.builtin.bufferline.active = true options.builtin.nvimtree.active = true options.builtin.lualine.active = true options.builtin.lualine.style = "clean" -- 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 = false options.builtin.treesitter.playground.enable = false -- Formatters -- python options.lang.python.formatters = { { exe = "black", args = {}, }, } options.lang.python.linters = { { exe = "flake8", args = {}, }, } options.lang.python.lsp.on_attach = nil -- lua options.lang.lua.formatters = { { exe = "stylua", }, } --json options.lang.json.formatters = { { exe = "prettier", args = {}, }, } 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, }, { "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", }, }