Add vdebug
This commit is contained in:
		
							
								
								
									
										1
									
								
								.config/nvim/ftplugin/cpp.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								.config/nvim/ftplugin/cpp.lua
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1 @@
 | 
			
		||||
vim.bo.expandtab = true
 | 
			
		||||
@@ -1 +0,0 @@
 | 
			
		||||
setlocal et
 | 
			
		||||
							
								
								
									
										3
									
								
								.config/nvim/ftplugin/css.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								.config/nvim/ftplugin/css.lua
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,3 @@
 | 
			
		||||
vim.bo.expandtab = true
 | 
			
		||||
vim.bo.tabstop = 2
 | 
			
		||||
vim.bo.shiftwidth = 2
 | 
			
		||||
@@ -1,4 +0,0 @@
 | 
			
		||||
setlocal et
 | 
			
		||||
setlocal ts=2
 | 
			
		||||
setlocal sts=2
 | 
			
		||||
setlocal sw=2
 | 
			
		||||
							
								
								
									
										3
									
								
								.config/nvim/ftplugin/javascript.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								.config/nvim/ftplugin/javascript.lua
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,3 @@
 | 
			
		||||
vim.bo.expandtab = true
 | 
			
		||||
vim.bo.tabstop = 2
 | 
			
		||||
vim.bo.shiftwidth = 2
 | 
			
		||||
@@ -1,4 +0,0 @@
 | 
			
		||||
setlocal et
 | 
			
		||||
setlocal ts=2
 | 
			
		||||
setlocal sts=2
 | 
			
		||||
setlocal sw=2
 | 
			
		||||
							
								
								
									
										3
									
								
								.config/nvim/ftplugin/less.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								.config/nvim/ftplugin/less.lua
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,3 @@
 | 
			
		||||
vim.bo.expandtab = true
 | 
			
		||||
vim.bo.tabstop = 2
 | 
			
		||||
vim.bo.shiftwidth = 2
 | 
			
		||||
@@ -1,4 +0,0 @@
 | 
			
		||||
setlocal et
 | 
			
		||||
setlocal ts=2
 | 
			
		||||
setlocal sts=2
 | 
			
		||||
setlocal sw=2
 | 
			
		||||
							
								
								
									
										3
									
								
								.config/nvim/ftplugin/ruby.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								.config/nvim/ftplugin/ruby.lua
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,3 @@
 | 
			
		||||
vim.bo.expandtab = true
 | 
			
		||||
vim.bo.tabstop = 2
 | 
			
		||||
vim.bo.shiftwidth = 2
 | 
			
		||||
@@ -1,3 +0,0 @@
 | 
			
		||||
setlocal expandtab
 | 
			
		||||
setlocal tabstop=2
 | 
			
		||||
setlocal shiftwidth=2
 | 
			
		||||
							
								
								
									
										3
									
								
								.config/nvim/ftplugin/vue.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								.config/nvim/ftplugin/vue.lua
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,3 @@
 | 
			
		||||
vim.bo.expandtab = true
 | 
			
		||||
vim.bo.tabstop = 2
 | 
			
		||||
vim.bo.shiftwidth = 2
 | 
			
		||||
@@ -1,4 +0,0 @@
 | 
			
		||||
setlocal et
 | 
			
		||||
setlocal ts=2
 | 
			
		||||
setlocal sts=2
 | 
			
		||||
setlocal sw=2
 | 
			
		||||
@@ -83,6 +83,7 @@ require('packer').startup(function()
 | 
			
		||||
			'nvim-lua/plenary.nvim'
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
	use 'vim-vdebug/vdebug'
 | 
			
		||||
 | 
			
		||||
	-- nvim-cmp
 | 
			
		||||
	use 'dcampos/nvim-snippy'
 | 
			
		||||
@@ -93,8 +94,6 @@ require('packer').startup(function()
 | 
			
		||||
	use 'hrsh7th/cmp-buffer'
 | 
			
		||||
end)
 | 
			
		||||
 | 
			
		||||
local configuration = read_configuration()
 | 
			
		||||
 | 
			
		||||
--
 | 
			
		||||
-- ALE
 | 
			
		||||
--
 | 
			
		||||
@@ -195,11 +194,11 @@ nvim_lsp['hls'].setup {
 | 
			
		||||
nvim_lsp['intelephense'].setup {
 | 
			
		||||
    on_attach = default_on_attach,
 | 
			
		||||
	flags = {
 | 
			
		||||
		debounce_text_changes = 150,
 | 
			
		||||
		debounce_text_changes = 150
 | 
			
		||||
	},
 | 
			
		||||
	init_options = {
 | 
			
		||||
		licenceKey = configuration.intelephenseKey,
 | 
			
		||||
		storagePath = '/tmp/intelephense',
 | 
			
		||||
		licenceKey = os.getenv('HOME') .. '/Documents/Schluessel/intelephense.key',
 | 
			
		||||
		storagePath = '/tmp/intelephense'
 | 
			
		||||
	},
 | 
			
		||||
	capabilities = capabilities,
 | 
			
		||||
	settings = {
 | 
			
		||||
@@ -368,4 +367,9 @@ dap.configurations.cpp = {
 | 
			
		||||
  },
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
--
 | 
			
		||||
-- Vdebug
 | 
			
		||||
--
 | 
			
		||||
vim.g.vdebug_options = { port = '9000'  }
 | 
			
		||||
 | 
			
		||||
EOF
 | 
			
		||||
 
 | 
			
		||||
@@ -29,12 +29,3 @@ function default_on_attach(client, bufnr)
 | 
			
		||||
	nnoremap('gr', vim.lsp.buf.references, "Find references")
 | 
			
		||||
	nnoremap('<space>f', function() vim.lsp.buf.format { async = true } end, "Format file")
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
function read_configuration()
 | 
			
		||||
	local configuration = {}
 | 
			
		||||
	local chunk, err = loadfile(os.getenv('HOME') .. '/.config/nvim/config', 't', configuration)
 | 
			
		||||
	if chunk then
 | 
			
		||||
		chunk()
 | 
			
		||||
	end
 | 
			
		||||
	return configuration
 | 
			
		||||
end
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										11
									
								
								.profile
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								.profile
									
									
									
									
									
								
							@@ -4,7 +4,11 @@ if [ -x /opt/homebrew/bin/brew ]
 | 
			
		||||
then
 | 
			
		||||
	eval "$(/opt/homebrew/bin/brew shellenv)"
 | 
			
		||||
 | 
			
		||||
	PATH="$HOMEBREW_PREFIX/opt/bison/bin:/usr/local/bin:$PATH"
 | 
			
		||||
	PATH="/usr/local/bin:$PATH"
 | 
			
		||||
	for tool in flex bison
 | 
			
		||||
	do
 | 
			
		||||
		PATH="$HOMEBREW_PREFIX/opt/$tool/bin:$PATH"
 | 
			
		||||
	done
 | 
			
		||||
	for tool in libtool coreutils grep gnu-sed findutils make
 | 
			
		||||
	do
 | 
			
		||||
		PATH="$HOMEBREW_PREFIX/opt/$tool/libexec/gnubin:$PATH"
 | 
			
		||||
@@ -14,11 +18,6 @@ else
 | 
			
		||||
	export SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
if [ -d /opt/homebrew/opt/php@8.3 ]
 | 
			
		||||
then
 | 
			
		||||
	PATH="/opt/homebrew/opt/php@8.3/bin:/opt/homebrew/opt/php@8.3/sbin:$PATH"
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
if [ -d "$HOME/Android/Sdk" ]
 | 
			
		||||
then
 | 
			
		||||
	export ANDROID_HOME="$HOME/Android/Sdk"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user