Skip to content

Commit ce56724

Browse files
committed
More customizations
1 parent 7716617 commit ce56724

3 files changed

Lines changed: 27 additions & 5 deletions

File tree

lua/kickstart/plugins/dracula.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ return {
5656
}
5757

5858
vim.cmd.colorscheme 'dracula'
59+
60+
-- Set cursorline and cursorcolumn colors
61+
vim.api.nvim_set_hl(0, 'CursorLine', { bg = '#44475A' })
62+
vim.api.nvim_set_hl(0, 'CursorColumn', { bg = '#44475A' })
5963
end,
6064
},
6165
}

lua/kickstart/plugins/telescope.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ return {
5656
-- All the info you're looking for is in `:help telescope.setup()`
5757
--
5858
defaults = {
59+
layout_strategy = 'vertical',
5960
mappings = {
6061
i = {
6162
['<C-j>'] = 'move_selection_next',

lua/options.lua

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ vim.o.number = true
1010
-- vim.o.relativenumber = true
1111

1212
-- Enable mouse mode, can be useful for resizing splits for example!
13-
vim.o.mouse = 'a'
13+
-- vim.o.mouse = 'a'
14+
vim.o.mouse = ''
1415

1516
-- Don't show the mode, since it's already in the status line
1617
vim.o.showmode = false
@@ -34,7 +35,7 @@ vim.o.ignorecase = true
3435
vim.o.smartcase = true
3536

3637
-- Keep signcolumn on by default
37-
vim.o.signcolumn = 'yes'
38+
vim.o.signcolumn = 'auto'
3839

3940
-- Decrease update time
4041
vim.o.updatetime = 250
@@ -44,7 +45,6 @@ vim.o.timeoutlen = 300
4445

4546
-- Configure how new splits should be opened
4647
vim.o.splitright = true
47-
vim.o.splitbelow = true
4848

4949
-- Sets how neovim will display certain whitespace characters in the editor.
5050
-- See `:help 'list'`
@@ -60,8 +60,22 @@ vim.opt.listchars = { tab = '» ', trail = '·', nbsp = '␣' }
6060
-- Preview substitutions live, as you type!
6161
vim.o.inccommand = 'split'
6262

63-
-- Show which line your cursor is on
64-
vim.o.cursorline = true
63+
-- Show which line + column your cursor is on
64+
-- Off by default, should only be visible on active buffer
65+
vim.o.cursorline = false
66+
vim.o.cursorcolumn = false
67+
vim.api.nvim_create_autocmd({ 'WinEnter', 'BufEnter' }, {
68+
callback = function()
69+
vim.wo.cursorline = true
70+
vim.wo.cursorcolumn = true
71+
end,
72+
})
73+
vim.api.nvim_create_autocmd({ 'WinLeave', 'BufLeave' }, {
74+
callback = function()
75+
vim.wo.cursorline = false
76+
vim.wo.cursorcolumn = false
77+
end,
78+
})
6579

6680
-- Minimal number of screen lines to keep above and below the cursor.
6781
vim.o.scrolloff = 10
@@ -71,4 +85,7 @@ vim.o.scrolloff = 10
7185
-- See `:help 'confirm'`
7286
vim.o.confirm = true
7387

88+
-- Set nowrap
89+
vim.o.wrap = false
90+
7491
-- vim: ts=2 sts=2 sw=2 et

0 commit comments

Comments
 (0)