diff options
author | Yigit Sever | 2024-10-10 10:06:14 +0200 |
---|---|---|
committer | Yigit Sever | 2024-10-10 10:06:14 +0200 |
commit | f5f41ed79cab9628ecb401611f885758bfc614d6 (patch) | |
tree | 1e7e9c6f8b2b8bf00ab5f0d5cfcfe1cf7987c1cf /.config/nvim | |
parent | 9746cb182f59b43e3d17ec044d1afd8ffb5b07da (diff) | |
download | dotfiles-f5f41ed79cab9628ecb401611f885758bfc614d6.tar.gz dotfiles-f5f41ed79cab9628ecb401611f885758bfc614d6.tar.bz2 dotfiles-f5f41ed79cab9628ecb401611f885758bfc614d6.zip |
nvim: lazy load bunch of plugins
Diffstat (limited to '.config/nvim')
-rw-r--r-- | .config/nvim/lua/plugins/git.lua | 1 | ||||
-rw-r--r-- | .config/nvim/lua/plugins/lsp.lua | 2 | ||||
-rw-r--r-- | .config/nvim/lua/plugins/lualine.lua | 1 | ||||
-rw-r--r-- | .config/nvim/lua/plugins/nvim-tree.lua | 1 | ||||
-rw-r--r-- | .config/nvim/lua/plugins/telescope.lua | 1 | ||||
-rw-r--r-- | .config/nvim/lua/plugins/vimwiki.lua | 15 |
6 files changed, 11 insertions, 10 deletions
diff --git a/.config/nvim/lua/plugins/git.lua b/.config/nvim/lua/plugins/git.lua index d8e27f9..ca5c119 100644 --- a/.config/nvim/lua/plugins/git.lua +++ b/.config/nvim/lua/plugins/git.lua | |||
@@ -103,6 +103,7 @@ return { | |||
103 | "sindrets/diffview.nvim", -- optional - Diff integration | 103 | "sindrets/diffview.nvim", -- optional - Diff integration |
104 | "nvim-telescope/telescope.nvim", -- optional | 104 | "nvim-telescope/telescope.nvim", -- optional |
105 | }, | 105 | }, |
106 | cmd="Neogit", | ||
106 | config = true | 107 | config = true |
107 | } | 108 | } |
108 | } | 109 | } |
diff --git a/.config/nvim/lua/plugins/lsp.lua b/.config/nvim/lua/plugins/lsp.lua index 88ebd12..5153eaf 100644 --- a/.config/nvim/lua/plugins/lsp.lua +++ b/.config/nvim/lua/plugins/lsp.lua | |||
@@ -1,6 +1,8 @@ | |||
1 | return { | 1 | return { |
2 | { | 2 | { |
3 | "neovim/nvim-lspconfig", | 3 | "neovim/nvim-lspconfig", |
4 | event = { "BufReadPost", "BufNewFile" }, | ||
5 | cmd = { "LspInfo", "LspInstall", "LspUninstall" }, | ||
4 | dependencies = { | 6 | dependencies = { |
5 | "j-hui/fidget.nvim", | 7 | "j-hui/fidget.nvim", |
6 | "RRethy/vim-illuminate", | 8 | "RRethy/vim-illuminate", |
diff --git a/.config/nvim/lua/plugins/lualine.lua b/.config/nvim/lua/plugins/lualine.lua index c4e936e..ba1099e 100644 --- a/.config/nvim/lua/plugins/lualine.lua +++ b/.config/nvim/lua/plugins/lualine.lua | |||
@@ -30,6 +30,7 @@ end | |||
30 | 30 | ||
31 | return { | 31 | return { |
32 | "nvim-lualine/lualine.nvim", | 32 | "nvim-lualine/lualine.nvim", |
33 | event = "VeryLazy", | ||
33 | dependencies = { | 34 | dependencies = { |
34 | "nvim-tree/nvim-web-devicons" | 35 | "nvim-tree/nvim-web-devicons" |
35 | }, | 36 | }, |
diff --git a/.config/nvim/lua/plugins/nvim-tree.lua b/.config/nvim/lua/plugins/nvim-tree.lua index 422a402..667a873 100644 --- a/.config/nvim/lua/plugins/nvim-tree.lua +++ b/.config/nvim/lua/plugins/nvim-tree.lua | |||
@@ -1,7 +1,6 @@ | |||
1 | return { | 1 | return { |
2 | { | 2 | { |
3 | "nvim-tree/nvim-tree.lua", | 3 | "nvim-tree/nvim-tree.lua", |
4 | lazy = false, | ||
5 | dependencies = { | 4 | dependencies = { |
6 | "nvim-tree/nvim-web-devicons", | 5 | "nvim-tree/nvim-web-devicons", |
7 | }, | 6 | }, |
diff --git a/.config/nvim/lua/plugins/telescope.lua b/.config/nvim/lua/plugins/telescope.lua index 6acc9a6..40c99a4 100644 --- a/.config/nvim/lua/plugins/telescope.lua +++ b/.config/nvim/lua/plugins/telescope.lua | |||
@@ -11,7 +11,6 @@ return { | |||
11 | }, | 11 | }, |
12 | "gbprod/yanky.nvim", | 12 | "gbprod/yanky.nvim", |
13 | }, | 13 | }, |
14 | lazy = false, | ||
15 | config = function() | 14 | config = function() |
16 | require('telescope').setup({ | 15 | require('telescope').setup({ |
17 | defaults = { | 16 | defaults = { |
diff --git a/.config/nvim/lua/plugins/vimwiki.lua b/.config/nvim/lua/plugins/vimwiki.lua index a114b04..5f1d661 100644 --- a/.config/nvim/lua/plugins/vimwiki.lua +++ b/.config/nvim/lua/plugins/vimwiki.lua | |||
@@ -1,6 +1,6 @@ | |||
1 | return { | 1 | return { |
2 | { | 2 | { |
3 | "yigitsever/vimwiki", | 3 | "vimwiki/vimwiki", |
4 | init = function() | 4 | init = function() |
5 | vim.g.vimwiki_list = { | 5 | vim.g.vimwiki_list = { |
6 | { | 6 | { |
@@ -17,13 +17,12 @@ return { | |||
17 | } | 17 | } |
18 | vim.g.vimwiki_global_ext = 0 | 18 | vim.g.vimwiki_global_ext = 0 |
19 | vim.g.vimwiki_hl_headers = 1 | 19 | vim.g.vimwiki_hl_headers = 1 |
20 | |||
21 | local map = require("helpers.keys").map | ||
22 | |||
23 | --toggle checkmarks | ||
24 | map('n', '<leader>v', '<Plug>VimwikiToggleListItem', "vimwiki: toggle checkmark") | ||
25 | -- add/increase header level | ||
26 | map('n', '<leader>a', '<Plug>VimwikiAddHeaderLevel', "vimwiki: add header level") | ||
27 | end, | 20 | end, |
21 | keys = { | ||
22 | { "<leader>ww", "<cmd>VimwikiIndex<cr>", "vimwiki: goto wiki" }, | ||
23 | { "<leader>v", "<cmd>VimwikiToggleListItem<cr>", "vimwiki: toggle checkmark" }, | ||
24 | { "<leader>a", "<cmd>VimwikiAddHeaderLevel<cr>", "vimwiki: add header level" } | ||
25 | }, | ||
26 | ft = { "vimwiki" } | ||
28 | }, | 27 | }, |
29 | } | 28 | } |