diff --git a/.config/nvim/after/plugin/lsp.lua b/.config/nvim/after/plugin/lsp.lua index b1f35d6..dbfbd66 100644 --- a/.config/nvim/after/plugin/lsp.lua +++ b/.config/nvim/after/plugin/lsp.lua @@ -25,7 +25,7 @@ local cmp_select = {behavior = cmp.SelectBehavior.Select} local cmp_mappings = lsp.defaults.cmp_mappings({ [''] = cmp.mapping.select_prev_item(cmp_select), [''] = cmp.mapping.select_next_item(cmp_select), - [''] = cmp.mapping.confirm({ select = true }), + [''] = cmp.mapping.confirm({ select = true }), [""] = cmp.mapping.complete(), }) diff --git a/.config/nvim/lua/grfreire/bootstrap.lua b/.config/nvim/lua/grfreire/bootstrap.lua index 3a1ad95..cd1748c 100644 --- a/.config/nvim/lua/grfreire/bootstrap.lua +++ b/.config/nvim/lua/grfreire/bootstrap.lua @@ -1,25 +1,16 @@ local ensure_packer = function() - local fn = vim.fn - local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim' - if fn.empty(fn.glob(install_path)) > 0 then - fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path}) - vim.cmd [[packadd packer.nvim]] - return true - end - return false + local fn = vim.fn + local install_path = fn.stdpath('data') .. '/site/pack/packer/start/packer.nvim' + if fn.empty(fn.glob(install_path)) > 0 then + fn.system({ 'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path }) + vim.cmd [[packadd packer.nvim]] + return true + end + return false end local packer_bootstrap = ensure_packer() -return require('packer').startup(function(use) - use 'wbthomason/packer.nvim' - -- My plugins here - -- use 'foo1/bar1.nvim' - -- use 'foo2/bar2.nvim' - - -- Automatically set up your configuration after cloning packer.nvim - -- Put this at the end after all plugins - if packer_bootstrap then +if packer_bootstrap then require('packer').sync() - end -end) +end diff --git a/.config/nvim/lua/grfreire/set.lua b/.config/nvim/lua/grfreire/set.lua index 10d173f..825db9b 100644 --- a/.config/nvim/lua/grfreire/set.lua +++ b/.config/nvim/lua/grfreire/set.lua @@ -29,3 +29,5 @@ vim.opt.isfname:append("@-@") vim.opt.updatetime = 50 +vim.filetype.add({ extension = { templ = 'templ' } }) +