Mercurial > dotfiles
comparison .chezmoitemplates/init.lua @ 705:f8d8c64f579c
fix: clean up debug prints
author | zegervdv <zegervdv@me.com> |
---|---|
date | Fri, 21 Oct 2022 04:14:02 +0000 |
parents | c78a2c1388e9 |
children | 679c3a5464d7 |
comparison
equal
deleted
inserted
replaced
704:c78a2c1388e9 | 705:f8d8c64f579c |
---|---|
105 end, | 105 end, |
106 } | 106 } |
107 use { 'tpope/vim-git', ft = { 'gitcommit', 'gitrebase' } } | 107 use { 'tpope/vim-git', ft = { 'gitcommit', 'gitrebase' } } |
108 use { | 108 use { |
109 local_plugin 'diffview.nvim', | 109 local_plugin 'diffview.nvim', |
110 config = function() require('diffview').setup {} end, | 110 config = function() require('diffview').setup { use_icons = false } end, |
111 } | 111 } |
112 | 112 |
113 -- Comments | 113 -- Comments |
114 use { | 114 use { |
115 'numToStr/Comment.nvim', | 115 'numToStr/Comment.nvim', |
943 map('t', '<C-k>', '<C-\\><C-n><C-w>k') | 943 map('t', '<C-k>', '<C-\\><C-n><C-w>k') |
944 map('t', '<C-l>', '<C-\\><C-n><C-w>l') | 944 map('t', '<C-l>', '<C-\\><C-n><C-w>l') |
945 | 945 |
946 map('c', '<CR>', function() | 946 map('c', '<CR>', function() |
947 local cmdline = vim.fn.getcmdline() | 947 local cmdline = vim.fn.getcmdline() |
948 print(cmdline) | |
949 if cmdline == 'ls' or cmdline == 'buffers' or cmdline == 'files' then return '<CR>:b' end | 948 if cmdline == 'ls' or cmdline == 'buffers' or cmdline == 'files' then return '<CR>:b' end |
950 return '<CR>' | 949 return '<CR>' |
951 end, { expr = true }) | 950 end, { expr = true }) |
952 | 951 |
953 -- Special highlighting | 952 -- Special highlighting |
962 au.group('cline', { | 961 au.group('cline', { |
963 { | 962 { |
964 'WinEnter', | 963 'WinEnter', |
965 '*', | 964 '*', |
966 function() | 965 function() |
967 print(vim.bo.buftype) | |
968 if vim.bo.buftype ~= 'nofile' then vim.opt_local.cursorline = true end | 966 if vim.bo.buftype ~= 'nofile' then vim.opt_local.cursorline = true end |
969 end, | 967 end, |
970 }, | 968 }, |
971 { | 969 { |
972 'WinLeave', | 970 'WinLeave', |