diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua index 323f52a..c72c318 100644 --- a/.config/nvim/init.lua +++ b/.config/nvim/init.lua @@ -19,11 +19,16 @@ vim.cmd("set splitright") vim.cmd("set spl=en_us spell") vim.opt.guifont = "JetBrainsMonoNerdFontMono:14" +-- Configure history +vim.opt.undodir = vim.fn.stdpath("state") .. "/nvim/undo" +vim.cmd("set undofile") + -- Customize window border vim.diagnostic.config({ float = { border = "single", - },}) + }, +}) -- Custom Key Binds vim.g.mapleader = " " @@ -35,7 +40,7 @@ require("config.lazy") vim.keymap.set("n", "r", ":source %", { desc = "Reload Config" }) vim.keymap.set("n", "bs", ":vsplit", { desc = "Vertical Split" }) vim.keymap.set("n", "vm", ":lua vim.diagnostic.open_float()", { desc = "Show Diagnostic Message" }) -vim.api.nvim_set_keymap('i', '', '', { noremap = true, silent = true }) +vim.api.nvim_set_keymap("i", "", "", { noremap = true, silent = true }) -- remap yank to system clipboard vim.keymap.set("n", "y", '"+y', { desc = "Yank to Clipboard" }) @@ -43,7 +48,7 @@ vim.keymap.set("v", "y", '"+y', { desc = "Yank to Clipboard" }) -- Configure Telescope Keymaps local builtin = require("telescope.builtin") -vim.keymap.set("n", "ff", builtin.find_files, { desc = "Find File"}) +vim.keymap.set("n", "ff", builtin.find_files, { desc = "Find File" }) vim.keymap.set("n", "fg", builtin.live_grep, { desc = "Grep Files" }) vim.keymap.set("n", "fb", builtin.buffers, { desc = "Open Editors" }) @@ -53,7 +58,6 @@ vim.keymap.set("n", "fb", builtin.buffers, { desc = "Open Editors" }) -- Configure NeoTree (FS View) vim.keymap.set("n", "ft", ":Neotree filesystem toggle left") - -- Configure Copilot --vim.keymap.set("n", "cp", ":Copilot panel", { desc = "Open Copilot Panel" }) vim.keymap.set("n", "ce", ":Copilot enable", { desc = "Enable Copilot Completions" }) diff --git a/.config/nvim/lua/plugins/history.lua b/.config/nvim/lua/plugins/history.lua new file mode 100644 index 0000000..1c50b72 --- /dev/null +++ b/.config/nvim/lua/plugins/history.lua @@ -0,0 +1,15 @@ +return { + { + "mbbill/undotree", + lazy = true, + keys = { + { "fh", "UndotreeToggle", desc = "Toggle Undotree" }, + }, + }, + { + "pocco81/auto-save.nvim", + keys = { + { "as", "ASToggle", desc = "Toggle Auto Save" }, + }, + }, +} diff --git a/.config/nvim/lua/plugins/language-server.lua b/.config/nvim/lua/plugins/language-server.lua index e74e040..d670176 100644 --- a/.config/nvim/lua/plugins/language-server.lua +++ b/.config/nvim/lua/plugins/language-server.lua @@ -1,68 +1,68 @@ return { - { - "mason-org/mason.nvim", - tag = "v1.11.0", - config = function() - require("mason").setup({}) - end, - }, - { - "WhoIsSethDaniel/mason-tool-installer.nvim", - config = function() - require("mason-tool-installer").setup({ - ensure_installed = { - "stylua", - "mdformat", - "hadolint", - "yamllint", - "gh-actions-language-server", - }, - }) - end, - }, - { - "mason-org/mason-lspconfig.nvim", - tag = "v1.32.0", - config = function() - require("mason-lspconfig").setup({ - ensure_installed = { - "lua_ls", - "bashls", - --"helm_ls", - "jsonls", - "nginx_language_server", - "basedpyright", - "ruff", - "yamlls", - }, - }) - end, - }, - { - "nvimtools/none-ls.nvim", - config = function() - local null_ls = require("null-ls") - null_ls.setup({ - sources = { - null_ls.builtins.formatting.stylua, - null_ls.builtins.formatting.mdformat, - null_ls.builtins.diagnostics.hadolint, - null_ls.builtins.diagnostics.yamllint.with({ - extra_args = { "-d", "rules:\n document-start: disable" }, - }), - }, - }) - vim.keymap.set("n", "af", vim.lsp.buf.format, { desc = "Auto-Format File" }) - end, - }, - { - "neovim/nvim-lspconfig", - tag = "v1.8.0", - lazy = true, - event = { "BufReadPost", "BufNewFile" }, - dependencies = { - "mason-org/mason.nvim", - "mason-org/mason-lspconfig.nvim", + { + "mason-org/mason.nvim", + tag = "v1.11.0", + config = function() + require("mason").setup({}) + end, + }, + { + "WhoIsSethDaniel/mason-tool-installer.nvim", + config = function() + require("mason-tool-installer").setup({ + ensure_installed = { + "stylua", + "mdformat", + "hadolint", + "yamllint", + "gh-actions-language-server", + }, + }) + end, + }, + { + "mason-org/mason-lspconfig.nvim", + tag = "v1.32.0", + config = function() + require("mason-lspconfig").setup({ + ensure_installed = { + "lua_ls", + "bashls", + --"helm_ls", + "jsonls", + "nginx_language_server", + "basedpyright", + "ruff", + "yamlls", + }, + }) + end, + }, + { + "nvimtools/none-ls.nvim", + config = function() + local null_ls = require("null-ls") + null_ls.setup({ + sources = { + null_ls.builtins.formatting.stylua, + null_ls.builtins.formatting.mdformat, + null_ls.builtins.diagnostics.hadolint, + null_ls.builtins.diagnostics.yamllint.with({ + extra_args = { "-d", "rules:\n document-start: disable" }, + }), + }, + }) + vim.keymap.set("n", "af", vim.lsp.buf.format, { desc = "Auto-Format File" }) + end, + }, + { + "neovim/nvim-lspconfig", + tag = "v1.8.0", + lazy = true, + event = { "BufReadPost", "BufNewFile" }, + dependencies = { + "mason-org/mason.nvim", + "mason-org/mason-lspconfig.nvim", "WhoIsSethDaniel/mason-tool-installer.nvim", }, config = function() diff --git a/.local/bin/IPMIView/account.properties b/.local/bin/IPMIView/account.properties index 51c7057..d529ab0 100644 --- a/.local/bin/IPMIView/account.properties +++ b/.local/bin/IPMIView/account.properties @@ -1,5 +1,5 @@ #MyTitle -#Sat May 31 22:29:03 PDT 2025 +#Tue Jun 10 22:56:43 PDT 2025 Backup\ Server=d_mcknight,20910561cbbef2e88188aedf1f073c0d3f7c11647d737553e2d2d761cb091480 Router=d_mcknight,72f799e88babfebe1d8700dd9156cdc3668f63d892dc71874af8f106dfc4a75f Backup\ IPMI=d_mcknight,b192b43d5829ffedaaa62b6f3806c82fad27752c443ed30a987f59d8fb9cdb6f diff --git a/.local/bin/IPMIView/smcrakp.properties b/.local/bin/IPMIView/smcrakp.properties index 0f09038..9cf49f7 100644 --- a/.local/bin/IPMIView/smcrakp.properties +++ b/.local/bin/IPMIView/smcrakp.properties @@ -1,2 +1,2 @@ #MyTitle -#Sat May 31 22:29:03 PDT 2025 +#Tue Jun 10 22:56:43 PDT 2025