From 9547730a150c9c1639035c4d66183863dc7f0fbc Mon Sep 17 00:00:00 2001 From: Adam <56338480+adastx@users.noreply.github.com> Date: Thu, 28 Oct 2021 17:25:38 +0200 Subject: Starship shell prompt + doom one theme for alacritty + vim + nvim --- .config/nvim/lua/opts.lua | 13 ++----------- .config/nvim/lua/plugins.lua | 3 ++- .config/nvim/lua/setup.lua | 8 ++++---- .config/nvim/lua/stl.lua | 2 +- 4 files changed, 9 insertions(+), 17 deletions(-) (limited to '.config/nvim/lua') diff --git a/.config/nvim/lua/opts.lua b/.config/nvim/lua/opts.lua index a1c0bbf..aa56f76 100644 --- a/.config/nvim/lua/opts.lua +++ b/.config/nvim/lua/opts.lua @@ -16,11 +16,12 @@ cmp.setup { end, }, mapping = { + [''] = cmp.mapping.confirm({ select = true }), [''] = cmp.mapping.select_next_item(), [''] = cmp.mapping.select_prev_item(), [''] = cmp.mapping.scroll_docs(4), [''] = cmp.mapping.scroll_docs(-4), - [''] = cmp.mapping.close(), + [''] = cmp.mapping.close(), [""] = cmp.mapping(function(fallback) if cmp.visible() then cmp.select_next_item() @@ -51,16 +52,6 @@ cmp.setup { vim.cmd('autocmd FileType markdown lua require("cmp").setup.buffer { enabled = false }') require('nvim-autopairs').setup{} -require("nvim-autopairs.completion.cmp").setup { - map_cr = true, -- map on insert mode - map_complete = true, -- it will auto insert `(` (map_char) after select function or method item - auto_select = true, -- automatically select the first item - insert = false, -- use insert confirm behavior instead of replace - map_char = { -- modifies the function or method delimiter by filetypes - all = '(', - tex = '{', - }, -} -- LSPCONFIG local nvim_lsp = require('lspconfig') diff --git a/.config/nvim/lua/plugins.lua b/.config/nvim/lua/plugins.lua index 77b1bde..7d6e5fe 100644 --- a/.config/nvim/lua/plugins.lua +++ b/.config/nvim/lua/plugins.lua @@ -1,7 +1,7 @@ local use = require('packer').use require('packer').startup(function() use 'wbthomason/packer.nvim' - use 'gruvbox-community/gruvbox' + use 'romgrk/doom-one.vim' use 'tpope/vim-fugitive' use 'tpope/vim-surround' use 'tpope/vim-repeat' @@ -15,6 +15,7 @@ require('packer').startup(function() use "windwp/nvim-autopairs" use "lukas-reineke/indent-blankline.nvim" use 'kyazdani42/nvim-web-devicons' + use 'norcalli/nvim-colorizer.lua' use { 'nvim-telescope/telescope.nvim', diff --git a/.config/nvim/lua/setup.lua b/.config/nvim/lua/setup.lua index 8c59b41..895de6c 100644 --- a/.config/nvim/lua/setup.lua +++ b/.config/nvim/lua/setup.lua @@ -4,6 +4,7 @@ vim.cmd('filetype indent plugin on') vim.cmd('syntax enable') vim.cmd('set undodir=$HOME/.vim/undo') vim.cmd('set undofile') +vim.cmd('colorscheme doom-one') set.mouse = "a" set.termguicolors = true @@ -32,7 +33,6 @@ set.ttimeoutlen = 200 set.wrap = false set.fcs = 'eob: ' set.swapfile = false - -vim.cmd('colorscheme gruvbox') -vim.cmd('highlight CursorLineNr cterm=bold ctermfg=Yellow ctermbg=none') -vim.cmd('highlight Normal ctermbg=none') +set.cursorline = true +set.pumblend = 0 +set.autochdir = true diff --git a/.config/nvim/lua/stl.lua b/.config/nvim/lua/stl.lua index 74c2d6f..241e0ff 100644 --- a/.config/nvim/lua/stl.lua +++ b/.config/nvim/lua/stl.lua @@ -1,7 +1,7 @@ require'lualine'.setup { options = { icons_enabled = true, - theme = 'gruvbox', + theme = 'onedark', component_separators = {left = '', right = ''}, section_separators = {left = '', right = ''}, disabled_filetypes = {'startify', 'terminal', 'netrw'} -- cgit v1.2.3-70-g09d2