practicalli / astro

Rich development workflow with Clojure support, using AstroNvim 4 and selected plugins
https://practical.li/neovim
4 stars 9 forks source link

community: include clojure pack without global option overrides #2

Closed practicalli-johnny closed 5 months ago

practicalli-johnny commented 5 months ago

Avoid my own workflow biases in lua/community.lua configurations.

move practicalli Conjure global options to practicalli.lua

practicalli-johnny commented 5 months ago

Update lua/plugins/practicalli.lua to include Practicalli recommnended options for Conjure plugin.

  {
    "AstroNvim/astrocore",
    ---@type AstroCoreOpts
    opts = {
      options = {
        -- configure general options: vim.opt.<key>
        opt = {
          spell = true, -- sets vim.opt.spell
          wrap = true, -- sets vim.opt.wrap
          guifont = "Fira Code:h16", -- neovide font family & size
        },
        g = {
          -- configure global vim variables: vim.g
          -- This can be found in the `lua/lazy_setup.lua` file
          VM_leader = "gm", -- Visual Multi Leader (multiple cursors - user plugin)

          -- Conjure plugin overrides

          -- show HUD REPL log at startup
          ["conjure#log#hud#enabled"] = false,

          -- auto repl (babashka)
          ["conjure#client#clojure#nrepl#connection#auto_repl#enabled"] = false,
          ["conjure#client#clojure#nrepl#connection#auto_repl#hidden"] = true,
          ["conjure#client#clojure#nrepl#connection#auto_repl#cmd"] = nil,
          ["conjure#client#clojure#nrepl#eval#auto_require"] = false,

          -- Test runner: "clojure", "clojuresCRipt", "kaocha"
          ["conjure#client#clojure#nrepl#test#runner"] = "kaocha",
        },
      },
      mappings = {
        n = {
          -- normal mode key bindings
          -- setting a mapping to false will disable it
          -- ["<esc>"] = false,

          -- Toggle last open buffer
          ["<leader><tab>"] = { "<cmd>b#<cr>", desc = "Last tab" },

          -- Save prompting for file name
          ["<leader>W"] = { ":write ", desc = "Save as file" },

          -- mappings seen under group name "Buffer"
          ["<leader>b"] = { name = "Buffers" },
          ["<leader>bt"] = { name = "Tabs" },
          ["<leader>bn"] = { "<cmd>tabnew<cr>", desc = "New tab" },
          ["<leader>btn"] = { "<cmd>tabNext<cr>", desc = "Next tab" },
          ["<leader>bt<tab>"] = { "<cmd>tabprevious<cr>", desc = "Previous tab" },
          -- ["<leader>bD"] = { "<cmd>Bdelete<cr>", desc = "Delete buffer" },

          -- Find Menu
          -- browse via directory structure, create and modify paths
          ["<leader>fe"] = { "<cmd>Telescope file_browser<cr>", desc = "Explorer" },

          -- Projects
          ["<leader>fp"] = { "<cmd>Telescope projects<cr>", desc = "Projects" },

          -- Editing
          ["zZ"] = { "<cmd>ZenMode<cr>", desc = " Zen mode" },

          -- Git Menu
          -- Menu mappings
          ["<leader>gh"] = false, -- disable Reset Git Hunk mapping, used for Octo in plugins/github.lua
          ["<leader>gH"] = { function() require("gitsigns").stage_hunk() end, desc = "Stage Git hunk" },
          -- ["<leader>gn"] = { name = " Neogit" }, -- Neogit menu with alternate logo
        },
        t = {
          -- terminal? mode key bindings
        },
        v = {
          -- visual mode key bindings
        },
      },
    },
  },