From 8a8be409c0f0d911eb19969c05e7f4a171a63767 Mon Sep 17 00:00:00 2001 From: seth Date: Sun, 2 Apr 2023 21:14:36 -0400 Subject: copy refactor from flake for neovim config --- .config/nvim/lua/getchoo/plugins/general.lua | 57 ++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 .config/nvim/lua/getchoo/plugins/general.lua (limited to '.config/nvim/lua/getchoo/plugins/general.lua') diff --git a/.config/nvim/lua/getchoo/plugins/general.lua b/.config/nvim/lua/getchoo/plugins/general.lua new file mode 100644 index 0000000..93cd720 --- /dev/null +++ b/.config/nvim/lua/getchoo/plugins/general.lua @@ -0,0 +1,57 @@ +-- +-- configuration for general plugins +-- + +---- 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", + }, +}) + +---- leap +require("leap").add_default_mappings() + +---- lualine +require("lualine").setup({ + options = { + theme = "catppuccin", + }, + extensions = { "nvim-tree" }, +}) + +---- nvim-tree +require("nvim-tree").setup() -- cgit v1.2.3