summaryrefslogtreecommitdiff
path: root/users/seth/programs/neovim/config/general.lua
blob: 349c191795215cc0eeda4ae8b819496f04c83f2c (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
---- autopairs
require("nvim-autopairs").setup({
	disable_filetype = { "TeleScopePrompt" },
})

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

require("catppuccin").setup({
	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,
})
vim.api.nvim_command("colorscheme catppuccin")

---- bufferline
require("bufferline").setup({
	options = {
		highlights = require("catppuccin.groups.integrations.bufferline").get(),
		diagnostics = "nvim_lsp",
		numbers = "ordinal",
	},
})

---- gitsigns
require("gitsigns").setup({})

---- leap
require("leap").add_default_mappings()

---- lualine
require("lualine").setup({
	options = {
		theme = "catppuccin",
	},
	extensions = { "nvim-tree" },
})

---- nvim-tree
require("nvim-tree").setup({})

---- treesitter
require("nvim-treesitter.configs").setup({
	auto_install = false,
	highlight = {
		enable = true,
		additional_vim_regex_highlighting = false,
	},
})