updated spellcheck with keybinds and default off on most filetypes
This commit is contained in:
@@ -5,8 +5,8 @@
|
||||
"bufferline.nvim": { "branch": "main", "commit": "655133c3b4c3e5e05ec549b9f8cc2894ac6f51b3" },
|
||||
"dashboard-nvim": { "branch": "master", "commit": "0775e567b6c0be96d01a61795f7b64c1758262f6" },
|
||||
"diffview.nvim": { "branch": "main", "commit": "4516612fe98ff56ae0415a259ff6361a89419b0a" },
|
||||
"fd": { "branch": "master", "commit": "d6b44b81b67c9af8963a3631995833e29ecfb871" },
|
||||
"fzf-lua": { "branch": "main", "commit": "3b01dc83a893749f5ae4639f1aa0af523821840a" },
|
||||
"fd": { "branch": "master", "commit": "8a7ff7d4383eb2a5fb1469e504a341e2e3565d13" },
|
||||
"fzf-lua": { "branch": "main", "commit": "b2abbb7d122c94e893ed4ac359ede2af39aed989" },
|
||||
"gemini-cli.nvim": { "branch": "main", "commit": "c9fd62adda823628f5131a939d9c56ef7a898600" },
|
||||
"gitsigns.nvim": { "branch": "main", "commit": "0a80125bace82d82847d40bc2c38a22d62c6dc2d" },
|
||||
"guess-indent.nvim": { "branch": "main", "commit": "84a4987ff36798c2fc1169cbaff67960aed9776f" },
|
||||
@@ -19,13 +19,13 @@
|
||||
"mason.nvim": { "branch": "main", "commit": "44d1e90e1f66e077268191e3ee9d2ac97cc18e65" },
|
||||
"mini.nvim": { "branch": "main", "commit": "439cdcd6992bc9012efd7d8ed7a7b7a0f1fac32a" },
|
||||
"mini.pick": { "branch": "main", "commit": "fe079c2bd894a5ee70b62f23d819620ef40c4949" },
|
||||
"neogit": { "branch": "master", "commit": "d3890fc3cdf0859845a86b2be306bba01458df1a" },
|
||||
"neogit": { "branch": "master", "commit": "64b1a01a9fc3d3ee8b2368230563bedf3eb66e54" },
|
||||
"nui.nvim": { "branch": "main", "commit": "de740991c12411b663994b2860f1a4fd0937c130" },
|
||||
"nvim-autopairs": { "branch": "master", "commit": "59bce2eef357189c3305e25bc6dd2d138c1683f5" },
|
||||
"nvim-colorizer.lua": { "branch": "master", "commit": "a065833f35a3a7cc3ef137ac88b5381da2ba302e" },
|
||||
"nvim-dap": { "branch": "master", "commit": "a9d8cb68ee7184111dc66156c4a2ebabfbe01bc5" },
|
||||
"nvim-java": { "branch": "main", "commit": "602a5f7fa92f9c1d425a2159133ff9de86842f0a" },
|
||||
"nvim-lspconfig": { "branch": "master", "commit": "841c6d4139aedb8a3f2baf30cef5327371385b93" },
|
||||
"nvim-lspconfig": { "branch": "master", "commit": "46204c8fdaa36a9aa3768780450e4bc7a210025f" },
|
||||
"nvim-tree.lua": { "branch": "master", "commit": "3d385d3346e4883d60dc37cf642bd47bed78a46e" },
|
||||
"nvim-treesitter": { "branch": "main", "commit": "6620ae1c44dfa8623b22d0cbf873a9e8d073b849" },
|
||||
"nvim-web-devicons": { "branch": "master", "commit": "d7462543c9e366c0d196c7f67a945eaaf5d99414" },
|
||||
|
||||
@@ -31,3 +31,16 @@ vim.api.nvim_create_autocmd('TextYankPost', {
|
||||
end,
|
||||
})
|
||||
|
||||
-- Create an augroup to manage our spellcheck autocommands
|
||||
local spell_group = vim.api.nvim_create_augroup("EnableSpellcheck", { clear = true })
|
||||
|
||||
vim.api.nvim_create_autocmd("FileType", {
|
||||
group = spell_group,
|
||||
-- List the filetypes you want to enable spellcheck for
|
||||
pattern = { "markdown", "text", "gitcommit", "latex", "plaintex" },
|
||||
callback = function()
|
||||
vim.opt_local.spell = true
|
||||
vim.opt_local.spelllang = "en_us" -- Optional: set your preferred language
|
||||
vim.opt_local.spelloptions = "camel"
|
||||
end,
|
||||
})
|
||||
|
||||
@@ -68,3 +68,7 @@ vim.keymap.set('n', "<leader>a/", "<cmd>Gemini toggle<cr>", { desc = "Toggle Gem
|
||||
vim.keymap.set('n', "<leader>aa", "<cmd>Gemini toggle<cr>", { desc = "Toggle Gemini CLI" })
|
||||
vim.keymap.set('n', "<leader>aq", "<cmd>Gemini ask<cr>", { desc = "Ask Gemini", })
|
||||
vim.keymap.set('n', "<leader>af", "<cmd>Gemini add_file<cr>", { desc = "Add File"} )
|
||||
|
||||
-- spellcheck keybind to toggle on current buffer
|
||||
vim.keymap.set('n', "<leader>ze", "<cmd>setlocal spell<cr>", { desc = "enable spellecheck on buffer" })
|
||||
vim.keymap.set('n', "<leader>zd", "<cmd>setlocal nospell<cr>", { desc = "Disable spellecheck on buffer" })
|
||||
|
||||
@@ -9,11 +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.spell = false -- turn on spellcheck
|
||||
vim.o.spelllang = 'en_us' -- set English as spellcheck language
|
||||
vim.opt.spellcapcheck = ""
|
||||
vim.o.number = true -- Make line numbers default
|
||||
vim.o.relativenumber = true
|
||||
vim.o.showmode = false
|
||||
|
||||
@@ -13,3 +13,6 @@ unix
|
||||
linux
|
||||
netcat
|
||||
Ransomware
|
||||
tmux
|
||||
Pico
|
||||
Pico
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user