diff --git a/tasks/neovim.yml b/tasks/neovim.yml index 4583f8d..7f0f453 100644 --- a/tasks/neovim.yml +++ b/tasks/neovim.yml @@ -12,6 +12,7 @@ - '{{ xdg_data_dir }}/nvim/site/pack/default' - '{{ xdg_data_dir }}/nvim/site/pack/default/start' +# Note that helptags may need to be regenerated (see `:h helptags`) - name: clone neovim packages git: repo: '{{ item.url }}' @@ -132,3 +133,7 @@ src: 'templates/nvim/lua/lua-line.lua.j2', dest: '{{ xdg_config_dir }}/nvim/lua/lua-line.lua', } + - { + src: 'templates/nvim/lua/telescope.lua.j2', + dest: '{{ xdg_config_dir }}/nvim/lua/_telescope.lua', + } diff --git a/templates/nvim/init.lua.j2 b/templates/nvim/init.lua.j2 index 6e4e1b5..398c762 100644 --- a/templates/nvim/init.lua.j2 +++ b/templates/nvim/init.lua.j2 @@ -6,3 +6,4 @@ require('auto-commands') require('tree-sitter') require('lua-line') require('git-signs') +require('_telescope') diff --git a/templates/nvim/lua/telescope.lua.j2 b/templates/nvim/lua/telescope.lua.j2 new file mode 100644 index 0000000..414ba44 --- /dev/null +++ b/templates/nvim/lua/telescope.lua.j2 @@ -0,0 +1,10 @@ +local telescope = require('telescope'); + +telescope.setup({ + defaults = { + layout_strategy = 'vertical', + layout_config = { + vertical = { width = 0.5, height = 0.7 } + }, + }, +}) diff --git a/vars.yml b/vars.yml index e7de5f4..171c63a 100644 --- a/vars.yml +++ b/vars.yml @@ -57,7 +57,11 @@ neovim_plugins: version: '0.1.x', } - { url: 'https://github.com/L3MON4D3/LuaSnip', name: 'luasnip', version: 'v1.0.0' } - - { url: 'https://github.com/lewis6991/gitsigns.nvim', name: 'gitsigns.nvim' } + - { + url: 'https://github.com/lewis6991/gitsigns.nvim', + name: 'gitsigns.nvim', + version: 'v0.9.0', + } - { url: 'https://github.com/sainnhe/edge', name: 'edge' } - { url: 'https://github.com/nvim-lualine/lualine.nvim', name: 'lualine' } - { @@ -78,6 +82,8 @@ language_servers: python_download_url: 'https://www.python.org/ftp/python' python_versions: + - { version: 3.11.9, path: 'python3.11', binary: 'python3.11' } + - { version: 3.10.0, path: 'python3.10', binary: 'python3.10' } - { version: 3.9.14, path: 'python3.9', binary: 'python3.9' } - { version: 3.8.14, path: 'python3.8', binary: 'python3.8' } - { version: 3.7.14, path: 'python3.7', binary: 'python3.7' }