Skip to content

Commit

Permalink
nvim: review config for cursorlineopt
Browse files Browse the repository at this point in the history
Use the deprecated window_on_create for now. Once ibhagwan/fzf-lua#61 is
merged I can remove that call.
  • Loading branch information
fsouza committed Aug 29, 2021
1 parent 21c12a1 commit fbc107e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 2 additions & 0 deletions nvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ local function global_vars()
end

local function ui_options()
vim.o.cursorline = true
vim.o.cursorlineopt = 'number'
vim.o.termguicolors = true
vim.o.showcmd = false
vim.o.laststatus = 0
Expand Down
8 changes: 7 additions & 1 deletion nvim/lua/fsouza/fzf-lua.lua
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,13 @@ local function fzf_lua()
grep = {file_icons = false; git_icons = false; actions = actions};
oldfiles = {file_icons = false; git_icons = false; actions = actions};
lsp = {file_icons = false; git_icons = false; actions = actions};
winopts = {win_height = 0.65; win_width = 0.90};
winopts = {
win_height = 0.65;
win_width = 0.90;
window_on_create = function()
vim.wo.cursorlineopt = 'both'
end;
};
previewers = {
builtin = {
keymap = {
Expand Down
4 changes: 2 additions & 2 deletions nvim/lua/fsouza/themes/none.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ local colors = require('fsouza.themes.colors')

local function basics(ns)
nvim_set_hl(ns, 'CursorColumn', {bg = colors.lighter_gray})
nvim_set_hl(ns, 'CursorLine', {bg = colors.gray})
nvim_set_hl(ns, 'CursorLineNr', {bold = true; bg = colors.gray})
nvim_set_hl(ns, 'CursorLine', {bg = colors.lighter_gray})
nvim_set_hl(ns, 'CursorLineNr', {bold = true; bg = colors.lighter_gray})
nvim_set_hl(ns, 'Directory', {fg = colors.dark_gray})
nvim_set_hl(ns, 'LineNr', {bg = colors.lighter_gray})
nvim_set_hl(ns, 'MatchParen', {bg = colors.light_gray})
Expand Down

0 comments on commit fbc107e

Please sign in to comment.