summaryrefslogtreecommitdiff
path: root/dot-config/nvim/lua
diff options
context:
space:
mode:
authorJosé Juan Loeza Sierra <jj@xz6ze.com>2026-03-31 20:51:00 -0700
committerJosé Juan Loeza Sierra <jj@xz6ze.com>2026-03-31 20:51:00 -0700
commit6bd0938c018b52c138d608977043467eae93fefd (patch)
treed938dd42afa04270c8983509d3c2eb5b624066f9 /dot-config/nvim/lua
parent288f9c41275288a2bd0193986f22206c81c2b5cf (diff)
remove neovim
Diffstat (limited to 'dot-config/nvim/lua')
-rw-r--r--dot-config/nvim/lua/my-lualine-theme.lua43
-rw-r--r--dot-config/nvim/lua/spellcheck.lua37
-rw-r--r--dot-config/nvim/lua/wordcount.lua32
3 files changed, 0 insertions, 112 deletions
diff --git a/dot-config/nvim/lua/my-lualine-theme.lua b/dot-config/nvim/lua/my-lualine-theme.lua
deleted file mode 100644
index f42d331..0000000
--- a/dot-config/nvim/lua/my-lualine-theme.lua
+++ /dev/null
@@ -1,43 +0,0 @@
-local gh = require("github-theme.spec").load("github_light")
-
-local colors = {
- bg = gh.bg1,
- alt_bg = gh.bg0,
- dark_fg = gh.palette.fg.emphasis,
- fg = gh.palette.fg.default,
- light_fg = gh.palette.fg.subtle,
- normal = gh.palette.blue.base,
- insert = gh.palette.green.base,
- visual = gh.palette.magenta.base,
- replace = gh.palette.red.base,
-}
-
-local theme = {
- normal = {
- a = { fg = colors.bg, bg = colors.normal },
- b = { fg = colors.light_fg, bg = colors.alt_bg },
- c = { fg = colors.fg, bg = colors.bg },
- },
- replace = {
- a = { fg = colors.bg, bg = colors.replace },
- b = { fg = colors.light_fg, bg = colors.alt_bg },
- },
- insert = {
- a = { fg = colors.bg, bg = colors.insert },
- b = { fg = colors.light_fg, bg = colors.alt_bg },
- },
- visual = {
- a = { fg = colors.bg, bg = colors.visual },
- b = { fg = colors.light_fg, bg = colors.alt_bg },
- },
- inactive = {
- a = { fg = colors.dark_fg, bg = colors.bg },
- b = { fg = colors.dark_fg, bg = colors.bg },
- c = { fg = colors.dark_fg, bg = colors.bg },
- },
-}
-
-theme.command = theme.normal
-theme.terminal = theme.insert
-
-return theme
diff --git a/dot-config/nvim/lua/spellcheck.lua b/dot-config/nvim/lua/spellcheck.lua
deleted file mode 100644
index 8ebc8c5..0000000
--- a/dot-config/nvim/lua/spellcheck.lua
+++ /dev/null
@@ -1,37 +0,0 @@
--- To enable spellchecking
---
--- Credits
--- https://www.reddit.com/r/neovim/comments/1fwqc8t/how_to_enable_spell_check_for_only_specific_files/
-
-local M = {}
-
-local default_config = {
- filetypes = { "markdown" },
-}
-
-local function enable_spell(config)
- config = config or default_config
-
- -- Set global spell to false initially for all files
- vim.opt.spell = false
-
- -- Create augroup
- vim.api.nvim_create_augroup("Spellcheck", { clear = true })
-
- -- Create autocommand to enable spellcheck
- vim.api.nvim_create_autocmd({ "FileType" }, {
- group = "Spellcheck", -- Grouping for easier management
- pattern = config.filetypes, -- Only for these filetypes
- callback = function()
- vim.opt_local.spell = true -- Enable spellcheck
- vim.opt_local.spelllang = "en_us" -- Set language
- end,
- desc = "Enable spellcheck for defined filetypes",
- })
-end
-
-function M.setup(config)
- enable_spell(config)
-end
-
-return M
diff --git a/dot-config/nvim/lua/wordcount.lua b/dot-config/nvim/lua/wordcount.lua
deleted file mode 100644
index 1ff5579..0000000
--- a/dot-config/nvim/lua/wordcount.lua
+++ /dev/null
@@ -1,32 +0,0 @@
--- Wordcount in markdown
---
--- Credits
--- https://github.com/nvim-lualine/lualine.nvim/issues/328#issuecomment-982672253
--- https://github.com/skwee357/nvim-prose
-
-local M = {}
-
-local config = {
- filetypes = { "markdown", "text", "typst" },
-}
-
-local function format_wc(n)
- return tostring(n) .. " words"
-end
-
-function M.wordcount()
- local wc = vim.fn.wordcount()
- return (wc.visual_words and format_wc(wc.visual_words)) or format_wc(wc.words)
-end
-
-function M.is_available()
- for _, ft in ipairs(config.filetypes) do
- if ft == vim.bo.filetype then
- return true
- end
- end
-
- return false
-end
-
-return M