diff options
author | adamstuck <adam.moloney.stuck@gmail.com> | 2021-10-28 12:05:14 +0200 |
---|---|---|
committer | adamstuck <adam.moloney.stuck@gmail.com> | 2021-10-28 13:42:11 +0200 |
commit | d86a84f84c7a82da74d0f43fbca258df6c3a7860 (patch) | |
tree | b6c8d488fa4a53d4c2472ba867248fe3f81a6be2 /.config/nvim | |
parent | 30632de771a4c7bcd57ef693cd38549f5f0f0347 (diff) |
Starship shell prompt + doom one theme for alacritty + vim + nvim
Diffstat (limited to '.config/nvim')
-rw-r--r-- | .config/nvim/lua/opts.lua | 13 | ||||
-rw-r--r-- | .config/nvim/lua/plugins.lua | 2 | ||||
-rw-r--r-- | .config/nvim/lua/setup.lua | 5 | ||||
-rw-r--r-- | .config/nvim/lua/stl.lua | 2 |
4 files changed, 6 insertions, 16 deletions
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 = { + ['<CR>'] = cmp.mapping.confirm({ select = true }), ['<C-n>'] = cmp.mapping.select_next_item(), ['<C-p>'] = cmp.mapping.select_prev_item(), ['<C-f>'] = cmp.mapping.scroll_docs(4), ['<C-d>'] = cmp.mapping.scroll_docs(-4), - ['<C-c>'] = cmp.mapping.close(), + ['<C-e>'] = cmp.mapping.close(), ["<Tab>"] = 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 <CR> 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'} |