forked from ChristianChiarulli/lvim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.lua
72 lines (64 loc) · 2.16 KB
/
config.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
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
-- general
lvim.colorscheme = "darkplus"
lvim.format_on_save = false
require "user.keys"
require "user.bufferline"
require "user.plugins"
require "user.settings"
require "user.treesitter"
-- LSP
lvim.lsp.diagnostics.virtual_text = false
-- vim.g.nvim_tree_indent_markers = 1 --"0 by default, this option shows indent markers when folders are open
vim.list_extend(lvim.lsp.override, { "java", "jdtls" })
-- vim.cmd [[autocmd CursorHoldI * silent! lua vim.lsp.buf.signature_help()]]
-- Builtins
lvim.builtin.dashboard.active = true
lvim.builtin.terminal.active = true
lvim.builtin.dap.active = true
lvim.builtin.bufferline.active = true
lvim.builtin.cmp.experimental.ghost_text = false
lvim.builtin.telescope.defaults.path_display = { "smart" }
lvim.builtin.project.patterns = { ".git" }
lvim.builtin.project.detection_methods = { "pattern" }
lvim.builtin.fancy_statusline = { active = true } -- enable/disable fancy statusline
-- lvim.builtin.lualine.options.theme = ""
if lvim.builtin.fancy_statusline.active then
require("user.lualine").config()
end
-- Treesitter
lvim.builtin.treesitter.ensure_installed = "maintained"
lvim.builtin.treesitter.autotag = {
enable = true,
disable = { "xml" },
}
lvim.builtin.treesitter.playground.enable = true
lvim.builtin.treesitter.indent.disable = { "python" }
lvim.builtin.treesitter.rainbow = {
enable = true,
colors = {
"Gold",
"Orchid",
"DodgerBlue",
-- "Cornsilk",
-- "Salmon",
-- "LawnGreen",
},
disable = { "html" },
}
-- local actions = require "telescope.actions"
-- lvim.builtin.telescope.defaults.mappings.i["<C-j>"] = actions.move_selection_next
vim.cmd [[ au CmdWinEnter * quit ]]
-- TODO: q quits in spectr_panel ft
-- Autocommands (https://neovim.io/doc/user/autocmd.html)
-- lvim.autocommands.custom_groups = {{ "BufRead", "*", "set formatoptions-=cro"}}
-- way to get os name
-- print(vim.loop.os_uname().sysname)
-- *Must* be *S*olidity not solidity
require("nvim-treesitter.parsers").get_parser_configs().solidity = {
install_info = {
url = "https://github.com/JoranHonig/tree-sitter-solidity",
files = { "src/parser.c" },
requires_generate_from_grammar = true,
},
filetype = "solidity",
}