summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/getchoo/init.lua
blob: beae5d6959718a6c9793a687d243f5f182aa1355 (plain)
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
--
-- setup plugins
--

require("getchoo.plugins")

local M = {}

M.bufferline = {
	animation = true,
	auto_hide = true,
	highlights = require("catppuccin.groups.integrations.bufferline").get(),
	icons = true,
	maximum_padding = 2,
	semantic_letters = true,
}

local compile_path = vim.fn.stdpath("cache") .. "/catppuccin-nvim"
vim.fn.mkdir(compile_path, "p")
vim.opt.runtimepath:append(compile_path)

M.catppuccin = {
	compile_path = compile_path,
	flavour = "mocha", -- mocha, macchiato, frappe, latte
	integrations = {
		barbar = true,
		cmp = true,
		gitsigns = true,
		leap = true,
		native_lsp = {
			enabled = true,
		},
		nvimtree = true,
		treesitter_context = true,
		treesitter = true,
		telescope = true,
		lsp_trouble = true,
	},
	no_italic = true,
}

M.lualine = {
	options = {
		theme = "catppuccin",
	},
	extensions = { "nvim-tree" },
}

M.tree = {}

require("catppuccin").setup(M.catppuccin)
vim.api.nvim_command("colorscheme catppuccin")
require("bufferline").setup(M.bufferline)
require("leap").add_default_mappings()
require("lualine").setup(M.lualine)
require("nvim-tree").setup(M.tree)

if vim.g.use_lsp_plugins then
	require("getchoo.ftdetect")
	require("getchoo.lsp")
end

require("getchoo.keymap")

return M