File tree Expand file tree Collapse file tree 5 files changed +61
-9
lines changed Expand file tree Collapse file tree 5 files changed +61
-9
lines changed Original file line number Diff line number Diff line change 13
13
} ;
14
14
} ;
15
15
16
+ rest-nvim = pkgs . vimUtils . buildVimPlugin {
17
+ name = "rest-nvim" ;
18
+ src = pkgs . fetchFromGitHub {
19
+ owner = "rest-nvim" ;
20
+ repo = "rest.nvim" ;
21
+ rev = "v1.2.1" ;
22
+ sha256 = "sha256-fX4KIazW7iKO157cQdfBoz7g+eyOSQIFje8ZB7SeAx8=" ;
23
+ } ;
24
+ } ;
25
+
26
+ # TODO:
27
+ # 1. this is canary version, once v2 is stable, change it.
28
+ # 1. update config and keymap
29
+ hurl-nvim = pkgs . vimUtils . buildVimPlugin {
30
+ name = "hurl-nvim" ;
31
+ src = pkgs . fetchFromGitHub {
32
+ owner = "jellydn" ;
33
+ repo = "hurl.nvim" ;
34
+ rev = "canary" ;
35
+ sha256 = "sha256-RSMEInn2yUfufcHM6SKgD1EmmW2vt57o+kvTYrI/jTo=" ;
36
+ } ;
37
+ } ;
38
+
16
39
colorscheme = with pkgs . vimPlugins ; [
17
40
solarized-nvim
18
41
] ;
40
63
tree-sitter-toml
41
64
tree-sitter-yaml
42
65
tree-sitter-markdown
66
+ hurl
43
67
] ) )
44
68
nvim-treesitter-context
45
69
nvim-treesitter-textobjects
67
91
neotest-go
68
92
nvim-coverage
69
93
rest-nvim
94
+ hurl-nvim
70
95
] ;
71
96
72
97
telescope = with pkgs . vimPlugins ; [
83
108
lualine-nvim
84
109
nvim-web-devicons
85
110
nvim-colorizer-lua
111
+ nui-nvim
86
112
] ;
87
113
88
114
git = with pkgs . vimPlugins ; [
122
148
manix
123
149
luajit
124
150
lua-language-server
151
+ luarocks
125
152
go
126
153
gopls
127
154
delve
137
164
jdt-language-server
138
165
flutter
139
166
ast-grep
167
+ hurl
140
168
] ;
141
169
142
170
home-manager . sharedModules = [ {
146
174
vimAlias = true ;
147
175
defaultEditor = true ;
148
176
extraLuaConfig = builtins . readFile ./init.lua ;
177
+ extraLuaPackages = ps : [ ps . luarocks ] ;
149
178
plugins =
150
179
colorscheme ++
151
180
treesitter ++
163
192
recursive = true ;
164
193
source = ./lua ;
165
194
} ;
195
+ "nvim/ftplugin" = {
196
+ recursive = true ;
197
+ source = ./ftplugin ;
198
+ } ;
166
199
} ;
167
200
} ] ;
168
201
} ;
Original file line number Diff line number Diff line change
1
+ vim .bo .formatexpr = ' '
2
+ vim .bo .formatprg = ' jq'
Original file line number Diff line number Diff line change @@ -109,6 +109,7 @@ telescope.load_extension('file_browser')
109
109
telescope .load_extension (' manix' )
110
110
telescope .load_extension (' dap' )
111
111
telescope .load_extension (' git_worktree' )
112
+ telescope .load_extension (' rest' )
112
113
113
114
local nmap = Lib .keymapper (' n' , { silent = true })
114
115
nmap (' <C-p>' , builtin .find_files )
@@ -120,3 +121,4 @@ nmap('<Leader>fk', builtin.keymaps)
120
121
-- nmap('<Leader>fb', extensions.file_browser.file_browser)
121
122
nmap (' <Leader>fg' , extensions .live_grep_args .live_grep_args )
122
123
nmap (' <Leader>fn' , extensions .manix .manix )
124
+ nmap (' <Leader>en' , extensions .rest .select_env )
Original file line number Diff line number Diff line change 1
1
local neotest = require (' neotest' )
2
2
local coverage = require (' coverage' )
3
3
local rest_nvim = require (' rest-nvim' )
4
+ local hurl = require (' hurl' )
4
5
5
6
coverage .setup {
6
7
commands = false ,
7
8
}
8
9
9
- rest_nvim .setup ()
10
-
11
10
vim .api .nvim_create_autocmd (' ColorScheme' , {
12
11
desc = ' Add nvim-coverage highlight' ,
13
12
callback = function ()
@@ -41,6 +40,15 @@ neotest.setup {
41
40
},
42
41
}
43
42
43
+ rest_nvim .setup {
44
+ result = {
45
+ show_curl_command = true ,
46
+ }
47
+ }
48
+
49
+ hurl .setup {
50
+ env_file = { ' .env' },
51
+ }
44
52
45
53
local nmap = Lib .keymapper (' n' , { silent = true })
46
54
nmap (' <Leader>tt' , function () neotest .run .run (vim .fn .expand (' %:h' )) end , ' [t]es[t]' )
Original file line number Diff line number Diff line change 1
1
local lualine = require (' lualine' )
2
2
3
3
local sections = lualine .get_config ().sections
4
- sections .lualine_c = {
5
- {
6
- ' filename' ,
7
- path = 1 ,
8
- symbols = {
9
- unnamed = ' ' ,
10
- newfile = ' ' ,
4
+ sections = {
5
+ lualine_c = {
6
+ {
7
+ ' filename' ,
8
+ path = 1 ,
9
+ symbols = {
10
+ unnamed = ' ' ,
11
+ newfile = ' ' ,
12
+ },
13
+ },
14
+ },
15
+ lualine_x = {
16
+ {
17
+ ' rest'
11
18
},
12
19
},
13
20
}
You can’t perform that action at this time.
0 commit comments