-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.lua
More file actions
129 lines (126 loc) · 2.56 KB
/
Copy pathinit.lua
File metadata and controls
129 lines (126 loc) · 2.56 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
-- import files from ./lua
require 'settings'
require 'lsp'
require 'plugins'
-- Plugin setups
--
-- nvim-tree setup
require("nvim-tree").setup({
sort_by = "case_sensitive",
renderer = {
group_empty = true,
},
filters = {
dotfiles = true,
},
})
--
-- smartcolumn
require("smartcolumn").setup()
--
--
-- Automatically run PackerSync when plugins.lua is updated
vim.cmd([[
augroup packer_user_config
autocmd!
autocmd BufWritePost plugins.lua source <afile> | PackerCompile
augroup end
]])
--
--
-- Dracula theme
require'FTerm'.setup({
border = 'double',
dimensions = {
height = 0.9,
width = 0.9,
},
})
vim.cmd.colorscheme "dracula"
--
--
-- Cursorline
require('nvim-cursorline').setup {
cursorline = {
enable = false,
timeout = 1000,
number = false,
},
cursorword = {
enable = true,
min_length = 3,
hl = { underline = true },
}
}
--
--
-- FTerm
vim.keymap.set('n', '<C-`>', '<CMD>lua require("FTerm").toggle()<CR>')
--
--
-- lspconfig
require'lspconfig'.ccls.setup{}
--
--
-- treesitter
require 'nvim-treesitter.configs'.setup {
ensure_installed = {'c', 'lua', 'rust', 'java', 'python', 'help'},
sync_install = false,
auto_install = true,
highlight = {enable = true}
}
--
--
-- barbecue
--
--
-- peepsight
require('peepsight').setup({
-- go
"function_declaration",
"method_declaration",
"func_literal",
-- typescript
"class_declaration",
"method_definition",
"arrow_function",
"function_declaration",
"generator_function_declaration"
})
--
--
-- telescope
require('telescope').setup{
defaults = {
-- Default configuration for telescope goes here:
-- config_key = value,
mappings = {
i = {
-- map actions.which_key to <C-h> (default: <C-/>)
-- actions.which_key shows the mappings for your picker,
-- e.g. git_{create, delete, ...}_branch for the git_branches picker
["<C-h>"] = "which_key"
}
}
},
pickers = {
-- Default configuration for builtin pickers goes here:
-- picker_name = {
-- picker_config_key = value,
-- ...
-- }
-- Now the picker_config_key will be applied every time you call this
-- builtin picker
},
extensions = {
-- Your extension configuration goes here:
-- extension_name = {
-- extension_config_key = value,
-- }
-- please take a look at the readme of the extension you want to configure
}
}
--
-- Remove background color (to use terminal's instead)
vim.cmd([[hi Normal guibg=NONE ctermbg=NONE]])
vim.cmd([[hi EndOfBuffer guibg=NONE ctermbg=NONE]])