Updated things, following TJ Devries advent of Neovim.
This commit is contained in:
parent
61417e64f5
commit
2c749ac329
5 changed files with 36 additions and 18 deletions
14
after/ftplugin/gdscript.lua
Normal file
14
after/ftplugin/gdscript.lua
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
local port = os.getenv('GDScript_Port') or '6005'
|
||||
local cmd = vim.lsp.rpc.connect('127.0.0.1', port)
|
||||
local pipe = '/tmp/godot.pipe'
|
||||
|
||||
vim.lsp.start({
|
||||
name = 'Godot',
|
||||
cmd = cmd,
|
||||
root_dir = vim.fs.dirname(vim.fs.find({ 'project.godot', '.git' }, { upward = true })[1]),
|
||||
on_attach = function(client, bufnr)
|
||||
vim.api.nvim_command('echo serverstart("' .. pipe .. '")')
|
||||
end
|
||||
})
|
||||
|
||||
|
||||
3
after/ftplugin/lua.lua
Normal file
3
after/ftplugin/lua.lua
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
local set = vim.opt_local
|
||||
|
||||
set.shiftwidth = 2
|
||||
Loading…
Add table
Add a link
Reference in a new issue