aboutsummaryrefslogtreecommitdiffhomepage
path: root/.config/nvim/init.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/init.lua')
-rw-r--r--.config/nvim/init.lua32
1 files changed, 8 insertions, 24 deletions
diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua
index 56e74d3..395a4d9 100644
--- a/.config/nvim/init.lua
+++ b/.config/nvim/init.lua
@@ -1105,34 +1105,18 @@ command! -nargs=+
-- Color scheme {{{2
--- A command which changes color scheme with fall back.
vim.cmd([[
-function My_colorscheme(bang, name)
- try
- if get(g:, 'colors_name') isnot# a:name || a:bang
- execute 'colorscheme' a:name
- end
- catch
- " Loading colorscheme failed.
- " The color scheme, "desert", is one of the built-in ones. Probably, it
- " will be loaded without any errors.
- colorscheme desert
- endtry
-endfunction
-]])
-
-
-vim.cmd([[
-command! -bang -nargs=?
- \ ColorScheme
- \ call My_colorscheme(<bang>0, <q-args>)
+try
+ colorscheme ocean
+catch
+ " Loading colorscheme failed.
+ " The color scheme, "desert", is one of the built-in ones. Probably, it
+ " will be loaded without any errors.
+ colorscheme desert
+endtry
]])
-vim.cmd('ColorScheme! ocean')
-
-
-
-- Statusline {{{2