From 7a63abdde19dd3094bf92d192e89cb96c09583c4 Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Mon, 1 May 2023 22:48:30 +0800 Subject: Update --- init.lua | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) (limited to 'init.lua') diff --git a/init.lua b/init.lua index b33b0d5..33294bb 100644 --- a/init.lua +++ b/init.lua @@ -4,8 +4,8 @@ ==================== READ THIS BEFORE CONTINUING ==================== ===================================================================== -Kickstart.nvim is *not* a distribution. - +-- Kickstart.nvim is *not* a distribution. +-- Kickstart.nvim is a template for your own configuration. The goal is that you can read every line of code, top-to-bottom, and understand what your configuration is doing. @@ -86,7 +86,7 @@ require('lazy').setup({ -- Additional lua configuration, makes nvim stuff amazing! 'folke/neodev.nvim', - }, + }, }, { -- Autocompletion @@ -120,7 +120,7 @@ require('lazy').setup({ opts = { options = { icons_enabled = false, - theme = 'onedark', + theme = 'wombat', component_separators = '|', section_separators = '', }, @@ -138,7 +138,14 @@ require('lazy').setup({ }, -- "gc" to comment visual regions/lines - { 'numToStr/Comment.nvim', opts = {} }, + { 'numToStr/Comment.nvim', opts = { + opleader = { + ---Line-comment keymap + line = '', + ---Block-comment keymap + block = 'gb', + }, + } }, -- Fuzzy Finder (files, lsp, etc) { 'nvim-telescope/telescope.nvim', version = '*', dependencies = { 'nvim-lua/plenary.nvim' } }, @@ -181,6 +188,7 @@ require('lazy').setup({ --{ import = 'custom.plugins' }, }, {}) + -- [[ Setting options ]] -- See `:help vim.o` @@ -207,7 +215,7 @@ vim.o.timeoutlen = 300 vim.o.completeopt = 'menuone,noselect' -- NOTE: You should make sure your terminal supports this -vim.o.termguicolors = true +-- vim.o.termguicolors = true -- [[ Basic Keymaps ]] @@ -231,6 +239,7 @@ vim.api.nvim_create_autocmd('TextYankPost', { pattern = '*', }) + -- [[ Configure Telescope ]] -- See `:help telescope` and `:help telescope.setup()` require('telescope').setup { -- cgit v1.2.3-70-g09d2