Moved custom plugins to their own file

This commit is contained in:
Ismo Vuorinen
2022-12-27 16:21:39 +02:00
parent e2583f4d91
commit 5e98f61942
4 changed files with 27 additions and 21 deletions

View File

@@ -57,20 +57,6 @@ require('packer').startup(function(use)
-- Fuzzy Finder Algorithm which requires local dependencies to be built. Only load if `make` is available
use { 'nvim-telescope/telescope-fzf-native.nvim', run = 'make', cond = vim.fn.executable 'make' == 1 }
-- catppuccin theme
use { "catppuccin/nvim", as = "catppuccin" }
use {
"folke/which-key.nvim",
config = function()
require("which-key").setup {
-- your configuration comes here
-- or leave it empty to use the default settings
-- refer to the configuration section in the docs
}
end
}
-- Add custom plugins to packer from ~/.config/nvim/lua/custom/plugins.lua
local has_plugins, plugins = pcall(require, 'custom.plugins')
if has_plugins then
@@ -109,8 +95,9 @@ vim.api.nvim_create_autocmd('BufWritePost', {
-- Set highlight on search
vim.o.hlsearch = false
-- Make line numbers default
-- Make line numbers default, enabled relative linenumbers
vim.wo.number = true
vim.opt.relativenumber = true
-- Enable mouse mode
vim.o.mouse = 'a'
@@ -131,8 +118,7 @@ vim.wo.signcolumn = 'yes'
-- Set colorscheme
vim.o.termguicolors = true
--vim.cmd.colorscheme('palenight')
vim.cmd.colorscheme('catppuccin-macchiato')
-- vim.cmd.colorscheme('palenight')
-- Set completeopt to have a better completion experience
vim.o.completeopt = 'menuone,noselect'
@@ -165,10 +151,10 @@ vim.api.nvim_create_autocmd('TextYankPost', {
-- See `:help lualine.txt`
require('lualine').setup {
options = {
icons_enabled = false,
theme = 'catppuccin-macchiato',
component_separators = '|',
section_separators = '',
icons_enabled = true,
theme = 'auto',
component_separators = '|',
section_separators = '',
},
}