diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..318bcc2 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +# Used to override theme, see lua/plugins/statusbar.lua +lua/config/lualine.lua diff --git a/lua/config/lsp.lua b/lua/config/lsp.lua index 09d54a5..558a2b3 100644 --- a/lua/config/lsp.lua +++ b/lua/config/lsp.lua @@ -4,6 +4,8 @@ local requires = { 'lua_ls', 'clangd', 'dartls', + 'gopls', + 'ols', } local lsps = {} diff --git a/lua/lsp/gopls.lua b/lua/lsp/gopls.lua new file mode 100644 index 0000000..a564707 --- /dev/null +++ b/lua/lsp/gopls.lua @@ -0,0 +1 @@ +return {} diff --git a/lua/lsp/ols.lua b/lua/lsp/ols.lua new file mode 100644 index 0000000..a564707 --- /dev/null +++ b/lua/lsp/ols.lua @@ -0,0 +1 @@ +return {} diff --git a/lua/plugins/statusbar.lua b/lua/plugins/statusbar.lua index 554e2da..6fc42c4 100644 --- a/lua/plugins/statusbar.lua +++ b/lua/plugins/statusbar.lua @@ -1,10 +1,13 @@ +-- config.lualine is simply `return ''`, this is used to avoid lualine error +local theme = require 'config.lualine' or 'auto' + return { { 'nvim-lualine/lualine.nvim', dependencies = { 'nvim-tree/nvim-web-devicons' }, opts = { options = { - theme = 'pywal', + theme = theme, section_separators = { left = '/', right = '/' }, component_separators = { left = '/', right = '/' }, },