# HG changeset patch # User zegervdv # Date 1659100256 -7200 # Node ID 15c9da15a2f5334619a1aff76b520b3ba96d6bbb # Parent 6bd8aecfdaaa0e18ba6e3b1a4b1d7bf2e739e44c add telescope for vim.ui.select diff -r 6bd8aecfdaaa -r 15c9da15a2f5 .chezmoitemplates/init.lua --- a/.chezmoitemplates/init.lua Tue Jul 26 17:12:11 2022 +0200 +++ b/.chezmoitemplates/init.lua Fri Jul 29 15:10:56 2022 +0200 @@ -439,6 +439,28 @@ end, } + use { + 'nvim-telescope/telescope-ui-select.nvim', + requires = { 'nvim-telescope/telescope.nvim' }, + config = function() + require('telescope').setup { + defaults = { + border = {}, + borderchars = { ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ' }, + winblend = 0, + }, + extensions = { + ['ui-select'] = require('telescope.themes').get_dropdown { + border = {}, + borderchars = { ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ' }, + winblend = 0, + }, + }, + } + require('telescope').load_extension 'ui-select' + end, + } + use { 'vimjas/vim-python-pep8-indent', ft = { 'python' } } use { @@ -579,6 +601,17 @@ }, } require('onedark').load() + local extras = { + TelescopeNormal = { link = 'Pmenu' }, + TelescopeBorder = { link = 'Pmenu' }, + TelescopePromptBorder = { link = 'Pmenu' }, + TelescopePreviewBorder = { link = 'Pmenu' }, + TelescopeResultsBorder = { link = 'Pmenu' }, + TelescopeTitle = { link = 'identifier' }, + } + for name, opt in pairs(extras) do + vim.api.nvim_set_hl(0, name, opt) + end end, } @@ -885,7 +918,10 @@ { 'WinEnter', '*', - function() vim.opt_local.cursorline = true end, + function() + print(vim.bo.buftype) + if vim.bo.buftype ~= 'nofile' then vim.opt_local.cursorline = true end + end, }, { 'WinLeave',