summaryrefslogtreecommitdiff
path: root/.config/nvim
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim')
-rw-r--r--.config/nvim/lua/opts.lua13
-rw-r--r--.config/nvim/lua/plugins.lua3
-rw-r--r--.config/nvim/lua/setup.lua8
-rw-r--r--.config/nvim/lua/stl.lua2
4 files changed, 9 insertions, 17 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..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'}