summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authorKyren223 <kyren223@proton.me>2025-08-16 18:57:52 +0300
committerKyren223 <kyren223@proton.me>2025-08-16 18:57:52 +0300
commita71561a74a1dd53b10624a36f77ab4e4953c81bc (patch)
tree99b0b2b94f3a30a05ad9ee4ee25d172f6f0aa4b1 /.config
parentf9fc6ebe78ac9553eed4f8031e4d0697b734b371 (diff)
Added latex stuff
Diffstat (limited to '.config')
-rw-r--r--.config/k/config.toml2
-rw-r--r--.config/nvim/after/ftplugin/latex.lua11
-rw-r--r--.config/nvim/lazy-lock.json1
-rw-r--r--.config/nvim/lua/plugins/vimtex.lua7
4 files changed, 20 insertions, 1 deletions
diff --git a/.config/k/config.toml b/.config/k/config.toml
index 237391e..04ed81b 100644
--- a/.config/k/config.toml
+++ b/.config/k/config.toml
@@ -1,4 +1,4 @@
github-user = "kyren223"
[workspace]
-paths = ["$HOME/projects", "$HOME/personal", "$HOME/"]
+paths = ["$HOME/projects", "$HOME/personal", "$HOME/Documents", "$HOME/"]
diff --git a/.config/nvim/after/ftplugin/latex.lua b/.config/nvim/after/ftplugin/latex.lua
new file mode 100644
index 0000000..3d04ff0
--- /dev/null
+++ b/.config/nvim/after/ftplugin/latex.lua
@@ -0,0 +1,11 @@
+Event = 'VeryLazy'
+
+vim.opt_local.tabstop = 2 -- number of visual spaces per TAB
+vim.opt_local.softtabstop = 2 -- number of idfk tab when editing
+vim.opt_local.shiftwidth = 2 -- number of spaces to insert on tab
+
+vim.opt_local.wrap = true
+vim.opt_local.breakindent = true
+vim.opt_local.linebreak = true
+vim.keymap.set('n', 'j', 'gj')
+vim.keymap.set('n', 'k', 'gk')
diff --git a/.config/nvim/lazy-lock.json b/.config/nvim/lazy-lock.json
index dea897d..2d78193 100644
--- a/.config/nvim/lazy-lock.json
+++ b/.config/nvim/lazy-lock.json
@@ -55,6 +55,7 @@
"vim-table-mode": { "branch": "master", "commit": "e4365bde024f73e205eefa2fb78e3029ddb92ea9" },
"vim-tmux-navigator": { "branch": "master", "commit": "c45243dc1f32ac6bcf6068e5300f3b2b237e576a" },
"vim-wakatime": { "branch": "master", "commit": "3403495670f0ee08887401a28f8430dc4ac67429" },
+ "vimtex": { "branch": "master", "commit": "6fabe8b7b5e83f753eb930036b1d941b2f7d3d4d" },
"vscode-codicons": { "branch": "main", "commit": "deaeb5ac5e0a066da399919928b77ce5ee40db34" },
"workspace-diagnostics.nvim": { "branch": "main", "commit": "60f9175b2501ae3f8b1aba9719c0df8827610c8e" }
}
diff --git a/.config/nvim/lua/plugins/vimtex.lua b/.config/nvim/lua/plugins/vimtex.lua
new file mode 100644
index 0000000..3c1c751
--- /dev/null
+++ b/.config/nvim/lua/plugins/vimtex.lua
@@ -0,0 +1,7 @@
+return {
+ 'lervag/vimtex',
+ lazy = false, -- we don't want to lazy load VimTeX
+ init = function()
+ vim.g.vimtex_view_method = 'zathura'
+ end,
+}