fix(neovim): Paths changed to be OS agnostic

- Use `vim.loop.os_homedir()` instead of `~`
This commit is contained in:
Pratik Tripathy
2025-09-01 16:51:19 +05:30
parent 38f6e7b1a2
commit 921618f99c
5 changed files with 10 additions and 8 deletions

View File

@@ -48,7 +48,7 @@ return {
markdownlint = {
prepend_args = {
"--config",
"~/.config/templates/markdownlint.json",
vim.loop.os_homedir() .. "/.config/templates/markdownlint.json",
},
},
["markdown-toc"] = {

View File

@@ -26,7 +26,7 @@ return {
local markdownlint = lint.linters.markdownlint
markdownlint.args = {
"--config",
"~/.config/templates/markdownlint.json",
vim.loop.os_homedir() .. "/.config/templates/markdownlint.json",
"--",
}

View File

@@ -174,7 +174,7 @@ return {
scratch = {
enabled = true,
ft = "markdown",
root = "~/Code/journal/scratch",
root = vim.loop.os_homedir() .. "/Code/journal/scratch",
},
words = { enabled = true },
zen = { enabled = true, toggles = { dim = true } },
@@ -283,6 +283,10 @@ return {
-- Navigate between NVIM & kitty splits
{
"knubie/vim-kitty-navigator",
enabled = function()
-- Kitty isn't available on Windows
return vim.loop.os_uname().sysname ~= "Windows_NT"
end,
cond = require("config.util").is_not_vscode(),
build = "cp ./*.py ~/.config/kitty/",
keys = {