From 34a80fac0e34b6047aed202a351fbcbe889a3ed0 Mon Sep 17 00:00:00 2001 From: Christoph Urlacher Date: Sun, 2 Jun 2024 03:59:29 +0200 Subject: [PATCH] Regenerate nvim config --- config/neovim/bootstrap.lua | 18 +- config/neovim/config.lua | 2267 ++++++++++++++++++----------------- 2 files changed, 1177 insertions(+), 1108 deletions(-) diff --git a/config/neovim/bootstrap.lua b/config/neovim/bootstrap.lua index 577000ae..adaf2ffd 100644 --- a/config/neovim/bootstrap.lua +++ b/config/neovim/bootstrap.lua @@ -1,16 +1,16 @@ -- Bootstrap lazy.nvim local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" if not (vim.uv or vim.loop).fs_stat(lazypath) then - vim.fn.system({ - "git", - "clone", - "--filter=blob:none", - "https://github.com/folke/lazy.nvim.git", - "--branch=stable", -- latest stable release - lazypath, - }) + vim.fn.system({ + "git", + "clone", + "--filter=blob:none", + "https://github.com/folke/lazy.nvim.git", + "--branch=stable", -- latest stable release + lazypath, + }) end vim.opt.rtp:prepend(lazypath) -- Setup lazy.nvim -require("lazy").setup(plugins, opts) +-- require("lazy").setup(plugins, opts) -- Do in config.lua diff --git a/config/neovim/config.lua b/config/neovim/config.lua index 06cf0aa8..7cc8c368 100644 --- a/config/neovim/config.lua +++ b/config/neovim/config.lua @@ -1,1101 +1,1170 @@ -- Set up globals {{{ do - local nixvim_globals = { ["mallocalleader"] = " ", ["mapleader"] = " " } + local nixvim_globals = { ["mallocalleader"] = " ", ["mapleader"] = " " } - for k, v in pairs(nixvim_globals) do - vim.g[k] = v - end + for k, v in pairs(nixvim_globals) do + vim.g[k] = v + end end -- }}} -- Set up options {{{ do - local nixvim_options = { - ["autoindent"] = false, - ["backspace"] = { "indent", "eol", "start" }, - ["cindent"] = true, - ["cinkeys"] = "0{,0},0),0],:,!^F,o,O,e", - ["completeopt"] = { "menuone", "noselect", "noinsert" }, - ["cursorline"] = true, - ["encoding"] = "utf-8", - ["expandtab"] = true, - ["fileencoding"] = "utf-8", - ["foldcolumn"] = "0", - ["foldenable"] = true, - ["foldlevel"] = 99, - ["foldlevelstart"] = 99, - ["formatexpr"] = "v:lua.require('conform').formatexpr()", - ["grepformat"] = "%f:%l:%c:%m", - ["grepprg"] = "rg --vimgrep", - ["hidden"] = true, - ["hlsearch"] = true, - ["ignorecase"] = true, - ["incsearch"] = true, - ["laststatus"] = 3, - ["mouse"] = "a", - ["number"] = true, - ["pumheight"] = 0, - ["relativenumber"] = true, - ["ruler"] = true, - ["scrolloff"] = 10, - ["shiftwidth"] = 4, - ["showmode"] = false, - ["signcolumn"] = "yes", - ["smartcase"] = true, - ["smartindent"] = false, - ["smarttab"] = true, - ["softtabstop"] = 4, - ["splitbelow"] = true, - ["splitright"] = true, - ["tabstop"] = 4, - ["termguicolors"] = true, - ["timeoutlen"] = 50, - ["undodir"] = "/home/lab/smchurla/.vim/undo", - ["undofile"] = true, - } + local nixvim_options = { + ["autoindent"] = false, + ["backspace"] = { "indent", "eol", "start" }, + ["cindent"] = true, + ["cinkeys"] = "0{,0},0),0],:,!^F,o,O,e", + ["completeopt"] = { "menuone", "noselect", "noinsert" }, + ["cursorline"] = true, + ["encoding"] = "utf-8", + ["expandtab"] = true, + ["fileencoding"] = "utf-8", + ["foldcolumn"] = "0", + ["foldenable"] = true, + ["foldlevel"] = 99, + ["foldlevelstart"] = 99, + ["formatexpr"] = "v:lua.require('conform').formatexpr()", + ["grepformat"] = "%f:%l:%c:%m", + ["grepprg"] = "rg --vimgrep", + ["hidden"] = true, + ["hlsearch"] = true, + ["ignorecase"] = true, + ["incsearch"] = true, + ["laststatus"] = 3, + ["mouse"] = "a", + ["number"] = true, + ["pumheight"] = 0, + ["relativenumber"] = true, + ["ruler"] = true, + ["scrolloff"] = 10, + ["shiftwidth"] = 4, + ["showmode"] = false, + ["signcolumn"] = "yes", + ["smartcase"] = true, + ["smartindent"] = false, + ["smarttab"] = true, + ["softtabstop"] = 4, + ["splitbelow"] = true, + ["splitright"] = true, + ["tabstop"] = 4, + ["termguicolors"] = true, + ["timeoutlen"] = 50, + ["undodir"] = "/home/lab/smchurla/.vim/undo", + ["undofile"] = true, + } - for k, v in pairs(nixvim_options) do - vim.opt[k] = v - end + for k, v in pairs(nixvim_options) do + vim.opt[k] = v + end end -- }}} vim.loader.enable() vim.cmd([[ - + ]]) require("lazy").setup({ - dev = { - path = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins", - patterns = { "." }, - fallback = false, - }, - spec = { - { - "lualine", - ["config"] = function(_, opts) - require("lualine").setup(opts) - end, - ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/lualine.nvim", - ["lazy"] = false, - ["name"] = "lualine", - ["opts"] = { - ["extensions"] = { "fzf", "chadtree", "neo-tree", "toggleterm", "trouble" }, - ["options"] = { - ["always_divide_middle"] = true, - ["component_separators"] = { ["left"] = "", ["right"] = "" }, - ["globalstatus"] = true, - ["ignore_focus"] = { "neo-tree", "chadtree" }, - ["section_separators"] = { ["left"] = "", ["right"] = "" }, - }, - ["sections"] = { - ["lualine_a"] = { { ["name"] = "mode" } }, - ["lualine_b"] = { "branch", "diff", "diagnostics" }, - ["lualine_c"] = { { ["extraConfig"] = { ["path"] = 1 }, ["name"] = "filename" } }, - ["lualine_x"] = { "filetype", "encoding", "fileformat" }, - ["lualine_y"] = { "progress", "searchcount", "selectioncount" }, - ["lualine_z"] = { { ["name"] = "location" } }, - }, - ["tabline"] = { ["lualine_a"] = { "buffers" }, ["lualine_z"] = { "tabs" } }, - }, - }, - { - "noice", - ["config"] = function(_, opts) - require("noice").setup(opts) - end, - ["dependencies"] = { - { - "nui", - ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/nui.nvim", - ["lazy"] = false, - ["name"] = "nui", - }, - }, - ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/noice.nvim", - ["lazy"] = false, - ["name"] = "noice", - ["opts"] = { - ["lsp"] = { - ["documentation"] = { - ["opts"] = { - ["border"] = "rounded", - ["format"] = { "{message}" }, - ["lang"] = "markdown", - ["render"] = "plain", - ["replace"] = true, - ["win_options"] = { ["concealcursor"] = "n", ["conceallevel"] = 3 }, - }, - ["view"] = "hover", - }, - ["override"] = { - ["cmp.entry.get_documentation"] = true, - ["vim.lsp.util.convert_input_to_markdown_lines"] = true, - ["vim.lsp.util.stylize_markdown"] = true, - }, - }, - ["notify"] = { ["enabled"] = true }, - ["popupmenu"] = { ["backend"] = "nui", ["enabled"] = true }, - ["presets"] = { - ["bottom_search"] = false, - ["command_palette"] = true, - ["inc_rename"] = true, - ["long_message_to_split"] = true, - ["lsp_doc_border"] = true, - }, - ["routes"] = { - { ["filter"] = { ["event"] = "msg_show", ["kind"] = "search_count" }, ["opts"] = { ["skip"] = true } }, - }, - }, - }, - { - "notify", - ["config"] = function(_, opts) - vim.notify = require("notify") - require("notify").setup(opts) - end, - ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/nvim-notify", - ["lazy"] = false, - ["name"] = "notify", - }, - { - "telescope", - ["config"] = function(_, opts) - local telescope = require("telescope") - telescope.setup(opts) + dev = { + path = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins", + patterns = { "." }, + fallback = false, + }, + spec = { + { + "lualine", + ["config"] = function(_, opts) + require("lualine").setup(opts) + end, + ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/lualine.nvim", + ["lazy"] = false, + ["name"] = "lualine", + ["opts"] = { + ["extensions"] = { "fzf", "chadtree", "neo-tree", "toggleterm", "trouble" }, + ["options"] = { + ["always_divide_middle"] = true, + ["component_separators"] = { ["left"] = "", ["right"] = "" }, + ["globalstatus"] = true, + ["ignore_focus"] = { "neo-tree", "chadtree" }, + ["section_separators"] = { ["left"] = "", ["right"] = "" }, + }, + ["sections"] = { + ["lualine_a"] = { { ["name"] = "mode" } }, + ["lualine_b"] = { "branch", "diff", "diagnostics" }, + ["lualine_c"] = { { ["extraConfig"] = { ["path"] = 1 }, ["name"] = "filename" } }, + ["lualine_x"] = { "filetype", "encoding", "fileformat" }, + ["lualine_y"] = { "progress", "searchcount", "selectioncount" }, + ["lualine_z"] = { { ["name"] = "location" } }, + }, + ["tabline"] = { ["lualine_a"] = { "buffers" }, ["lualine_z"] = { "tabs" } }, + }, + }, + { + "noice", + ["config"] = function(_, opts) + require("noice").setup(opts) + end, + ["dependencies"] = { + { + "nui", + ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/nui.nvim", + ["lazy"] = false, + ["name"] = "nui", + }, + }, + ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/noice.nvim", + ["lazy"] = false, + ["name"] = "noice", + ["opts"] = { + ["lsp"] = { + ["documentation"] = { + ["opts"] = { + ["border"] = "rounded", + ["format"] = { "{message}" }, + ["lang"] = "markdown", + ["render"] = "plain", + ["replace"] = true, + ["win_options"] = { ["concealcursor"] = "n", ["conceallevel"] = 3 }, + }, + ["view"] = "hover", + }, + ["override"] = { + ["cmp.entry.get_documentation"] = true, + ["vim.lsp.util.convert_input_to_markdown_lines"] = true, + ["vim.lsp.util.stylize_markdown"] = true, + }, + }, + ["notify"] = { ["enabled"] = true }, + ["popupmenu"] = { ["backend"] = "nui", ["enabled"] = true }, + ["presets"] = { + ["bottom_search"] = false, + ["command_palette"] = true, + ["inc_rename"] = true, + ["long_message_to_split"] = true, + ["lsp_doc_border"] = true, + }, + ["routes"] = { + { + ["filter"] = { ["event"] = "msg_show", ["kind"] = "search_count" }, + ["opts"] = { ["skip"] = true }, + }, + }, + }, + }, + { + "notify", + ["config"] = function(_, opts) + vim.notify = require("notify") + require("notify").setup(opts) + end, + ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/nvim-notify", + ["lazy"] = false, + ["name"] = "notify", + }, + { + "telescope", + ["config"] = function(_, opts) + local telescope = require("telescope") + telescope.setup(opts) - for i, extension in ipairs({ "undo", "ui-select", "fzf" }) do - telescope.load_extension(extension) - end - end, - ["dependencies"] = { - { - "plenary", - ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/plenary.nvim", - ["name"] = "plenary", - }, - { - "telescope-undo", - ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/telescope-undo.nvim", - ["name"] = "telescope-undo", - }, - { - "telescope-ui-select", - ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/telescope-ui-select.nvim", - ["name"] = "telescope-ui-select", - }, - { - "telescope-fzf-native", - ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/telescope-fzf-native.nvim", - ["name"] = "telescope-fzf-native", - }, - }, - ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/telescope.nvim", - ["lazy"] = false, - ["name"] = "telescope", - ["opts"] = { - ["defaults"] = { - ["mappings"] = { - ["i"] = { - [""] = function(...) - return require("telescope.actions").close(...) - end, - }, - }, - }, - }, - }, - { - "which-key", - ["config"] = function(_, opts) - require("which-key").setup(opts) - end, - ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/which-key.nvim", - ["lazy"] = false, - ["name"] = "which-key", - ["priority"] = 100, - }, - { - "clangd-extensions", - ["config"] = function(_, opts) - require("clangd_extensions").setup(opts) - end, - ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/clangd_extensions.nvim", - ["name"] = "clangd-extensions", - }, - { - "conform", - ["config"] = function(_, opts) - require("conform").setup(opts) - end, - ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/conform.nvim", - ["name"] = "conform", - ["opts"] = { - ["formatters_by_ft"] = { - ["c"] = { "clang-format" }, - ["cpp"] = { "clang-format" }, - ["css"] = { { "prettierd", "prettier" } }, - ["h"] = { "clang-format" }, - ["hpp"] = { "clang-format" }, - ["html"] = { { "prettierd", "prettier" } }, - ["java"] = { "google-java-format" }, - ["javascript"] = { { "prettierd", "prettier" } }, - ["lua"] = { "stylua" }, - ["markdown"] = { { "prettierd", "prettier" } }, - ["nix"] = { "alejandra" }, - ["python"] = { "black" }, - ["rust"] = { "rustfmt" }, - }, - }, - }, - { - "haskell-tools", - ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/haskell-tools.nvim", - ["name"] = "haskell-tools", - }, - { - "lint", - ["config"] = function(_, opts) - local lint = require("lint") + for i, extension in ipairs({ "undo", "ui-select", "fzf" }) do + telescope.load_extension(extension) + end + end, + ["dependencies"] = { + { + "plenary", + ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/plenary.nvim", + ["name"] = "plenary", + }, + { + "telescope-undo", + ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/telescope-undo.nvim", + ["name"] = "telescope-undo", + }, + { + "telescope-ui-select", + ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/telescope-ui-select.nvim", + ["name"] = "telescope-ui-select", + }, + { + "telescope-fzf-native", + ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/telescope-fzf-native.nvim", + ["name"] = "telescope-fzf-native", + }, + }, + ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/telescope.nvim", + ["lazy"] = false, + ["name"] = "telescope", + ["opts"] = { + ["defaults"] = { + ["mappings"] = { + ["i"] = { + [""] = function(...) + return require("telescope.actions").close(...) + end, + }, + }, + }, + }, + }, + { + "which-key", + ["config"] = function(_, opts) + require("which-key").setup(opts) + end, + ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/which-key.nvim", + ["lazy"] = false, + ["name"] = "which-key", + ["priority"] = 100, + }, + { + "clangd-extensions", + ["config"] = function(_, opts) + require("clangd_extensions").setup(opts) + end, + ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/clangd_extensions.nvim", + ["name"] = "clangd-extensions", + }, + { + "conform", + ["config"] = function(_, opts) + require("conform").setup(opts) + end, + ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/conform.nvim", + ["name"] = "conform", + ["opts"] = { + ["formatters_by_ft"] = { + ["c"] = { "clang-format" }, + ["cpp"] = { "clang-format" }, + ["css"] = { { "prettierd", "prettier" } }, + ["h"] = { "clang-format" }, + ["hpp"] = { "clang-format" }, + ["html"] = { { "prettierd", "prettier" } }, + ["java"] = { "google-java-format" }, + ["javascript"] = { { "prettierd", "prettier" } }, + ["lua"] = { "stylua" }, + ["markdown"] = { { "prettierd", "prettier" } }, + ["nix"] = { "alejandra" }, + ["python"] = { "black" }, + ["rust"] = { "rustfmt" }, + }, + }, + }, + { + "haskell-tools", + ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/haskell-tools.nvim", + ["name"] = "haskell-tools", + }, + { + "lint", + ["config"] = function(_, opts) + local lint = require("lint") - for k, v in pairs(opts) do - lint[k] = v - end - end, - ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/nvim-lint", - ["lazy"] = false, - ["name"] = "lint", - ["opts"] = { - ["linters_by_ft"] = { - ["c"] = { "clang-tidy" }, - ["clojure"] = { "clj-kondo" }, - ["cpp"] = { "clang-tidy" }, - ["h"] = { "clang-tidy" }, - ["hpp"] = { "clang-tidy" }, - ["java"] = { "checkstyle" }, - ["javascript"] = { "eslint_d" }, - ["lua"] = { "luacheck" }, - ["markdown"] = { "vale" }, - ["nix"] = { "statix" }, - ["python"] = { "flake8" }, - ["rust"] = { "clippy" }, - ["text"] = { "vale" }, - }, - }, - }, - { - "lspconfig", - ["config"] = function(_, opts) - local __lspOnAttach = function(client, bufnr) end + for k, v in pairs(opts) do + lint[k] = v + end + end, + ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/nvim-lint", + ["lazy"] = false, + ["name"] = "lint", + ["opts"] = { + ["linters_by_ft"] = { + ["c"] = { "clang-tidy" }, + ["clojure"] = { "clj-kondo" }, + ["cpp"] = { "clang-tidy" }, + ["h"] = { "clang-tidy" }, + ["hpp"] = { "clang-tidy" }, + ["java"] = { "checkstyle" }, + ["javascript"] = { "eslint_d" }, + ["lua"] = { "luacheck" }, + ["markdown"] = { "vale" }, + ["nix"] = { "statix" }, + ["python"] = { "flake8" }, + ["rust"] = { "clippy" }, + ["text"] = { "vale" }, + }, + }, + }, + { + "lspconfig", + ["config"] = function(_, opts) + local __lspOnAttach = function(client, bufnr) end - local __lspCapabilities = function() - capabilities = vim.lsp.protocol.make_client_capabilities() - capabilities = - vim.tbl_deep_extend("force", capabilities, require("cmp_nvim_lsp").default_capabilities()) - return capabilities - end + local __lspCapabilities = function() + capabilities = vim.lsp.protocol.make_client_capabilities() + capabilities = + vim.tbl_deep_extend("force", capabilities, require("cmp_nvim_lsp").default_capabilities()) + return capabilities + end - local __setup = { - on_attach = __lspOnAttach, - capabilities = __lspCapabilities(), - } + local __setup = { + on_attach = __lspOnAttach, + capabilities = __lspCapabilities(), + } - for i, server in ipairs({ - { ["name"] = "clangd" }, - { ["name"] = "clojure_lsp" }, - { ["name"] = "cmake" }, - { ["name"] = "lua_ls" }, - { ["name"] = "nil_ls" }, - { ["name"] = "pyright" }, - { ["name"] = "texlab" }, - }) do - if type(server) == "string" then - require("lspconfig")[server].setup(__setup) - else - local options = server.extraOptions + for i, server in ipairs({ + { ["name"] = "clangd" }, + { ["name"] = "clojure_lsp" }, + { ["name"] = "cmake" }, + { ["name"] = "lua_ls" }, + { ["name"] = "nil_ls" }, + { ["name"] = "pyright" }, + { ["name"] = "texlab" }, + }) do + if type(server) == "string" then + require("lspconfig")[server].setup(__setup) + else + local options = server.extraOptions - if options == nil then - options = __setup - else - options = vim.tbl_extend("keep", options, __setup) - end + if options == nil then + options = __setup + else + options = vim.tbl_extend("keep", options, __setup) + end - require("lspconfig")[server.name].setup(options) - end - end - end, - ["dependencies"] = { - { - "neodev", - ["config"] = function(_, opts) - require("neodev").setup(opts) - end, - ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/neodev.nvim", - ["name"] = "neodev", - }, - }, - ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/nvim-lspconfig", - ["lazy"] = false, - ["name"] = "lspconfig", - }, - { - "rustaceanvim", - ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/rustaceanvim", - ["name"] = "rustaceanvim", - }, - { - "treesitter", - ["config"] = function(_, opts) - vim.opt.runtimepath:append( - "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/nvim-treesitter" - ) - vim.opt.runtimepath:append("/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/treesitter-parsers") + require("lspconfig")[server.name].setup(options) + end + end + end, + ["dependencies"] = { + { + "neodev", + ["config"] = function(_, opts) + require("neodev").setup(opts) + end, + ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/neodev.nvim", + ["name"] = "neodev", + }, + }, + ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/nvim-lspconfig", + ["lazy"] = false, + ["name"] = "lspconfig", + }, + { + "rustaceanvim", + ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/rustaceanvim", + ["name"] = "rustaceanvim", + }, + { + "treesitter", + ["config"] = function(_, opts) + vim.opt.runtimepath:append( + "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/nvim-treesitter" + ) + vim.opt.runtimepath:append( + "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/treesitter-parsers" + ) - require("nvim-treesitter.configs").setup(opts) - end, - ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/nvim-treesitter", - ["lazy"] = false, - ["name"] = "treesitter", - ["opts"] = { - ["auto_install"] = false, - ["highlight"] = { ["additional_vim_regex_highlighting"] = false, ["enable"] = true }, - ["incremental_selection"] = { - ["enable"] = true, - ["keymaps"] = { - ["init_selection"] = "gnn", - ["node_decremental"] = "grm", - ["node_incremental"] = "grn", - ["scope_incremental"] = "grc", - }, - }, - ["indent"] = { ["enable"] = true }, - ["parser_install_dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/treesitter-parsers", - }, - }, - { - "catppuccin", - ["config"] = function(_, opts) - require("catppuccin").setup(opts) + require("nvim-treesitter.configs").setup(opts) + end, + ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/nvim-treesitter", + ["lazy"] = false, + ["name"] = "treesitter", + ["opts"] = { + ["auto_install"] = false, + ["highlight"] = { ["additional_vim_regex_highlighting"] = false, ["enable"] = true }, + ["incremental_selection"] = { + ["enable"] = true, + ["keymaps"] = { + ["init_selection"] = "gnn", + ["node_decremental"] = "grm", + ["node_incremental"] = "grn", + ["scope_incremental"] = "grc", + }, + }, + ["indent"] = { ["enable"] = true }, + ["parser_install_dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/treesitter-parsers", + }, + }, + { + "catppuccin", + ["config"] = function(_, opts) + require("catppuccin").setup(opts) - vim.cmd([[ + vim.cmd([[ let $BAT_THEME = "catppuccin" colorscheme catppuccin ]]) - end, - ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/catppuccin-nvim", - ["lazy"] = false, - ["name"] = "catppuccin", - ["opts"] = { ["background"] = { ["dark"] = "mocha", ["light"] = "latte" }, ["flavour"] = "mocha" }, - ["priority"] = 1000, - }, - { - "web-devicons", - ["config"] = function(_, opts) - require("nvim-web-devicons").setup(opts) - end, - ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/nvim-web-devicons", - ["lazy"] = false, - ["name"] = "web-devicons", - }, - { - "better-escape", - ["config"] = function(_, opts) - require("better_escape").setup(opts) - end, - ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/better-escape.nvim", - ["lazy"] = false, - ["name"] = "better-escape", - ["opts"] = { ["mapping"] = { "jk" }, ["timeout"] = 200 }, - }, - { - "chadtree", - ["config"] = function(_, opts) - vim.api.nvim_set_var("chadtree_settings", opts) - end, - ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/chadtree", - ["name"] = "chadtree", - ["opts"] = { ["theme"] = { ["text_colour_set"] = "nerdtree_syntax_dark" }, ["xdg"] = true }, - }, - { - "cmp", - ["config"] = function(_, opts) - require("cmp").setup(opts) - end, - ["dependencies"] = { - { - "cmp-async-path", - ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/cmp-async-path", - ["name"] = "cmp-async-path", - }, - { - "cmp-buffer", - ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/cmp-buffer", - ["enabled"] = false, - ["name"] = "cmp-buffer", - }, - { - "cmp-cmdline", - ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/cmp-cmdline", - ["enabled"] = false, - ["name"] = "cmp-cmdline", - }, - { - "cmp-emoji", - ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/cmp-emoji", - ["name"] = "cmp-emoji", - }, - { - "cmp-nvim-lsp", - ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/cmp-nvim-lsp", - ["name"] = "cmp-nvim-lsp", - }, - { - "cmp-nvim-lsp-signature-help", - ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/cmp-nvim-lsp-signature-help", - ["name"] = "cmp-nvim-lsp-signature-help", - }, - { - "cmp-luasnip", - ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/cmp_luasnip", - ["name"] = "cmp-luasnip", - }, - }, - ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/nvim-cmp", - ["lazy"] = false, - ["name"] = "cmp", - ["opts"] = function() - local cmp = require("cmp") - local luasnip = require("luasnip") + end, + ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/catppuccin-nvim", + ["lazy"] = false, + ["name"] = "catppuccin", + ["opts"] = { ["background"] = { ["dark"] = "mocha", ["light"] = "latte" }, ["flavour"] = "mocha" }, + ["priority"] = 1000, + }, + { + "web-devicons", + ["config"] = function(_, opts) + require("nvim-web-devicons").setup(opts) + end, + ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/nvim-web-devicons", + ["lazy"] = false, + ["name"] = "web-devicons", + }, + { + "better-escape", + ["config"] = function(_, opts) + require("better_escape").setup(opts) + end, + ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/better-escape.nvim", + ["lazy"] = false, + ["name"] = "better-escape", + ["opts"] = { ["mapping"] = { "jk" }, ["timeout"] = 200 }, + }, + { + "chadtree", + ["config"] = function(_, opts) + vim.api.nvim_set_var("chadtree_settings", opts) + end, + ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/chadtree", + ["name"] = "chadtree", + ["opts"] = { ["theme"] = { ["text_colour_set"] = "nerdtree_syntax_dark" }, ["xdg"] = true }, + }, + { + "cmp", + ["config"] = function(_, opts) + require("cmp").setup(opts) + end, + ["dependencies"] = { + { + "cmp-async-path", + ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/cmp-async-path", + ["name"] = "cmp-async-path", + }, + { + "cmp-buffer", + ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/cmp-buffer", + ["enabled"] = false, + ["name"] = "cmp-buffer", + }, + { + "cmp-cmdline", + ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/cmp-cmdline", + ["enabled"] = false, + ["name"] = "cmp-cmdline", + }, + { + "cmp-emoji", + ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/cmp-emoji", + ["name"] = "cmp-emoji", + }, + { + "cmp-nvim-lsp", + ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/cmp-nvim-lsp", + ["name"] = "cmp-nvim-lsp", + }, + { + "cmp-nvim-lsp-signature-help", + ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/cmp-nvim-lsp-signature-help", + ["name"] = "cmp-nvim-lsp-signature-help", + }, + { + "cmp-luasnip", + ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/cmp_luasnip", + ["name"] = "cmp-luasnip", + }, + }, + ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/nvim-cmp", + ["lazy"] = false, + ["name"] = "cmp", + ["opts"] = function() + local cmp = require("cmp") + local luasnip = require("luasnip") - local has_words_before = function() - unpack = unpack or table.unpack - local line, col = unpack(vim.api.nvim_win_get_cursor(0)) - return col ~= 0 - and vim.api.nvim_buf_get_lines(0, line - 1, line, true)[1]:sub(col, col):match("%s") == nil - end + local has_words_before = function() + unpack = unpack or table.unpack + local line, col = unpack(vim.api.nvim_win_get_cursor(0)) + return col ~= 0 + and vim.api.nvim_buf_get_lines(0, line - 1, line, true)[1]:sub(col, col):match("%s") == nil + end - return { - sources = cmp.config.sources({ - { ["name"] = "async_path" }, - { ["name"] = "emoji" }, - { ["name"] = "nvim_lsp" }, - { ["name"] = "nvim_lsp_signature_help" }, - { ["name"] = "luasnip" }, - }), + return { + sources = cmp.config.sources({ + { ["name"] = "async_path" }, + { ["name"] = "emoji" }, + { ["name"] = "nvim_lsp" }, + { ["name"] = "nvim_lsp_signature_help" }, + { ["name"] = "luasnip" }, + }), - snippet = { - expand = function(args) - require("luasnip").lsp_expand(args.body) - end, - }, + snippet = { + expand = function(args) + require("luasnip").lsp_expand(args.body) + end, + }, - window = { - completion = cmp.config.window.bordered(), - documentation = cmp.config.window.bordered(), - -- completion.border = "rounded", - -- documentation.border = "rounded", - }, + window = { + completion = cmp.config.window.bordered(), + documentation = cmp.config.window.bordered(), + -- completion.border = "rounded", + -- documentation.border = "rounded", + }, - mapping = cmp.mapping.preset.insert({ - [""] = cmp.mapping.select_next_item({ behavior = cmp.SelectBehavior.Select }), - [""] = cmp.mapping.select_prev_item({ behavior = cmp.SelectBehavior.Select }), - [""] = cmp.mapping.abort(), - [""] = cmp.mapping.abort(), - [""] = cmp.mapping.scroll_docs(-4), - [""] = cmp.mapping.scroll_docs(4), - [""] = cmp.mapping.complete({}), + mapping = cmp.mapping.preset.insert({ + [""] = cmp.mapping.select_next_item({ behavior = cmp.SelectBehavior.Select }), + [""] = cmp.mapping.select_prev_item({ behavior = cmp.SelectBehavior.Select }), + [""] = cmp.mapping.abort(), + [""] = cmp.mapping.abort(), + [""] = cmp.mapping.scroll_docs(-4), + [""] = cmp.mapping.scroll_docs(4), + [""] = cmp.mapping.complete({}), - [""] = cmp.mapping.confirm({ select = true }), + [""] = cmp.mapping.confirm({ select = true }), - [""] = cmp.mapping(function(fallback) - if cmp.visible() then - cmp.select_next_item() - elseif require("luasnip").expand_or_jumpable() then - require("luasnip").expand_or_jump() - elseif has_words_before() then - cmp.complete() - else - fallback() - end - end, { "i", "s" }), + [""] = cmp.mapping(function(fallback) + if cmp.visible() then + cmp.select_next_item() + elseif require("luasnip").expand_or_jumpable() then + require("luasnip").expand_or_jump() + elseif has_words_before() then + cmp.complete() + else + fallback() + end + end, { "i", "s" }), - [""] = cmp.mapping(function(fallback) - if cmp.visible() then - cmp.select_prev_item() - elseif luasnip.jumpable(-1) then - luasnip.jump(-1) - else - fallback() - end - end, { "i", "s" }), - }), - } - end, - }, - { - "comment", - ["config"] = function(_, opts) - require("Comment").setup(opts) - end, - ["dependencies"] = { - { - "ts-context-commentstring", - ["config"] = function(_, opts) - vim.g.skip_ts_context_commentstring_module = true -- Skip compatibility checks + [""] = cmp.mapping(function(fallback) + if cmp.visible() then + cmp.select_prev_item() + elseif luasnip.jumpable(-1) then + luasnip.jump(-1) + else + fallback() + end + end, { "i", "s" }), + }), + } + end, + }, + { + "comment", + ["config"] = function(_, opts) + require("Comment").setup(opts) + end, + ["dependencies"] = { + { + "ts-context-commentstring", + ["config"] = function(_, opts) + vim.g.skip_ts_context_commentstring_module = true -- Skip compatibility checks - require("ts_context_commentstring").setup(opts) - end, - ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/nvim-ts-context-commentstring", - ["lazy"] = false, - ["name"] = "ts-context-commentstring", - }, - }, - ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/comment.nvim", - ["name"] = "comment", - ["opts"] = { - ["mappings"] = { ["basic"] = true, ["extra"] = false }, - ["opleader"] = { ["block"] = "", ["line"] = "" }, - ["pre_hook"] = function() - require("ts_context_commentstring.integrations.comment_nvim").create_pre_hook() - end, - ["toggler"] = { ["block"] = "", ["line"] = "" }, - }, - }, - { - "flash", - ["config"] = function(_, opts) - require("flash").setup(opts) - end, - ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/flash.nvim", - ["name"] = "flash", - }, - { - "gitmessenger", - ["config"] = function(_, opts) - for k, v in pairs(opts) do - vim.g[k] = v - end - end, - ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/git-messenger.vim", - ["name"] = "gitmessenger", - ["opts"] = { - ["git_messenger_floating_win_opts"] = { ["border"] = "rounded" }, - ["git_messenger_no_default_mappings"] = true, - }, - }, - { - "gitsigns", - ["config"] = function(_, opts) - require("gitsigns").setup(opts) - end, - ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/gitsigns.nvim", - ["lazy"] = false, - ["name"] = "gitsigns", - ["opts"] = { ["current_line_blame"] = false }, - }, - { - "illuminate", - ["config"] = function(_, opts) - require("illuminate").configure(opts) - end, - ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/vim-illuminate", - ["lazy"] = false, - ["name"] = "illuminate", - ["opts"] = { - ["filetypesDenylist"] = { - "DressingSelect", - "Outline", - "TelescopePrompt", - "alpha", - "harpoon", - "toggleterm", - "neo-tree", - "Spectre", - "reason", - }, - }, - }, - { - "intellitab", - ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/intellitab.nvim", - ["lazy"] = false, - ["name"] = "intellitab", - }, - { - "lastplace", - ["config"] = function(_, opts) - require("nvim-lastplace").setup(opts) - end, - ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/nvim-lastplace", - ["lazy"] = false, - ["name"] = "lastplace", - }, - { - "lazygit", - ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/lazygit.nvim", - ["name"] = "lazygit", - }, - { - "luasnip", - ["config"] = function(_, opts) - require("luasnip").config.set_config(opts) - end, - ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/luasnip", - ["name"] = "luasnip", - }, - { - "navbuddy", - ["config"] = function(_, opts) - local actions = require("nvim-navbuddy.actions") -- ? - require("nvim-navbuddy").setup(opts) - end, - ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/nvim-navbuddy", - ["name"] = "navbuddy", - ["opts"] = { ["lsp"] = { ["auto_attach"] = true }, ["window"] = { ["border"] = "rounded" } }, - }, - { - "navic", - ["config"] = function(_, opts) - require("nvim-navic").setup(opts) - end, - ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/nvim-navic", - ["name"] = "navic", - ["opts"] = { ["click"] = true, ["highlight"] = true, ["lsp"] = { ["auto_attach"] = true } }, - }, - { - "autopairs", - ["config"] = function(_, opts) - require("nvim-autopairs").setup(opts) - end, - ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/nvim-autopairs", - ["lazy"] = false, - ["name"] = "autopairs", - }, - { - "colorizer", - ["config"] = function(_, opts) - require("colorizer").setup(opts) - end, - ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/nvim-colorizer.lua", - ["lazy"] = false, - ["name"] = "colorizer", - }, - { - "ufo", - ["config"] = function(_, opts) - require("ufo").setup(opts) - end, - ["dependencies"] = { - { - "promise", - ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/promise-async", - ["name"] = "promise", - }, - }, - ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/nvim-ufo", - ["name"] = "ufo", - }, - { - "rainbow-delimiters", - ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/rainbow-delimiters.nvim", - ["lazy"] = false, - ["name"] = "rainbow-delimiters", - }, - { - "sandwich", - ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/vim-sandwich", - ["lazy"] = false, - ["name"] = "sandwich", - }, - { - "sleuth", - ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/vim-sleuth", - ["lazy"] = false, - ["name"] = "sleuth", - }, - { - "toggleterm", - ["config"] = function(_, opts) - require("toggleterm").setup(opts) - end, - ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/toggleterm.nvim", - ["lazy"] = false, - ["name"] = "toggleterm", - ["opts"] = { - ["auto_scroll"] = true, - ["close_on_exit"] = true, - ["direction"] = "horizontal", - ["float_opts"] = { ["border"] = "curved", ["height"] = 20, ["width"] = 80, ["winblend"] = 0 }, - ["hide_numbers"] = true, - ["insert_mappings"] = true, - ["open_mapping"] = [[]], - ["persist_mode"] = true, - ["shade_terminals"] = true, - ["shell"] = "fish", - ["start_in_insert"] = true, - ["terminal_mappings"] = true, - }, - }, - { - "trim", - ["config"] = function(_, opts) - require("trim").setup(opts) - end, - ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/trim.nvim", - ["lazy"] = false, - ["name"] = "trim", - }, - { - "trouble", - ["config"] = function(_, opts) - require("trouble").setup(opts) - end, - ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/trouble.nvim", - ["name"] = "trouble", - }, - { "bbye", ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/vim-bbye", ["name"] = "bbye" }, - { - "yanky", - ["config"] = function(_, opts) - require("yanky").setup(opts) - end, - ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/yanky.nvim", - ["lazy"] = false, - ["name"] = "yanky", - }, - }, + require("ts_context_commentstring").setup(opts) + end, + ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/nvim-ts-context-commentstring", + ["lazy"] = false, + ["name"] = "ts-context-commentstring", + }, + }, + ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/comment.nvim", + ["name"] = "comment", + ["opts"] = { + ["mappings"] = { ["basic"] = true, ["extra"] = false }, + ["opleader"] = { ["block"] = "", ["line"] = "" }, + ["pre_hook"] = function() + require("ts_context_commentstring.integrations.comment_nvim").create_pre_hook() + end, + ["toggler"] = { ["block"] = "", ["line"] = "" }, + }, + }, + { + "flash", + ["config"] = function(_, opts) + require("flash").setup(opts) + end, + ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/flash.nvim", + ["name"] = "flash", + }, + { + "gitmessenger", + ["config"] = function(_, opts) + for k, v in pairs(opts) do + vim.g[k] = v + end + end, + ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/git-messenger.vim", + ["name"] = "gitmessenger", + ["opts"] = { + ["git_messenger_floating_win_opts"] = { ["border"] = "rounded" }, + ["git_messenger_no_default_mappings"] = true, + }, + }, + { + "gitsigns", + ["config"] = function(_, opts) + require("gitsigns").setup(opts) + end, + ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/gitsigns.nvim", + ["lazy"] = false, + ["name"] = "gitsigns", + ["opts"] = { ["current_line_blame"] = false }, + }, + { + "illuminate", + ["config"] = function(_, opts) + require("illuminate").configure(opts) + end, + ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/vim-illuminate", + ["lazy"] = false, + ["name"] = "illuminate", + ["opts"] = { + ["filetypesDenylist"] = { + "DressingSelect", + "Outline", + "TelescopePrompt", + "alpha", + "harpoon", + "toggleterm", + "neo-tree", + "Spectre", + "reason", + }, + }, + }, + { + "intellitab", + ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/intellitab.nvim", + ["lazy"] = false, + ["name"] = "intellitab", + }, + { + "lastplace", + ["config"] = function(_, opts) + require("nvim-lastplace").setup(opts) + end, + ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/nvim-lastplace", + ["lazy"] = false, + ["name"] = "lastplace", + }, + { + "lazygit", + ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/lazygit.nvim", + ["name"] = "lazygit", + }, + { + "luasnip", + ["config"] = function(_, opts) + require("luasnip").config.set_config(opts) + end, + ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/luasnip", + ["name"] = "luasnip", + }, + { + "navbuddy", + ["config"] = function(_, opts) + local actions = require("nvim-navbuddy.actions") -- ? + require("nvim-navbuddy").setup(opts) + end, + ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/nvim-navbuddy", + ["name"] = "navbuddy", + ["opts"] = { ["lsp"] = { ["auto_attach"] = true }, ["window"] = { ["border"] = "rounded" } }, + }, + { + "navic", + ["config"] = function(_, opts) + require("nvim-navic").setup(opts) + end, + ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/nvim-navic", + ["name"] = "navic", + ["opts"] = { ["click"] = true, ["highlight"] = true, ["lsp"] = { ["auto_attach"] = true } }, + }, + { + "autopairs", + ["config"] = function(_, opts) + require("nvim-autopairs").setup(opts) + end, + ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/nvim-autopairs", + ["lazy"] = false, + ["name"] = "autopairs", + }, + { + "colorizer", + ["config"] = function(_, opts) + require("colorizer").setup(opts) + end, + ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/nvim-colorizer.lua", + ["lazy"] = false, + ["name"] = "colorizer", + }, + { + "ufo", + ["config"] = function(_, opts) + require("ufo").setup(opts) + end, + ["dependencies"] = { + { + "promise", + ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/promise-async", + ["name"] = "promise", + }, + }, + ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/nvim-ufo", + ["name"] = "ufo", + }, + { + "rainbow-delimiters", + ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/rainbow-delimiters.nvim", + ["lazy"] = false, + ["name"] = "rainbow-delimiters", + }, + { + "sandwich", + ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/vim-sandwich", + ["lazy"] = false, + ["name"] = "sandwich", + }, + { + "sleuth", + ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/vim-sleuth", + ["lazy"] = false, + ["name"] = "sleuth", + }, + { + "toggleterm", + ["config"] = function(_, opts) + require("toggleterm").setup(opts) + end, + ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/toggleterm.nvim", + ["lazy"] = false, + ["name"] = "toggleterm", + ["opts"] = { + ["auto_scroll"] = true, + ["close_on_exit"] = true, + ["direction"] = "horizontal", + ["float_opts"] = { ["border"] = "curved", ["height"] = 20, ["width"] = 80, ["winblend"] = 0 }, + ["hide_numbers"] = true, + ["insert_mappings"] = true, + ["open_mapping"] = [[]], + ["persist_mode"] = true, + ["shade_terminals"] = true, + ["shell"] = "fish", + ["start_in_insert"] = true, + ["terminal_mappings"] = true, + }, + }, + { + "trim", + ["config"] = function(_, opts) + require("trim").setup(opts) + end, + ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/trim.nvim", + ["lazy"] = false, + ["name"] = "trim", + }, + { + "trouble", + ["config"] = function(_, opts) + require("trouble").setup(opts) + end, + ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/trouble.nvim", + ["name"] = "trouble", + }, + { + "bbye", + ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/vim-bbye", + ["name"] = "bbye", + }, + { + "yanky", + ["config"] = function(_, opts) + require("yanky").setup(opts) + end, + ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/yanky.nvim", + ["lazy"] = false, + ["name"] = "yanky", + }, + }, }) -- Set up keybinds {{{ do - local __nixvim_binds = { - { ["action"] = "w", ["key"] = "", ["mode"] = "n", ["options"] = { - ["desc"] = "Save current buffer", - } }, - { ["action"] = "wa", ["key"] = "", ["mode"] = "n", ["options"] = { - ["desc"] = "Save all buffers", - } }, - { ["action"] = "", 'v:lua.get_wildmenu_key("", "", 'v:lua.get_wildmenu_key("", "")', { expr = true }) function _G.get_wildmenu_key(key_wildmenu, key_regular) - return vim.fn.wildmenumode() ~= 0 and key_wildmenu or key_regular + return vim.fn.wildmenumode() ~= 0 and key_wildmenu or key_regular end -- Set up autocommands {{ do - local __nixvim_autocommands = { - { - ["callback"] = function() - require("lint").try_lint() - end, - ["event"] = { "BufWritePost" }, - }, - { - ["callback"] = function() - require("conform").format() - end, - ["event"] = { "BufWritePre" }, - }, - } + local __nixvim_autocommands = { + { + ["callback"] = function() + require("lint").try_lint() + end, + ["event"] = { "BufWritePost" }, + }, + { + ["callback"] = function() + require("conform").format() + end, + ["event"] = { "BufWritePre" }, + }, + } - for _, autocmd in ipairs(__nixvim_autocommands) do - vim.api.nvim_create_autocmd(autocmd.event, { - group = autocmd.group, - pattern = autocmd.pattern, - buffer = autocmd.buffer, - desc = autocmd.desc, - callback = autocmd.callback, - command = autocmd.command, - once = autocmd.once, - nested = autocmd.nested, - }) - end + for _, autocmd in ipairs(__nixvim_autocommands) do + vim.api.nvim_create_autocmd(autocmd.event, { + group = autocmd.group, + pattern = autocmd.pattern, + buffer = autocmd.buffer, + desc = autocmd.desc, + callback = autocmd.callback, + command = autocmd.command, + once = autocmd.once, + nested = autocmd.nested, + }) + end end -- }} @@ -1153,21 +1222,21 @@ local o = vim.o -- Neovide if g.neovide then - -- require("notify").notify("Running in NeoVide") + -- require("notify").notify("Running in NeoVide") - g.neovide_cursor_animate_command_line = true - g.neovide_cursor_animate_in_insert_mode = true - -- g.neovide_fullscreen = false - g.neovide_hide_mouse_when_typing = true - g.neovide_padding_top = 0 - g.neovide_padding_bottom = 0 - g.neovide_padding_right = 0 - g.neovide_padding_left = 0 - g.neovide_refresh_rate = 144 - -- g.neovide_theme = "light" + g.neovide_cursor_animate_command_line = true + g.neovide_cursor_animate_in_insert_mode = true + -- g.neovide_fullscreen = false + g.neovide_hide_mouse_when_typing = true + g.neovide_padding_top = 0 + g.neovide_padding_bottom = 0 + g.neovide_padding_right = 0 + g.neovide_padding_left = 0 + g.neovide_refresh_rate = 144 + -- g.neovide_theme = "light" - -- Neovide Fonts - o.guifont = "JetBrainsMono Nerd Font:h13:Medium" + -- Neovide Fonts + o.guifont = "JetBrainsMono Nerd Font:h13:Medium" else - -- require("notify").notify("Not running in NeoVide") + -- require("notify").notify("Not running in NeoVide") end