summaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
authorAndrew Guschin <guschin@altlinux.org>2024-02-14 15:45:48 +0400
committerAndrew Guschin <guschin@altlinux.org>2024-02-14 15:45:48 +0400
commitd53d48975c0ed4aec92bc5bc0fcbe5c6662c8a69 (patch)
tree9cf22e045b2e82b20e002dd87f999928249be09c /lua
parentb5e8751e3a35d560e60a6839a0c80d73d648cb2f (diff)
add new plugins
- neorg plugin with couple of modules and default directory - plugin for typst support - vim-fugitive - true zen with added keybinding
Diffstat (limited to 'lua')
-rw-r--r--lua/keybindings.lua7
-rw-r--r--lua/plugins.lua36
2 files changed, 36 insertions, 7 deletions
diff --git a/lua/keybindings.lua b/lua/keybindings.lua
index e10e458..2c72e54 100644
--- a/lua/keybindings.lua
+++ b/lua/keybindings.lua
@@ -42,3 +42,10 @@ function trim_whitespace()
vim.fn.winrestview(view)
end
vim.keymap.set("n", "<leader>f", trim_whitespace)
+
+
+-- PLUGINS --
+
+-- True Zen
+vim.keymap.set("n", "tz", ":TZAtaraxis<CR>")
+
diff --git a/lua/plugins.lua b/lua/plugins.lua
index 0a22d75..b5c2c57 100644
--- a/lua/plugins.lua
+++ b/lua/plugins.lua
@@ -11,14 +11,7 @@ if not vim.loop.fs_stat(lazypath) then
end
vim.opt.rtp:prepend(lazypath)
--- Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
--- Plug 'junegunn/fzf.vim'
--- Plug 'tpope/vim-fugitive'
-- Plug 'hrsh7th/vim-vsnip'
---
--- " Languages
--- Plug 'prabirshrestha/vim-lsp'
-
require("lazy").setup({
{ "numToStr/Comment.nvim", lazy = false, opts = {} },
@@ -29,6 +22,7 @@ require("lazy").setup({
options = {
icons_enabled = false,
theme = "powerline",
+ -- theme = "onelight",
},
}
},
@@ -52,5 +46,33 @@ require("lazy").setup({
},
"lervag/vimtex",
"powerman/vim-plugin-ruscmd",
+ "tpope/vim-fugitive",
+ {
+ 'nvim-neorg/neorg',
+ ft = 'norg',
+ cmd = 'Neorg',
+ priority = 30,
+ config = function()
+ require('neorg').setup {
+ load = {
+ ['core.defaults'] = {},
+ ['core.concealer'] = {},
+ ['core.dirman'] = {
+ config = {
+ workspaces = {
+ notes = "~/Documents/Notes/norg"
+ },
+ }
+ },
+ },
+ }
+ end
+ },
+ {
+ 'kaarmu/typst.vim',
+ ft = 'typst',
+ lazy = false,
+ },
+ "pocco81/true-zen.nvim",
})