stuff
This commit is contained in:
@ -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
|
||||
|
23
vim/.vim/lua/plugins/godot.lua
Normal file
23
vim/.vim/lua/plugins/godot.lua
Normal 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.
|
||||
},
|
||||
}
|
@ -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({
|
||||
|
Reference in New Issue
Block a user