diff options
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 21 |
1 files changed, 15 insertions, 6 deletions
@@ -4,8 +4,8 @@ | |||
4 | ==================== READ THIS BEFORE CONTINUING ==================== | 4 | ==================== READ THIS BEFORE CONTINUING ==================== |
5 | ===================================================================== | 5 | ===================================================================== |
6 | 6 | ||
7 | Kickstart.nvim is *not* a distribution. | 7 | -- Kickstart.nvim is *not* a distribution. |
8 | 8 | -- | |
9 | Kickstart.nvim is a template for your own configuration. | 9 | Kickstart.nvim is a template for your own configuration. |
10 | The goal is that you can read every line of code, top-to-bottom, and understand | 10 | The goal is that you can read every line of code, top-to-bottom, and understand |
11 | what your configuration is doing. | 11 | what your configuration is doing. |
@@ -86,7 +86,7 @@ require('lazy').setup({ | |||
86 | 86 | ||
87 | -- Additional lua configuration, makes nvim stuff amazing! | 87 | -- Additional lua configuration, makes nvim stuff amazing! |
88 | 'folke/neodev.nvim', | 88 | 'folke/neodev.nvim', |
89 | }, | 89 | }, |
90 | }, | 90 | }, |
91 | 91 | ||
92 | { -- Autocompletion | 92 | { -- Autocompletion |
@@ -120,7 +120,7 @@ require('lazy').setup({ | |||
120 | opts = { | 120 | opts = { |
121 | options = { | 121 | options = { |
122 | icons_enabled = false, | 122 | icons_enabled = false, |
123 | theme = 'onedark', | 123 | theme = 'wombat', |
124 | component_separators = '|', | 124 | component_separators = '|', |
125 | section_separators = '', | 125 | section_separators = '', |
126 | }, | 126 | }, |
@@ -138,7 +138,14 @@ require('lazy').setup({ | |||
138 | }, | 138 | }, |
139 | 139 | ||
140 | -- "gc" to comment visual regions/lines | 140 | -- "gc" to comment visual regions/lines |
141 | { 'numToStr/Comment.nvim', opts = {} }, | 141 | { 'numToStr/Comment.nvim', opts = { |
142 | opleader = { | ||
143 | ---Line-comment keymap | ||
144 | line = '<C-_>', | ||
145 | ---Block-comment keymap | ||
146 | block = 'gb', | ||
147 | }, | ||
148 | } }, | ||
142 | 149 | ||
143 | -- Fuzzy Finder (files, lsp, etc) | 150 | -- Fuzzy Finder (files, lsp, etc) |
144 | { 'nvim-telescope/telescope.nvim', version = '*', dependencies = { 'nvim-lua/plenary.nvim' } }, | 151 | { 'nvim-telescope/telescope.nvim', version = '*', dependencies = { 'nvim-lua/plenary.nvim' } }, |
@@ -181,6 +188,7 @@ require('lazy').setup({ | |||
181 | --{ import = 'custom.plugins' }, | 188 | --{ import = 'custom.plugins' }, |
182 | }, {}) | 189 | }, {}) |
183 | 190 | ||
191 | |||
184 | -- [[ Setting options ]] | 192 | -- [[ Setting options ]] |
185 | -- See `:help vim.o` | 193 | -- See `:help vim.o` |
186 | 194 | ||
@@ -207,7 +215,7 @@ vim.o.timeoutlen = 300 | |||
207 | vim.o.completeopt = 'menuone,noselect' | 215 | vim.o.completeopt = 'menuone,noselect' |
208 | 216 | ||
209 | -- NOTE: You should make sure your terminal supports this | 217 | -- NOTE: You should make sure your terminal supports this |
210 | vim.o.termguicolors = true | 218 | -- vim.o.termguicolors = true |
211 | 219 | ||
212 | 220 | ||
213 | -- [[ Basic Keymaps ]] | 221 | -- [[ Basic Keymaps ]] |
@@ -231,6 +239,7 @@ vim.api.nvim_create_autocmd('TextYankPost', { | |||
231 | pattern = '*', | 239 | pattern = '*', |
232 | }) | 240 | }) |
233 | 241 | ||
242 | |||
234 | -- [[ Configure Telescope ]] | 243 | -- [[ Configure Telescope ]] |
235 | -- See `:help telescope` and `:help telescope.setup()` | 244 | -- See `:help telescope` and `:help telescope.setup()` |
236 | require('telescope').setup { | 245 | require('telescope').setup { |