From 6659e4a691534d8b954938f058d9fc66f488acae Mon Sep 17 00:00:00 2001 From: venus Date: Tue, 24 Mar 2026 22:17:27 -0500 Subject: [PATCH] adding spellcheck/grammar --- init.lua | 2 ++ lazy-lock.json | 9 +++++---- lua/keybinds.lua | 6 ++++++ lua/options.lua | 3 +++ spell/en.utf-8.add | 8 ++++++++ spell/en.utf-8.add.spl | Bin 0 -> 122 bytes 6 files changed, 24 insertions(+), 4 deletions(-) create mode 100644 spell/en.utf-8.add create mode 100644 spell/en.utf-8.add.spl diff --git a/init.lua b/init.lua index a692e7e..bb07acb 100644 --- a/init.lua +++ b/init.lua @@ -16,6 +16,7 @@ require("lazy").setup({ -- import the following list of plugins -- this is where i put plugins with minial settings { 'tpope/vim-commentary', -- commenting lines with shortcut + 'vigoux/ltex-ls.nvim', -- grammer checking -- 'vimpostor/vim-tpipeline', -- integrate with tmux status-line 'kshenoy/vim-signature', -- tag lines 'mg979/vim-visual-multi', -- work on multiple lines at once @@ -38,6 +39,7 @@ require("lazy").setup({ { "lervag/vimtex", lazy = false, init = function() vim.g.vimtex_view_method = "zathura" end }, -- for latex editing { 'windwp/nvim-autopairs', event = "InsertEnter", config = true }, { "folke/ts-comments.nvim", event = "VeryLazy", }, -- qol for commenting + { "marcinjahn/gemini-cli.nvim", cmd = "Gemini", dependencies = { "folke/snacks.nvim", }, config = true, }, }, }, -- Configure any other settings here. See the documentation for more details. diff --git a/lazy-lock.json b/lazy-lock.json index 715bbad..5c99e37 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -5,9 +5,10 @@ "bufferline.nvim": { "branch": "main", "commit": "655133c3b4c3e5e05ec549b9f8cc2894ac6f51b3" }, "dashboard-nvim": { "branch": "master", "commit": "0775e567b6c0be96d01a61795f7b64c1758262f6" }, "diffview.nvim": { "branch": "main", "commit": "4516612fe98ff56ae0415a259ff6361a89419b0a" }, - "fd": { "branch": "master", "commit": "9d137d358df10c441e51dcacc5899e43a4bee877" }, - "fzf-lua": { "branch": "main", "commit": "8a79ee54d6216d10b2f153921a12b152be0c1a20" }, - "gitsigns.nvim": { "branch": "main", "commit": "7c4faa3540d0781a28588cafbd4dd187a28ac6e3" }, + "fd": { "branch": "master", "commit": "d6b44b81b67c9af8963a3631995833e29ecfb871" }, + "fzf-lua": { "branch": "main", "commit": "3b01dc83a893749f5ae4639f1aa0af523821840a" }, + "gemini-cli.nvim": { "branch": "main", "commit": "c9fd62adda823628f5131a939d9c56ef7a898600" }, + "gitsigns.nvim": { "branch": "main", "commit": "0a80125bace82d82847d40bc2c38a22d62c6dc2d" }, "guess-indent.nvim": { "branch": "main", "commit": "84a4987ff36798c2fc1169cbaff67960aed9776f" }, "hologram.nvim": { "branch": "main", "commit": "f5194f71ec1578d91b2e3119ff08e574e2eab542" }, "inc-rename.nvim": { "branch": "main", "commit": "0074b551a17338ccdcd299bd86687cc651bcb33d" }, @@ -27,7 +28,7 @@ "nvim-tree.lua": { "branch": "master", "commit": "3d385d3346e4883d60dc37cf642bd47bed78a46e" }, "nvim-treesitter": { "branch": "main", "commit": "6620ae1c44dfa8623b22d0cbf873a9e8d073b849" }, "nvim-web-devicons": { "branch": "master", "commit": "d7462543c9e366c0d196c7f67a945eaaf5d99414" }, - "obsidian.nvim": { "branch": "main", "commit": "6ea8b9d1ce10dd41795f298dd7f4dd3a26887d39" }, + "obsidian.nvim": { "branch": "main", "commit": "c165637e159284931d981261d8aed9b60c211874" }, "plenary.nvim": { "branch": "master", "commit": "b9fd5226c2f76c951fc8ed5923d85e4de065e509" }, "presence.nvim": { "branch": "main", "commit": "87c857a56b7703f976d3a5ef15967d80508df6e6" }, "render-markdown.nvim": { "branch": "main", "commit": "e3c18ddd27a853f85a6f513a864cf4f2982b9f26" }, diff --git a/lua/keybinds.lua b/lua/keybinds.lua index 16a6c04..12968ac 100644 --- a/lua/keybinds.lua +++ b/lua/keybinds.lua @@ -62,3 +62,9 @@ vim.keymap.set("n", "", "J", { desc = "Move window to the lower" }) vim.keymap.set("n", "", "K", { desc = "Move window to the upper" }) vim.keymap.set("n", "e", "NvimTreeToggle", {desc = 'open [E]xplorer'}) + + -- gemini CLI bindings +vim.keymap.set('n', "a/", "Gemini toggle", { desc = "Toggle Gemini CLI" }) +vim.keymap.set('n', "aa", "Gemini toggle", { desc = "Toggle Gemini CLI" }) +vim.keymap.set('n', "aq", "Gemini ask", { desc = "Ask Gemini", }) +vim.keymap.set('n', "af", "Gemini add_file", { desc = "Add File"} ) diff --git a/lua/options.lua b/lua/options.lua index c631fe8..3d2ee5f 100644 --- a/lua/options.lua +++ b/lua/options.lua @@ -9,8 +9,11 @@ vim.g.have_nerd_font = true vim.g.loaded_netrw = 1 vim.g.loaded_netrwPlugin = 1 +vim.opt.spellcapcheck = "" -- [[Setting options]] +vim.o.spell = true +vim.o.spelllang = 'en_us' vim.o.number = true -- Make line numbers default vim.o.relativenumber = true vim.o.showmode = false diff --git a/spell/en.utf-8.add b/spell/en.utf-8.add new file mode 100644 index 0000000..927b718 --- /dev/null +++ b/spell/en.utf-8.add @@ -0,0 +1,8 @@ +#xploring +gzipped +ext4 +picoCTF +#othing +symlinked +Openrc +dir diff --git a/spell/en.utf-8.add.spl b/spell/en.utf-8.add.spl new file mode 100644 index 0000000000000000000000000000000000000000..e4b46dd5766a18b88bc3af46d90da3102d6bdc61 GIT binary patch literal 122 zcmWIZ^erw(&B-zP&%nUo%9fIvo?lSRn8{eg$iP^^Si;E2z`$+7SOpX*0K!x-KLyOn z1FA`8WMTqJB{Sv&aS3A@BU1xoC1WmQ4p1-;q*gi`XsiHGJw%Z+V+f-gP#6RNLpv5P literal 0 HcmV?d00001