@@ -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
1617vim .o .showmode = false
@@ -34,7 +35,7 @@ vim.o.ignorecase = true
3435vim .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
4041vim .o .updatetime = 250
@@ -44,7 +45,6 @@ vim.o.timeoutlen = 300
4445
4546-- Configure how new splits should be opened
4647vim .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!
6161vim .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.
6781vim .o .scrolloff = 10
@@ -71,4 +85,7 @@ vim.o.scrolloff = 10
7185-- See `:help 'confirm'`
7286vim .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