commit 23bd2c4e173a5e2750a04e615283bb45de685330
parent f296a1b16d4e815cfdda58f9b2148e7445c67b76
Author: Tomas Nemec <nemi@skaut.cz>
Date: Tue, 21 Dec 2021 12:15:09 +0100
update
Diffstat:
5 files changed, 46 insertions(+), 9 deletions(-)
diff --git a/init.lua b/init.lua
@@ -1,6 +1,19 @@
-local install_path = vim.fn.stdpath('data') .. '/site/pack/packer/opt/packer.nvim'
-if vim.fn.empty(vim.fn.glob(install_path)) > 0 then
- vim.api.nvim_command('!git clone --depth=1 https://github.com/wbthomason/packer.nvim ' .. install_path)
+local install_path = vim.fn.stdpath('data') .. '/site/pack/packer'
+local packer_path = install_path..'/opt/packer.nvim'
+if vim.fn.empty(vim.fn.glob(packer_path)) > 0 then
+ vim.api.nvim_command('!git clone --depth=1 https://github.com/wbthomason/packer.nvim ' .. packer_path)
+end
+local impatient_path = install_path.. '/start/impatient.nvim'
+if vim.fn.empty(vim.fn.glob(impatient_path)) > 0 then
+ vim.api.nvim_command('!git clone --depth=1 https://github.com/lewis6991/impatient.nvim ' .. impatient_path)
+end
+local astronauta_path = install_path .. '/start/astronauta.nvim'
+if vim.fn.empty(vim.fn.glob(astronauta_path)) > 0 then
+ vim.api.nvim_command('!git clone --depth=1 https://github.com/tjdevries/astronauta.nvim ' .. astronauta_path)
+end
+local colorbuddy_path = install_path .. '/start/colorbuddy.nvim'
+if vim.fn.empty(vim.fn.glob(colorbuddy_path)) > 0 then
+ vim.api.nvim_command('!git clone --depth=1 https://github.com/tjdevries/colorbuddy.nvim ' .. colorbuddy_path)
end
function _G.D(...)
@@ -179,7 +192,7 @@ vim.cmd('command! Reload lua require("tms.u.reload").nvim()')
vim.cmd [[ packadd cfilter ]]
require('tms.plugins')
if vim.fn.empty(vim.fn.glob(vim.fn.stdpath('config') .. '/lua/packer_compiled.lua')) > 0 then
- vim.cmd [[PackerCompile]]
+ vim.cmd [[PackerSync]]
else
require('packer_compiled')
end
diff --git a/lua/my-default.lua b/lua/my-default.lua
@@ -1,6 +1,29 @@
local Color, colors, Group, groups, styles = require('colorbuddy').setup()
-package.path = '/home/tms/.cache/wal/?.lua;' .. package.path
-local c = require('colors')
+local c = {}
+if vim.fn.empty('/home/tms/.cache/wal') > 0 then
+ -- gruvbox
+ c.background='#1d2021'
+ c.foreground='#d5c4a1'
+ c.cursor='#d5c4a1'
+ c.color0='#1d2021'
+ c.color1='#fb4934'
+ c.color2='#b8bb26'
+ c.color3='#fabd2f'
+ c.color4='#83a598'
+ c.color5='#d3869b'
+ c.color6='#8ec07c'
+ c.color7='#d5c4a1'
+ c.color8='#665c54'
+ c.color9='#fb4934'
+ c.color10='#b8bb26'
+ c.color11='#fabd2f'
+ c.color12='#83a598'
+ c.color13='#d3869b'
+ c.color14='#8ec07c'
+ c.color15='#fbf1c7'
+else
+ c = dofile('/home/tms/.cache/wal/colors.lua')
+end
-- Special
Color.new('backg', c.background)
Color.new('foreg', c.foreground)
diff --git a/lua/tms/p/cmp/init.lua b/lua/tms/p/cmp/init.lua
@@ -1,7 +1,7 @@
local M = {}
local setup_sources = function()
- require('cmp_dictionary').setup({})
+ require('cmp_dictionary').setup({dic={}})
require('cmp').register_source('exe', require('tms.p.cmp.exe_source').new())
require('cmp').register_source('glab_dpgw', require('tms.p.cmp.glab_source').new())
end
diff --git a/lua/tms/p/dap.lua b/lua/tms/p/dap.lua
@@ -61,7 +61,6 @@ function M.setup()
-- cpp(dap)
-- dart(dap)
lua(dap)
- require('nvim-dap-virtual-text').setup();
end
function M.setup_ui() require('dapui').setup() end
diff --git a/lua/tms/plugins.lua b/lua/tms/plugins.lua
@@ -403,7 +403,9 @@ return packer.startup({
for debugger, _ in pairs(dbg_list) do dap_install.config(debugger, {}) end
end,
}
- use {'theHamsta/nvim-dap-virtual-text', after = {'nvim-dap'}}
+ use {'theHamsta/nvim-dap-virtual-text', after = {'nvim-dap'}, config = function()
+ require('nvim-dap-virtual-text').setup();
+ end}
-- treesitter
use {