-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpost_init.lua
44 lines (35 loc) · 1.07 KB
/
post_init.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
-- Default project.nvim configuration.
require("project_nvim").setup{manual_mode=false, patterns={".git", ".project"}}
-- Add project.nvim extension to telescope.
require('telescope').load_extension('projects')
-- Configure nvim.tree for project.nvim.
require("nvim-tree").setup{
sync_root_with_cwd = true,
respect_buf_cwd = true,
update_focused_file = {
enable = true,
update_root = true
}
}
-- Alywas open nvim.tree.
local function open_nvim_tree()
require("nvim-tree.api").tree.open()
end
vim.api.nvim_create_autocmd({ "VimEnter" }, { callback = open_nvim_tree })
-- Configure toggleterm.
require("toggleterm").setup{
size = 50,
direction = 'float',
winbar = {
enabled = true,
name_formatter = function(term) -- term: Terminal
return term.name
end
}
}
-- Add a telescope picker for toggleterms.
require('telescope').load_extension("termfinder")
-- Add a telescope picker for live_grep_args.
require('telescope').load_extension("live_grep_args")
-- Setup custom terminals.
-- local Terminal = require('toggleterm.terminal').Terminal