doom-nvim icon indicating copy to clipboard operation
doom-nvim copied to clipboard

[BUG][next] Languages throw errors

Open baurmatt opened this issue 3 years ago • 9 comments

Current Behavior:

I'm getting stacktrace due to some enabled languages:

"config.lua" 58L, 1565B [w]
[doom] [ERROR 07:49:26] config.lua:87: There was an error loading module 'langs.ruby'. Traceback:
[doom] module 'doom.modules.langs.ruby' not found:
[doom] ^Ino field package.preload['doom.modules.langs.ruby']
[doom] ^Ino file './doom/modules/langs/ruby.lua'
[doom] ^Ino file '/opt/homebrew/Cellar/luajit-openresty/2.1-20220411/share/luajit-2.1.0-beta3/doom/modules/langs/ruby.lua'
[doom] ^Ino file '/usr/local/share/lua/5.1/doom/modules/langs/ruby.lua'
[doom] ^Ino file '/usr/local/share/lua/5.1/doom/modules/langs/ruby/init.lua'
[doom] ^Ino file '/opt/homebrew/Cellar/luajit-openresty/2.1-20220411/share/lua/5.1/doom/modules/langs/ruby.lua'
[doom] ^Ino file '/opt/homebrew/Cellar/luajit-openresty/2.1-20220411/share/lua/5.1/doom/modules/langs/ruby/init.lua'
[doom] ^Ino file '/Users/mbaur/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/doom/modules/langs/ruby.lua'
[doom] ^Ino file '/Users/mbaur/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/doom/modules/langs/ruby/init.lua'
[doom] ^Ino file '/Users/mbaur/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/doom/modules/langs/ruby.lua'
[doom] ^Ino file '/Users/mbaur/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/doom/modules/langs/ruby/init.lua'
[doom] ^Ino file './doom/modules/langs/ruby.so'
[doom] ^Ino file '/usr/local/lib/lua/5.1/doom/modules/langs/ruby.so'
[doom] ^Ino file '/opt/homebrew/Cellar/luajit-openresty/2.1-20220411/lib/lua/5.1/doom/modules/langs/ruby.so'
[doom] ^Ino file '/usr/local/lib/lua/5.1/loadall.so'
[doom] ^Ino file '/Users/mbaur/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/doom/modules/langs/ruby.so'
[doom] ^Ino file './doom.so'
[doom] ^Ino file '/usr/local/lib/lua/5.1/doom.so'
[doom] ^Ino file '/opt/homebrew/Cellar/luajit-openresty/2.1-20220411/lib/lua/5.1/doom.so'
[doom] ^Ino file '/usr/local/lib/lua/5.1/loadall.so'
[doom] ^Ino file '/Users/mbaur/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/doom.so'
[doom] stack traceback:
[doom] ^I[C]: at 0x01055b17e4
[doom] ^I[C]: in function 'xpcall'
[doom] ^I/Users/mbaur/.config/nvim/lua/doom/core/config.lua:78: in function 'load'
[doom] ^I/Users/mbaur/.config/nvim/lua/doom/core/init.lua:40: in main chunk
[doom] ^I[C]: in function 'require'
[doom] ^I...aur/.config/nvim/lua/doom/modules/core/reloader/init.lua:66: in function 'reload_lua_module'
[doom] ^I...aur/.config/nvim/lua/doom/modules/core/reloader/init.lua:109: in function '_reload_doom'
[doom] ^I...aur/.config/nvim/lua/doom/modules/core/reloader/init.lua:150: in function 'reload'
[doom] ^I...aur/.config/nvim/lua/doom/modules/core/reloader/init.lua:185: in function <...aur/.config/nvim/lua/doom/modules/core/reloader/init.lua:183>
[doom] ^I[string ":lua"]:1: in main chunk
[doom] [ERROR 07:49:26] config.lua:87: There was an error loading module 'langs.dockerfile'. Traceback:
[doom] module 'doom.modules.langs.dockerfile' not found:
[doom] ^Ino field package.preload['doom.modules.langs.dockerfile']
[doom] ^Ino file './doom/modules/langs/dockerfile.lua'
[doom] ^Ino file '/opt/homebrew/Cellar/luajit-openresty/2.1-20220411/share/luajit-2.1.0-beta3/doom/modules/langs/dockerfile.lua'
[doom] ^Ino file '/usr/local/share/lua/5.1/doom/modules/langs/dockerfile.lua'
[doom] ^Ino file '/usr/local/share/lua/5.1/doom/modules/langs/dockerfile/init.lua'
[doom] ^Ino file '/opt/homebrew/Cellar/luajit-openresty/2.1-20220411/share/lua/5.1/doom/modules/langs/dockerfile.lua'
[doom] ^Ino file '/opt/homebrew/Cellar/luajit-openresty/2.1-20220411/share/lua/5.1/doom/modules/langs/dockerfile/init.lua'
[doom] ^Ino file '/Users/mbaur/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/doom/modules/langs/dockerfile.lua'
[doom] ^Ino file '/Users/mbaur/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/doom/modules/langs/dockerfile/init.lua'
[doom] ^Ino file '/Users/mbaur/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/doom/modules/langs/dockerfile.lua'
[doom] ^Ino file '/Users/mbaur/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/doom/modules/langs/dockerfile/init.lua'
[doom] ^Ino file './doom/modules/langs/dockerfile.so'
[doom] ^Ino file '/usr/local/lib/lua/5.1/doom/modules/langs/dockerfile.so'
[doom] ^Ino file '/opt/homebrew/Cellar/luajit-openresty/2.1-20220411/lib/lua/5.1/doom/modules/langs/dockerfile.so'
[doom] ^Ino file '/usr/local/lib/lua/5.1/loadall.so'
[doom] ^Ino file '/Users/mbaur/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/doom/modules/langs/dockerfile.so'
[doom] ^Ino file './doom.so'
[doom] ^Ino file '/usr/local/lib/lua/5.1/doom.so'
[doom] ^Ino file '/opt/homebrew/Cellar/luajit-openresty/2.1-20220411/lib/lua/5.1/doom.so'
[doom] ^Ino file '/usr/local/lib/lua/5.1/loadall.so'
[doom] ^Ino file '/Users/mbaur/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/doom.so'
[doom] stack traceback:
[doom] ^I[C]: at 0x01055b17e4
[doom] ^I[C]: in function 'xpcall'
[doom] ^I/Users/mbaur/.config/nvim/lua/doom/core/config.lua:78: in function 'load'
[doom] ^I/Users/mbaur/.config/nvim/lua/doom/core/init.lua:40: in main chunk
[doom] ^I[C]: in function 'require'
[doom] ^I...aur/.config/nvim/lua/doom/modules/core/reloader/init.lua:66: in function 'reload_lua_module'
[doom] ^I...aur/.config/nvim/lua/doom/modules/core/reloader/init.lua:109: in function '_reload_doom'
[doom] ^I...aur/.config/nvim/lua/doom/modules/core/reloader/init.lua:150: in function 'reload'
[doom] ^I...aur/.config/nvim/lua/doom/modules/core/reloader/init.lua:185: in function <...aur/.config/nvim/lua/doom/modules/core/reloader/init.lua:183>
[doom] ^I[string ":lua"]:1: in main chunk
[doom] [ERROR 07:49:26] config.lua:87: There was an error loading module 'langs.hcl'. Traceback:
[doom] module 'doom.modules.langs.hcl' not found:
[doom] ^Ino field package.preload['doom.modules.langs.hcl']
[doom] ^Ino file './doom/modules/langs/hcl.lua'
[doom] ^Ino file '/opt/homebrew/Cellar/luajit-openresty/2.1-20220411/share/luajit-2.1.0-beta3/doom/modules/langs/hcl.lua'
[doom] ^Ino file '/usr/local/share/lua/5.1/doom/modules/langs/hcl.lua'
[doom] ^Ino file '/usr/local/share/lua/5.1/doom/modules/langs/hcl/init.lua'
[doom] ^Ino file '/opt/homebrew/Cellar/luajit-openresty/2.1-20220411/share/lua/5.1/doom/modules/langs/hcl.lua'
[doom] ^Ino file '/opt/homebrew/Cellar/luajit-openresty/2.1-20220411/share/lua/5.1/doom/modules/langs/hcl/init.lua'
[doom] ^Ino file '/Users/mbaur/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/doom/modules/langs/hcl.lua'
Error detected while processing VimLeavePre Autocommands for "*":
Error executing vim.schedule lua callback: /Users/mbaur/.config/nvim/lua/doom/utils/logging.lua:87: Keyboard interrupt
stack traceback:
        [C]: in function 'cmd'
        /Users/mbaur/.config/nvim/lua/doom/utils/logging.lua:87: in function ''
        vim/_editor.lua: in function <vim/_editor.lua:0>
        [C]: in function 'wait'
        ...w/Cellar/neovim/0.7.0/share/nvim/runtime/lua/vim/lsp.lua:1434: in function '_vim_exit_handler'
        [string ":lua"]:1: in main chunk
[doom] [ERROR 07:49:43] config.lua:103: Error while running `config.lua. Traceback:
[doom] vim/_meta.lua:0: Invalid option type 'boolean' for 'mouse', should be string or table
[doom] stack traceback:
[doom] ^I[C]: in function 'error'
[doom] ^Ivim/_meta.lua: in function ''
[doom] ^Ivim/_meta.lua: in function ''
[doom] ^Ivim/_meta.lua: in function '_set'
[doom] ^Ivim/_meta.lua: in function '__newindex'
[doom] ^I/Users/mbaur/.config/nvim/config.lua:52: in main chunk
[doom] ^I[builtin#25]: at 0x01055abde4
[doom] ^I[C]: in function 'xpcall'
[doom] ^I/Users/mbaur/.config/nvim/lua/doom/core/config.lua:100: in function 'load'
[doom] ^I/Users/mbaur/.config/nvim/lua/doom/core/init.lua:40: in main chunk
[doom] ^I[C]: in function 'require'
[doom] ^I...aur/.config/nvim/lua/doom/modules/core/reloader/init.lua:66: in function 'reload_lua_module'
[doom] ^I...aur/.config/nvim/lua/doom/modules/core/reloader/init.lua:109: in function '_reload_doom'
[doom] ^I...aur/.config/nvim/lua/doom/modules/core/reloader/init.lua:150: in function 'reload'
[doom] ^I...aur/.config/nvim/lua/doom/modules/core/reloader/init.lua:185: in function <...aur/.config/nvim/lua/doom/modules/core/reloader/init.lua:183>
[doom] ^I[string ":lua"]:1: in main chunk
[doom] [ERROR 07:49:43] config.lua:87: There was an error loading module 'langs.ruby'. Traceback:
[doom] module 'doom.modules.langs.ruby' not found:
[doom] ^Ino field package.preload['doom.modules.langs.ruby']
[doom] ^Ino file './doom/modules/langs/ruby.lua'
[doom] ^Ino file '/opt/homebrew/Cellar/luajit-openresty/2.1-20220411/share/luajit-2.1.0-beta3/doom/modules/langs/ruby.lua'
[doom] ^Ino file '/usr/local/share/lua/5.1/doom/modules/langs/ruby.lua'
[doom] ^Ino file '/usr/local/share/lua/5.1/doom/modules/langs/ruby/init.lua'
[doom] ^Ino file '/opt/homebrew/Cellar/luajit-openresty/2.1-20220411/share/lua/5.1/doom/modules/langs/ruby.lua'
[doom] ^Ino file '/opt/homebrew/Cellar/luajit-openresty/2.1-20220411/share/lua/5.1/doom/modules/langs/ruby/init.lua'
[doom] ^Ino file '/Users/mbaur/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/doom/modules/langs/ruby.lua'
[doom] ^Ino file '/Users/mbaur/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/doom/modules/langs/ruby/init.lua'
[doom] ^Ino file '/Users/mbaur/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/doom/modules/langs/ruby.lua'
[doom] ^Ino file '/Users/mbaur/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/doom/modules/langs/ruby/init.lua'
[doom] ^Ino file './doom/modules/langs/ruby.so'
[doom] ^Ino file '/usr/local/lib/lua/5.1/doom/modules/langs/ruby.so'
[doom] ^Ino file '/opt/homebrew/Cellar/luajit-openresty/2.1-20220411/lib/lua/5.1/doom/modules/langs/ruby.so'
[doom] ^Ino file '/usr/local/lib/lua/5.1/loadall.so'
[doom] ^Ino file '/Users/mbaur/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/doom/modules/langs/ruby.so'
[doom] ^Ino file './doom.so'
[doom] ^Ino file '/usr/local/lib/lua/5.1/doom.so'
[doom] ^Ino file '/opt/homebrew/Cellar/luajit-openresty/2.1-20220411/lib/lua/5.1/doom.so'
[doom] ^Ino file '/usr/local/lib/lua/5.1/loadall.so'
[doom] ^Ino file '/Users/mbaur/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/doom.so'
[doom] stack traceback:
[doom] ^I[C]: at 0x01055b17e4
[doom] ^I[C]: in function 'xpcall'
[doom] ^I/Users/mbaur/.config/nvim/lua/doom/core/config.lua:78: in function 'load'
[doom] ^I...aur/.config/nvim/lua/doom/modules/core/reloader/init.lua:114: in function '_reload_doom'
[doom] ^I...aur/.config/nvim/lua/doom/modules/core/reloader/init.lua:150: in function 'reload'
[doom] ^I...aur/.config/nvim/lua/doom/modules/core/reloader/init.lua:185: in function <...aur/.config/nvim/lua/doom/modules/core/reloader/init.lua:183>
[doom] ^I[string ":lua"]:1: in main chunk
[doom] [ERROR 07:49:43] config.lua:87: There was an error loading module 'langs.dockerfile'. Traceback:
[doom] module 'doom.modules.langs.dockerfile' not found:
[doom] ^Ino field package.preload['doom.modules.langs.dockerfile']
[doom] ^Ino file './doom/modules/langs/dockerfile.lua'
[doom] ^Ino file '/opt/homebrew/Cellar/luajit-openresty/2.1-20220411/share/luajit-2.1.0-beta3/doom/modules/langs/dockerfile.lua'
[doom] ^Ino file '/usr/local/share/lua/5.1/doom/modules/langs/dockerfile.lua'
[doom] ^Ino file '/usr/local/share/lua/5.1/doom/modules/langs/dockerfile/init.lua'
[doom] ^Ino file '/opt/homebrew/Cellar/luajit-openresty/2.1-20220411/share/lua/5.1/doom/modules/langs/dockerfile.lua'
[doom] ^Ino file '/opt/homebrew/Cellar/luajit-openresty/2.1-20220411/share/lua/5.1/doom/modules/langs/dockerfile/init.lua'
[doom] ^Ino file '/Users/mbaur/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/doom/modules/langs/dockerfile.lua'
[doom] ^Ino file '/Users/mbaur/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/doom/modules/langs/dockerfile/init.lua'
[doom] ^Ino file '/Users/mbaur/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/doom/modules/langs/dockerfile.lua'
[doom] ^Ino file '/Users/mbaur/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/doom/modules/langs/dockerfile/init.lua'
[doom] ^Ino file './doom/modules/langs/dockerfile.so'
[doom] ^Ino file '/usr/local/lib/lua/5.1/doom/modules/langs/dockerfile.so'
[doom] ^Ino file '/opt/homebrew/Cellar/luajit-openresty/2.1-20220411/lib/lua/5.1/doom/modules/langs/dockerfile.so'
[doom] ^Ino file '/usr/local/lib/lua/5.1/loadall.so'
[doom] ^Ino file '/Users/mbaur/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/doom/modules/langs/dockerfile.so'

Using this configuration:

diff --git a/modules.lua b/modules.lua
index e2b0206..01a32ff 100644
--- a/modules.lua
+++ b/modules.lua
@@ -57,8 +57,10 @@ return {
   langs = {
     -- Scripts
     "lua",
-    -- "python",
-    -- "bash",
+    "python",
+    "ruby",
+    "go",
+    "bash",
     -- "fish",

     -- Web
@@ -77,8 +79,10 @@ return {
     -- "kotlin",
     -- "java",

-    -- "config",          -- JSON, YAML, TOML
-    -- "markdown",
+    "config",          -- JSON, YAML, TOML
+    "dockerfile",
+    "hcl",
+    "markdown",
   }
 }

Expected Behavior:

No stacktraces :)

Steps To Reproduce:

Logs

Check Health Output
Doom Report Output

Anything else:

baurmatt avatar Jul 19 '22 05:07 baurmatt

@baurmatt I've just added ruby language support (uses solargraph lsp and rubocop linter) that should work (ruby just uses *.rb file extensions right? Does it use any others others?). I also noticed you've got hcl which I'll need to add support for. Is there an LSP/linter for this language? And what file extension does it use? For the meantime you can just run :TSInstall hcl to get correct syntax highlighting.

connorgmeehan avatar Jul 20 '22 02:07 connorgmeehan

Thanks! :)

ruby just uses *.rb file extensions right? Does it use any others others?

Not that I'm aware of. *.rb should be find for the beginning.

I also noticed you've got hcl which I'll need to add support for. Is there an LSP/linter for this language?

Hmm I only know terraform fmt 🤔 But I'm not sure if this is valid for all cases where hcl is used.

And what file extension does it use?

Here is a list of file extensions the HCL Visual Code plugin uses -> https://github.com/hashicorp/vscode-hcl/blob/7b8bc611972c52f4ad3eb7d375e66a61eacea393/src/common.ts#L45

baurmatt avatar Jul 20 '22 07:07 baurmatt

Thanks for the list of extensions, that really helped. Ok hcl/terraform is supported with the "terraform" language. Let me know if this works for you! :)

connorgmeehan avatar Jul 20 '22 07:07 connorgmeehan

I'm now seen [doom] ^I/Users/mbaur/.config/nvim/init.lua:16: in main chunk wenn opening a *.tf file :)

baurmatt avatar Jul 20 '22 12:07 baurmatt

Can you post the whole error trace? I can't re-create this one unfortunately :(.

connorgmeehan avatar Jul 25 '22 23:07 connorgmeehan

@connorgmeehan Sure! How do I get it? 🙈

baurmatt avatar Jul 26 '22 06:07 baurmatt

Here I just forced an error by making up a language. Just copy the whole error from :messages

[doom] [ERROR 14:46:18] config.lua:83: There was an error loading module 'langs.made_up_language'. Traceback:
[doom] module 'doom.modules.langs.made_up_language' not found:
[doom] ^Ino field package.preload['doom.modules.langs.made_up_language']
[doom] ^Ino file './doom/modules/langs/made_up_language.lua'
[doom] ^Ino file '/usr/local/Cellar/luajit-openresty/2.1-20220411/share/luajit-2.1.0-beta3/doom/modules/langs/made_up_language.lua'
[doom] ^Ino file '/usr/local/share/lua/5.1/doom/modules/langs/made_up_language.lua'
[doom] ^Ino file '/usr/local/share/lua/5.1/doom/modules/langs/made_up_language/init.lua'
[doom] ^Ino file '/usr/local/Cellar/luajit-openresty/2.1-20220411/share/lua/5.1/doom/modules/langs/made_up_language.lua'
[doom] ^Ino file '/usr/local/Cellar/luajit-openresty/2.1-20220411/share/lua/5.1/doom/modules/langs/made_up_language/init.lua'
[doom] ^Ino file './doom/modules/langs/made_up_language.so'
[doom] ^Ino file '/usr/local/lib/lua/5.1/doom/modules/langs/made_up_language.so'
[doom] ^Ino file '/usr/local/Cellar/luajit-openresty/2.1-20220411/lib/lua/5.1/doom/modules/langs/made_up_language.so'
[doom] ^Ino file '/usr/local/lib/lua/5.1/loadall.so'
[doom] ^Ino file './doom.so'
[doom] ^Ino file '/usr/local/lib/lua/5.1/doom.so'
[doom] ^Ino file '/usr/local/Cellar/luajit-openresty/2.1-20220411/lib/lua/5.1/doom.so'
[doom] ^Ino file '/usr/local/lib/lua/5.1/loadall.so'
[doom] stack traceback:
[doom] ^I[C]: at 0x010b37b713
[doom] ^I[C]: in function 'xpcall'
[doom] ^I/Users/connormeehan/.config/nvim/lua/doom/core/config.lua:74: in function 'load'
[doom] ^I/Users/connormeehan/.config/nvim/lua/doom/core/init.lua:40: in main chunk
[doom] ^I[C]: in function 'require'
[doom] ^I/Users/connormeehan/.config/nvim/init.lua:19: in main chunk

connorgmeehan avatar Jul 29 '22 04:07 connorgmeehan

Thanks! :) Here's the error:

[doom] [ERROR 09:09:37] config.lua:83: There was an error loading module 'langs.dockerfile'. Traceback:
[doom] module 'doom.modules.langs.dockerfile' not found:
[doom] ^Ino field package.preload['doom.modules.langs.dockerfile']
[doom] ^Ino file './doom/modules/langs/dockerfile.lua'
[doom] ^Ino file '/opt/homebrew/Cellar/luajit-openresty/2.1-20220411/share/luajit-2.1.0-beta3/doom/modules/langs/dockerfile.lua'
[doom] ^Ino file '/usr/local/share/lua/5.1/doom/modules/langs/dockerfile.lua'
[doom] ^Ino file '/usr/local/share/lua/5.1/doom/modules/langs/dockerfile/init.lua'
[doom] ^Ino file '/opt/homebrew/Cellar/luajit-openresty/2.1-20220411/share/lua/5.1/doom/modules/langs/dockerfile.lua'
[doom] ^Ino file '/opt/homebrew/Cellar/luajit-openresty/2.1-20220411/share/lua/5.1/doom/modules/langs/dockerfile/init.lua'
[doom] ^Ino file './doom/modules/langs/dockerfile.so'
[doom] ^Ino file '/usr/local/lib/lua/5.1/doom/modules/langs/dockerfile.so'
[doom] ^Ino file '/opt/homebrew/Cellar/luajit-openresty/2.1-20220411/lib/lua/5.1/doom/modules/langs/dockerfile.so'
[doom] ^Ino file '/usr/local/lib/lua/5.1/loadall.so'
[doom] ^Ino file './doom.so'
[doom] ^Ino file '/usr/local/lib/lua/5.1/doom.so'
[doom] ^Ino file '/opt/homebrew/Cellar/luajit-openresty/2.1-20220411/lib/lua/5.1/doom.so'
[doom] ^Ino file '/usr/local/lib/lua/5.1/loadall.so'
[doom] stack traceback:
[doom] ^I[C]: at 0x0102b917e4
[doom] ^I[C]: in function 'xpcall'
[doom] ^I/Users/mbaur/.config/nvim/lua/doom/core/config.lua:74: in function 'load'
[doom] ^I/Users/mbaur/.config/nvim/lua/doom/core/init.lua:40: in main chunk
[doom] ^I[C]: in function 'require'
[doom] ^I/Users/mbaur/.config/nvim/init.lua:16: in main chunk

baurmatt avatar Jul 29 '22 07:07 baurmatt

Ahh that'd be because there isn't dockerfil support. Will implement one now. Send me your modules.lua and I'll see if there's any more I need to add.

connorgmeehan avatar Aug 02 '22 00:08 connorgmeehan

I'm currently using this modules.lua:

diff --git a/modules.lua b/modules.lua
index 345eaee..2721e73 100644
--- a/modules.lua
+++ b/modules.lua
@@ -58,8 +58,10 @@ return {
   langs = {
     -- Scripts
     "lua",
-    -- "python",
-    -- "bash",
+    "python",
+    --"ruby",
+    "go",
+    "bash",
     -- "fish",

     -- Web
@@ -78,9 +80,10 @@ return {
     -- "kotlin",
     -- "java",

-    -- "config",          -- JSON, YAML, TOML
-    -- "markdown",
-    -- "terraform",       -- Terraform / hcl files support
+    "config",          -- JSON, YAML, TOML
+    "dockerfile",
+    "terraform",
+    "markdown",
   }
 }

baurmatt avatar Aug 08 '22 13:08 baurmatt

Ok great, these should all be supported. Let me know if it's all working for you and I'll close the issue :). Also a side note, only the languages that are there are currently supported but feel free to comment here / open an issue if you need more language support. We should probably fix it in the future to make doom-nvim try setup the LSP / treesitter just using default settings as a fallback if a language is missing.

connorgmeehan avatar Aug 08 '22 13:08 connorgmeehan

Looks good, thanks a lot! :) And sorry, for answering this late. Was busy with $life :)

baurmatt avatar Aug 15 '22 12:08 baurmatt