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
|
||||
|
Reference in New Issue
Block a user