From 7172c36d4508510ad844fcbea1bd3bc496da809e Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Thu, 29 Aug 2024 14:54:43 +0200 Subject: improved config by splitting it. --- lua/plugins/cmp.lua | 11 +++++++++++ lua/plugins/colorscheme.lua | 6 ++++++ lua/plugins/fzf.lua | 4 ++++ lua/plugins/orgmode.lua | 17 +++++++++++++++++ lua/plugins/telescope.lua | 4 ++++ 5 files changed, 42 insertions(+) create mode 100644 lua/plugins/cmp.lua create mode 100644 lua/plugins/colorscheme.lua create mode 100644 lua/plugins/fzf.lua create mode 100644 lua/plugins/orgmode.lua create mode 100644 lua/plugins/telescope.lua (limited to 'lua') diff --git a/lua/plugins/cmp.lua b/lua/plugins/cmp.lua new file mode 100644 index 0000000..fed96e4 --- /dev/null +++ b/lua/plugins/cmp.lua @@ -0,0 +1,11 @@ +return { + 'neovim/nvim-lspconfig', + 'hrsh7th/cmp-nvim-lsp', + 'hrsh7th/cmp-buffer', + 'hrsh7th/cmp-path', + 'hrsh7th/nvim-cmp', + 'hrsh7th/vim-vsnip', + 'L3MON4D3/LuaSnip', + 'octaltree/cmp-look', + 'saadparwaiz1/cmp_luasnip', +} diff --git a/lua/plugins/colorscheme.lua b/lua/plugins/colorscheme.lua new file mode 100644 index 0000000..a73b1e8 --- /dev/null +++ b/lua/plugins/colorscheme.lua @@ -0,0 +1,6 @@ +return { + 'RRethy/base16-nvim', + config = function() + vim.cmd.colorscheme "base16-rebecca" + end, +} diff --git a/lua/plugins/fzf.lua b/lua/plugins/fzf.lua new file mode 100644 index 0000000..f3fc76b --- /dev/null +++ b/lua/plugins/fzf.lua @@ -0,0 +1,4 @@ +return { + 'junegunn/fzf', + 'junegunn/fzf.vim', +} diff --git a/lua/plugins/orgmode.lua b/lua/plugins/orgmode.lua new file mode 100644 index 0000000..fe09f3e --- /dev/null +++ b/lua/plugins/orgmode.lua @@ -0,0 +1,17 @@ +return { + 'nvim-orgmode/orgmode', + event = 'VeryLazy', + ft = { 'org' }, + config = function() + -- Setup orgmode + require('orgmode').setup({ + org_agenda_files = '~/orgfiles/**/*', + org_default_notes_file = '~/orgfiles/refile.org', + }) + require('cmp').setup({ + sources = { + { name = 'orgmode' } + } + }) + end, +} diff --git a/lua/plugins/telescope.lua b/lua/plugins/telescope.lua new file mode 100644 index 0000000..ed65c3f --- /dev/null +++ b/lua/plugins/telescope.lua @@ -0,0 +1,4 @@ +return { + 'nvim-telescope/telescope.nvim', + 'nvim-telescope/telescope-media-files.nvim', +} -- cgit v1.2.3