This commit is contained in:
Christian Nieves
2023-11-17 10:12:53 -06:00
parent ab276d95e5
commit 7d6a1f823d
9 changed files with 50 additions and 3 deletions

View File

@ -0,0 +1,4 @@
set autoindent
set noexpandtab
set tabstop=4
set shiftwidth=4

View File

@ -3,8 +3,9 @@ return {
lazy = false,
config = function()
local ft = require("Comment.ft")
ft.gd = "#%s"
ft.gdscript = "#%s"
ft.gd = "# %s"
ft.gdscript = "# %s"
ft.gsl = "// %s"
require("Comment").setup({
---Add a space b/w comment and the line

View File

@ -0,0 +1,23 @@
local use_google = require("utils").use_google
return {
{
"habamax/vim-godot",
cond = not use_google(),
},
{
"QuickGD/quickgd.nvim",
ft = { "gdshader", "gdshaderinc" },
cmd = { "GodotRun", "GodotRunLast", "GodotStart" },
cond = not use_google(),
-- Use opts if passing in settings else use config
init = function()
vim.filetype.add({
extension = {
gdshaderinc = "gdshaderinc",
},
})
end,
config = true,
opts = {}, -- remove config and use this if changing settings.
},
}

View File

@ -25,6 +25,15 @@ return {
{
"hinell/lsp-timeout.nvim",
dependencies = { "neovim/nvim-lspconfig" },
config = function()
vim.g.lspTimeoutConfig = {
filetypes = {
ignore = { -- filetypes to ignore; empty by default
"gdscript",
}, -- for these filetypes
},
}
end,
},
{
"neovim/nvim-lspconfig",
@ -77,6 +86,8 @@ return {
-- Godot
lspconfig.gdscript.setup({})
vim.cmd([[autocmd FileType gdscript setlocal commentstring=#\ %s]])
vim.cmd([[autocmd FileType gdscript setlocal autoindent noexpandtab tabstop=4 shiftwidth=4]])
-- Golang
require("go").setup({