Skip to content

Commit af0ec34

Browse files
committed
[penvim] add new plugin
1 parent 2c0b095 commit af0ec34

File tree

2 files changed

+47
-8
lines changed

2 files changed

+47
-8
lines changed

lua/packer_nvim.lua

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -157,11 +157,6 @@ return packer.startup {
157157
config = [[ require('plugins/indent-blankline_nvim') ]]
158158
}
159159

160-
use { -- to change current working directory to project's root directory.
161-
'ygm2/rooter.nvim',
162-
config = [[ require('plugins/rooter_nvim') ]]
163-
}
164-
165160
use { -- Git signs written in pure lua
166161
'lewis6991/gitsigns.nvim',
167162
requires = {'nvim-lua/plenary.nvim'},
@@ -198,9 +193,9 @@ return packer.startup {
198193
config = [[ require('plugins/alpha-nvim') ]]
199194
}
200195

201-
use { -- Prismatic line decorations for the adventurous vim user
202-
'mvllow/modes.nvim',
203-
config = [[ require('plugins/modes_nvim') ]]
196+
use {
197+
'shaeinst/penvim', -- smart indent and project detector with project based config loader
198+
config = [[ require('plugins/penvim') ]]
204199
}
205200

206201
-- ━━━━━━━━━━━━━━━━━❰ DEVELOPMENT ❱━━━━━━━━━━━━━━━━━ --

lua/plugins/penvim.lua

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
2+
-- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ --
3+
-- ───────────────────────────────────────────────── --
4+
-- Plugin: penvim
5+
-- Github: github.com/shaeinst/penvim
6+
-- ───────────────────────────────────────────────── --
7+
-- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ --
8+
9+
10+
11+
12+
13+
-- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ --
14+
-- ━━━━━━━━━━━━━━━━━━━❰ configs ❱━━━━━━━━━━━━━━━━━━━ --
15+
-- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ --
16+
17+
require("penvim").setup({
18+
19+
project_env = {
20+
enable = true,
21+
config_name = '.__nvim__.lua'
22+
},
23+
24+
rooter = {
25+
enable = true,
26+
patterns = {'.__nvim__.lua'},
27+
28+
},
29+
30+
indentor = {
31+
enable = true,
32+
length = 4,
33+
},
34+
35+
-- langs = {
36+
-- enable = true,
37+
-- }
38+
39+
})
40+
41+
-- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ --
42+
-- ━━━━━━━━━━━━━━━━━❰ end configs ❱━━━━━━━━━━━━━━━━━ --
43+
-- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ --
44+

0 commit comments

Comments
 (0)