From 50dd5df6d1857231c53f7441245d967b311eddf1 Mon Sep 17 00:00:00 2001 From: Nanderty Date: Wed, 22 Mar 2023 22:47:00 +0100 Subject: verbesserungen --- lua/options.lua | 2 + lua/plugins/cmp.lua | 2 +- lua/plugins/colorscheme.lua | 35 ++++++++--------- lua/plugins/general.lua | 6 --- lua/plugins/interface.lua | 92 +++++++++++++++++++++++---------------------- lua/plugins/telescope.lua | 2 +- 6 files changed, 69 insertions(+), 70 deletions(-) diff --git a/lua/options.lua b/lua/options.lua index 63e9768..720bf2f 100644 --- a/lua/options.lua +++ b/lua/options.lua @@ -12,6 +12,8 @@ vim.opt.undofile = true vim.opt.undodir = { vim.fn.stdpath('data')..'/undo' } vim.opt.undolevels = 1000 +vim.opt.fillchars='eob: ' + vim.opt.showmode = false vim.opt.smartindent = true vim.opt.shiftwidth = 4 diff --git a/lua/plugins/cmp.lua b/lua/plugins/cmp.lua index 69a1b17..b2ec2e5 100644 --- a/lua/plugins/cmp.lua +++ b/lua/plugins/cmp.lua @@ -72,7 +72,7 @@ return { sources = cmp.config.sources({ { name = 'nvim_lsp' }, { name = 'luasnip' }, - { name = 'buffer' }, + {name = 'buffer' }, { name = 'path' }, { name = 'calc' }, }), diff --git a/lua/plugins/colorscheme.lua b/lua/plugins/colorscheme.lua index 173c23b..caea7ad 100644 --- a/lua/plugins/colorscheme.lua +++ b/lua/plugins/colorscheme.lua @@ -1,19 +1,20 @@ return { - { - 'loctvl842/monokai-pro.nvim', - lazy = false, - priority = 1000, - config = function() - require("monokai-pro").setup({ - background_clear = {}, - override = function(c) - return { - TelescopePreviewDate = { fg = c.base.red , bg = transparent_bg }, - TelescopePreviewDirectory = { fg = c.base.white , bg = transparent_bg }, - } - end - }) - vim.cmd([[colorscheme monokai-pro]]) - end, - }, + { + 'rose-pine/neovim', + lazy = false, + priority = 1000, + config = function() + require('rose-pine').setup({ + variant = 'dawn', + highlight_groups = { + TelescopePromptNormal = { fg = 'base', bg = 'rose' }, + TelescopePromptBorder = { bg = 'rose' }, + TelescopePromptTitle = { fg = 'base' }, + TelescopePromptPrefix = { fg = 'base' }, + TelescopePromptCounter = { fg = 'base' }, + }, + }) + vim.cmd('colorscheme rose-pine') + end, + }, } diff --git a/lua/plugins/general.lua b/lua/plugins/general.lua index c188304..8db6524 100644 --- a/lua/plugins/general.lua +++ b/lua/plugins/general.lua @@ -1,10 +1,4 @@ return { - { - 'sbdchd/neoformat', - keys = { - { 'i', 'Neoformat', desc = 'format' }, - }, - }, { 'neomake/neomake', event = { diff --git a/lua/plugins/interface.lua b/lua/plugins/interface.lua index f3d6e03..ab5cea3 100644 --- a/lua/plugins/interface.lua +++ b/lua/plugins/interface.lua @@ -1,51 +1,53 @@ return { - { - 'akinsho/bufferline.nvim', - event = { - 'BufReadPost', - 'BufNewFile' + { + 'akinsho/bufferline.nvim', + event = { + 'BufReadPost', + 'BufNewFile' + }, + dependencies = { + 'nvim-tree/nvim-web-devicons', + }, + opts = { + options = { + diagnostics = "nvim_lsp", + always_show_bufferline = false, + buffer_close_icon = ' ', + }, + }, + config = function(_, opts) + local highlights = require('rose-pine.plugins.bufferline') + require('bufferline').setup(opts,{ highlights = highlights }) + end }, - dependencies = { - 'nvim-tree/nvim-web-devicons', + { + 'nvim-lualine/lualine.nvim', + event = 'VeryLazy', + opts = { + options = { + theme = 'rose-pine' + }, + }, }, - opts = { - options = { - diagnostics = "nvim_lsp", - always_show_bufferline = false, - }, + { + 'lukas-reineke/indent-blankline.nvim', + event = { + 'BufReadPost', + 'BufNewFile' + }, + opts = { + show_current_context = true, + show_current_context_start = true, + }, }, - config = function(_, opts) - require("bufferline").setup(opts) - end, - }, - { - 'nvim-lualine/lualine.nvim', - event = 'VeryLazy', - opts = { - options = { - theme = 'auto' - }, + { + 'lewis6991/gitsigns.nvim', + event = { + 'BufReadPost', + 'BufNewFile' + }, + config = function() + require('gitsigns').setup() + end, }, - }, - { - 'lukas-reineke/indent-blankline.nvim', - event = { - 'BufReadPost', - 'BufNewFile' - }, - opts = { - show_current_context = true, - show_current_context_start = true, - }, - }, - { - 'lewis6991/gitsigns.nvim', - event = { - 'BufReadPost', - 'BufNewFile' - }, - config = function() - require('gitsigns').setup() - end, - }, } diff --git a/lua/plugins/telescope.lua b/lua/plugins/telescope.lua index 26dc418..56f1a64 100644 --- a/lua/plugins/telescope.lua +++ b/lua/plugins/telescope.lua @@ -34,7 +34,7 @@ return { height = 0.80, preview_cutoff = 120, }, - borderchars = { '█', ' ', '▀', '█', '█', ' ', ' ', '▀' }, + borderchars = { ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ' }, }, extensions = { sessions_picker = { -- cgit v1.2.3