add tabset, remove tabchar from listchars, start building DAP for Godot
This commit is contained in:
parent
e046a8d984
commit
3c78320142
25
init.lua
25
init.lua
|
@ -57,7 +57,7 @@ vim.opt.splitbelow = true
|
||||||
-- See `:help 'list'`
|
-- See `:help 'list'`
|
||||||
-- and `:help 'listchars'`
|
-- and `:help 'listchars'`
|
||||||
vim.opt.list = true
|
vim.opt.list = true
|
||||||
-- vim.opt.listchars = { tab = '» ', trail = '·', nbsp = '␣' }
|
vim.opt.listchars = { tab = ' ', trail = '·', nbsp = '␣' }
|
||||||
|
|
||||||
-- Preview substitutions live, as you type!
|
-- Preview substitutions live, as you type!
|
||||||
vim.opt.inccommand = 'split'
|
vim.opt.inccommand = 'split'
|
||||||
|
@ -518,6 +518,29 @@ require('lazy').setup({
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
{ -- DAP for Godot - https://docs.godotengine.org/en/stable/tutorials/editor/external_editor.html#lsp-dap-support
|
||||||
|
'mfussenegger/nvim-dap',
|
||||||
|
config = function()
|
||||||
|
local dap = require 'dap'
|
||||||
|
dap.adapters.godot = {
|
||||||
|
type = 'server',
|
||||||
|
host = '127.0.0.1',
|
||||||
|
port = 6006,
|
||||||
|
}
|
||||||
|
|
||||||
|
dap.configurations.gdscript = {
|
||||||
|
{
|
||||||
|
launch_game_instance = false,
|
||||||
|
launch_scene = false,
|
||||||
|
name = 'Launch scene',
|
||||||
|
project = '${workspaceFolder}',
|
||||||
|
request = 'launch',
|
||||||
|
type = 'godot',
|
||||||
|
},
|
||||||
|
}
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
|
||||||
{ -- Autoformat
|
{ -- Autoformat
|
||||||
'stevearc/conform.nvim',
|
'stevearc/conform.nvim',
|
||||||
lazy = false,
|
lazy = false,
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
return {
|
||||||
|
'FotiadisM/tabset.nvim',
|
||||||
|
config = function()
|
||||||
|
require('tabset').setup {
|
||||||
|
defaults = {
|
||||||
|
tabwidth = 4,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
end,
|
||||||
|
}
|
Loading…
Reference in New Issue