diff options
| author | seth <[email protected]> | 2023-01-27 01:23:19 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2023-01-27 01:23:19 -0500 |
| commit | d4cb82429ce0f531cac1a2d6e1b256c5d1b5f726 (patch) | |
| tree | be0d3c33088a7c52e8b45a6c3589070699fc794e /users | |
| parent | a822b5802d9274de61693547475dfc912908466a (diff) | |
packer -> nixpkgs in neovim
Diffstat (limited to 'users')
| -rw-r--r-- | users/seth/programs/neovim/config/init.lua | 3 | ||||
| -rw-r--r-- | users/seth/programs/neovim/config/lua/getchoo/init.lua | 19 | ||||
| -rw-r--r-- | users/seth/programs/neovim/config/lua/getchoo/plugins.lua | 52 |
3 files changed, 19 insertions, 55 deletions
diff --git a/users/seth/programs/neovim/config/init.lua b/users/seth/programs/neovim/config/init.lua index 66f7a4b..b6550ba 100644 --- a/users/seth/programs/neovim/config/init.lua +++ b/users/seth/programs/neovim/config/init.lua @@ -5,7 +5,7 @@ local cmd = vim.cmd local opt = vim.opt -vim.g.use_lsp_plugins = false; +vim.g.use_lsp_plugins = true; require("getchoo") @@ -20,3 +20,4 @@ opt.wrap = false opt.syntax = "on" cmd("filetype plugin indent on") opt.termguicolors = true +vim.api.nvim_command("colorscheme catppuccin") diff --git a/users/seth/programs/neovim/config/lua/getchoo/init.lua b/users/seth/programs/neovim/config/lua/getchoo/init.lua index 83233ea..a719ac3 100644 --- a/users/seth/programs/neovim/config/lua/getchoo/init.lua +++ b/users/seth/programs/neovim/config/lua/getchoo/init.lua @@ -2,8 +2,6 @@ -- setup plugins -- -require("getchoo.plugins") - local M = {} M.bufferline = { @@ -14,6 +12,22 @@ M.bufferline = { semantic_letters = true, } +M.catppuccin = { + flavour = "mocha", -- mocha, macchiato, frappe, latte + integrations = { + barbar = true, + gitsigns = true, + lightspeed = true, + cmp = true, + nvimtree = true, + treesitter_context = true, + treesitter = true, + telescope = true, + lsp_trouble = true, + }, + no_italic = true, +} + M.lualine = { options = { theme = "catppuccin", @@ -24,6 +38,7 @@ M.lualine = { M.tree = {} require("bufferline").setup(M.bufferline) +require("catppuccin").setup(M.catppuccin) require("lualine").setup(M.lualine) require("nvim-tree").setup(M.tree) diff --git a/users/seth/programs/neovim/config/lua/getchoo/plugins.lua b/users/seth/programs/neovim/config/lua/getchoo/plugins.lua deleted file mode 100644 index 385710f..0000000 --- a/users/seth/programs/neovim/config/lua/getchoo/plugins.lua +++ /dev/null @@ -1,52 +0,0 @@ --- --- plugins for neovim --- - -local fn = vim.fn -local cmd = vim.cmd - -local packer_path = fn.stdpath("data") .. "/site/pack/packer/start/packer.nvim" - -if fn.empty(fn.glob(packer_path)) > 0 then - Packer_bootstrap = fn.system({ - "git", - "clone", - "--depth", - "1", - "https://github.com/wbthomason/packer.nvim", - packer_path, - }) - cmd("packadd packer.nvim") -end - -require("packer").startup(function(use) - use("wbthomason/packer.nvim") - - -- comsetic plugins - use({ - "catppuccin/nvim", - as = "catppuccin", - config = function() - require("catppuccin").setup({ - flavour = "mocha", -- mocha, macchiato, frappe, latte - integrations = { - barbar = true, - gitsigns = true, - lightspeed = true, - cmp = true, - nvimtree = true, - treesitter_context = true, - treesitter = true, - telescope = true, - lsp_trouble = true, - }, - no_italic = true, - }) - vim.api.nvim_command("colorscheme catppuccin") - end, - }) - - if Packer_bootstrap then - require("packer").sync() - end -end) |
