1
0
Эх сурвалжийг харах

nixpkgs/neovim: make kulala lazy

Thomas Dy 3 долоо хоног өмнө
parent
commit
4e35e82fcd

+ 1 - 0
.config/nixpkgs/neovim/config/ftplugin/http.lua

@@ -0,0 +1 @@
+require('user.rest')

+ 0 - 6
.config/nixpkgs/neovim/config/lua/user/plugins.lua

@@ -330,12 +330,6 @@ require('mini.files').setup({
   }
 })
 
--- rest client
-require('kulala').setup({
-  global_keymaps = true,
-  global_keymaps_prefix = '<leader>r'
-})
-
 -- Use Treesitter for syntax highlighting
 require('nvim-treesitter.configs').setup({
   highlight = {

+ 6 - 0
.config/nixpkgs/neovim/config/lua/user/rest.lua

@@ -0,0 +1,6 @@
+vim.cmd.packadd('kulala.nvim')
+
+require('kulala').setup({
+  global_keymaps = true,
+  global_keymaps_prefix = '<leader>r'
+})

+ 1 - 0
.config/nixpkgs/neovim/plugins/sources.json

@@ -69,6 +69,7 @@
     "sha256": "1jglqdc6sc593841694sn9p2hswg2iqifwjij6d553l228k8k8pl"
   },
   "mistweaverco/kulala.nvim": {
+    "optional": true,
     "rev": "6b6e1c8b538cce6654cfc5fb3e4a3acfa316ce57",
     "sha256": "07sgyqnlsm0zgxfg5ir3kmxbhy53h7bw14hiylvixdbp1x3xhn3h"
   },