From d86a84f84c7a82da74d0f43fbca258df6c3a7860 Mon Sep 17 00:00:00 2001 From: adamstuck Date: Thu, 28 Oct 2021 12:05:14 +0200 Subject: Starship shell prompt + doom one theme for alacritty + vim + nvim --- .config/nvim/lua/opts.lua | 13 ++----------- .config/nvim/lua/plugins.lua | 2 +- .config/nvim/lua/setup.lua | 5 ++--- .config/nvim/lua/stl.lua | 2 +- 4 files changed, 6 insertions(+), 16 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..a5b8176 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' diff --git a/.config/nvim/lua/setup.lua b/.config/nvim/lua/setup.lua index 8c59b41..748af5a 100644 --- a/.config/nvim/lua/setup.lua +++ b/.config/nvim/lua/setup.lua @@ -32,7 +32,6 @@ set.ttimeoutlen = 200 set.wrap = false set.fcs = 'eob: ' set.swapfile = false +set.cursorline = true -vim.cmd('colorscheme gruvbox') -vim.cmd('highlight CursorLineNr cterm=bold ctermfg=Yellow ctermbg=none') -vim.cmd('highlight Normal ctermbg=none') +vim.cmd('colorscheme doom-one') 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