summaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
authorDavid Luevano Alvarado <david@luevano.xyz>2024-02-03 02:53:32 -0600
committerDavid Luevano Alvarado <david@luevano.xyz>2024-02-03 02:53:32 -0600
commit7f79a6ef4be13a4511dfa8a06c9cedb9dcb3c67a (patch)
tree0a1e37da334a0af3423345534a3bff8bb846720e /lua
parent143e63831568a91a0a7e614dc1be8d9ac25c0750 (diff)
refactor: general formatting
Diffstat (limited to 'lua')
-rw-r--r--lua/plugins/alpha.lua2
-rw-r--r--lua/plugins/colorizer.lua2
-rw-r--r--lua/plugins/context.lua2
-rw-r--r--lua/plugins/gopher.lua2
-rw-r--r--lua/plugins/init.lua2
-rw-r--r--lua/plugins/lspconfig.lua4
-rw-r--r--lua/plugins/lualine.lua22
-rw-r--r--lua/plugins/neo-tree.lua23
8 files changed, 30 insertions, 29 deletions
diff --git a/lua/plugins/alpha.lua b/lua/plugins/alpha.lua
index bd1491f..1efb012 100644
--- a/lua/plugins/alpha.lua
+++ b/lua/plugins/alpha.lua
@@ -4,7 +4,7 @@ return {
dependencies = {
'nvim-tree/nvim-web-devicons'
},
- config = function ()
+ config = function()
require('alpha').setup(require('alpha.themes.theta').config)
end,
}
diff --git a/lua/plugins/colorizer.lua b/lua/plugins/colorizer.lua
index ec1eec6..a4d0425 100644
--- a/lua/plugins/colorizer.lua
+++ b/lua/plugins/colorizer.lua
@@ -5,7 +5,7 @@ return {
user_default_options = {
RGB = true, -- #RGB hex codes
RRGGBB = true, -- #RRGGBB hex codes
- names = false, -- "Name" codes like Blue or blue
+ names = false, -- "Name" codes like Blue or blue
RRGGBBAA = false, -- #RRGGBBAA hex codes
AARRGGBB = false, -- 0xAARRGGBB hex codes
rgb_fn = false, -- CSS rgb() and rgba() functions
diff --git a/lua/plugins/context.lua b/lua/plugins/context.lua
index e0625ab..b968f5a 100644
--- a/lua/plugins/context.lua
+++ b/lua/plugins/context.lua
@@ -14,7 +14,7 @@ return {
-- Separator between context and content. Should be a single character string, like '-'.
-- When separator is set, the context will only show up when there are at least 2 lines above cursorline.
separator = nil,
- zindex = 20, -- The Z-index of the context window
+ zindex = 20, -- The Z-index of the context window
on_attach = nil, -- (fun(buf: integer): boolean) return false to disable attaching
},
config = function(_, opts)
diff --git a/lua/plugins/gopher.lua b/lua/plugins/gopher.lua
index ade6eaf..7e5eb72 100644
--- a/lua/plugins/gopher.lua
+++ b/lua/plugins/gopher.lua
@@ -14,7 +14,7 @@ return {
-- impl
-- gotests
-- iferr
- -- I just installed them with mason, it would be easier to install
+ -- I just installed them with mason, it would be easier to install
-- them here with mason, but my config is already a mess
require('gopher').setup(opts)
diff --git a/lua/plugins/init.lua b/lua/plugins/init.lua
index 28ed11b..b278ce2 100644
--- a/lua/plugins/init.lua
+++ b/lua/plugins/init.lua
@@ -3,7 +3,7 @@ return {
-- uses .editorconfig https://editorconfig.org/
'tpope/vim-sleuth',
-- "gc" to comment visual regions/lines
- { 'numToStr/Comment.nvim', opts = {} },
+ { 'numToStr/Comment.nvim', opts = {} },
-- required for nvim-qt on windows
{ 'equalsraf/neovim-gui-shim' },
}
diff --git a/lua/plugins/lspconfig.lua b/lua/plugins/lspconfig.lua
index d4526f3..8023bdc 100644
--- a/lua/plugins/lspconfig.lua
+++ b/lua/plugins/lspconfig.lua
@@ -1,5 +1,5 @@
local servers = {
- gopls = { -- just the key for the gopls config
+ gopls = { -- just the key for the gopls config
gopls = { -- settings parameter in lspconfig.setup requires a this table with another "gopls" name
completeUnimported = true,
usePlaceholders = true,
@@ -122,6 +122,6 @@ return {
})
-- At the end, add GDscript support, which is only supported by lspconfig itself
- lspconfig.gdscript.setup({capabilities = capabilities})
+ lspconfig.gdscript.setup({ capabilities = capabilities })
end,
}
diff --git a/lua/plugins/lualine.lua b/lua/plugins/lualine.lua
index 57edf97..c8c6377 100644
--- a/lua/plugins/lualine.lua
+++ b/lua/plugins/lualine.lua
@@ -11,18 +11,18 @@ return {
section_separators = { left = '', right = '' },
},
sections = {
- lualine_a = {'mode'},
- lualine_b = {'branch', 'diff', 'diagnostics'},
- lualine_c = {'filename'},
- lualine_x = {'encoding', 'fileformat', 'filetype'},
- lualine_y = {'progress'},
- lualine_z = {'location'},
+ lualine_a = { 'mode' },
+ lualine_b = { 'branch', 'diff', 'diagnostics' },
+ lualine_c = { 'filename' },
+ lualine_x = { 'encoding', 'fileformat', 'filetype' },
+ lualine_y = { 'progress' },
+ lualine_z = { 'location' },
},
inactive_sections = {
lualine_a = {},
lualine_b = {},
- lualine_c = {'filename'},
- lualine_x = {'location'},
+ lualine_c = { 'filename' },
+ lualine_x = { 'location' },
lualine_y = {},
lualine_z = {}
},
@@ -30,17 +30,17 @@ return {
-- https://github.com/kdheepak/tabline.nvim
-- as it supports binding buffers to tabs so they can work as workspaces
tabline = {
- lualine_a = {'buffers'},
+ lualine_a = { 'buffers' },
lualine_b = {},
lualine_c = {},
lualine_x = {},
lualine_y = {},
- lualine_z = {'tabs'},
+ lualine_z = { 'tabs' },
},
-- Window specific bar, appears below tabline
-- and inside window
winbar = {},
inactive_winbar = {},
- extensions = {'neo-tree'},
+ extensions = { 'neo-tree' },
},
}
diff --git a/lua/plugins/neo-tree.lua b/lua/plugins/neo-tree.lua
index 346fd5b..c95eefb 100644
--- a/lua/plugins/neo-tree.lua
+++ b/lua/plugins/neo-tree.lua
@@ -88,8 +88,8 @@ return {
},
git_status = {
symbols = {
- renamed = "󰁕",
- unstaged = "󰄱",
+ renamed = "󰁕",
+ unstaged = "󰄱",
},
},
},
@@ -185,17 +185,18 @@ return {
client_filters = "first",
renderers = {
root = {
- {"indent"},
- {"icon", default="C" },
- {"name", zindex = 10},
+ { "indent" },
+ { "icon", default = "C" },
+ { "name", zindex = 10 },
},
symbol = {
- {"indent", with_expanders = true},
- {"kind_icon", default="?" },
- {"container",
+ { "indent", with_expanders = true },
+ { "kind_icon", default = "?" },
+ {
+ "container",
content = {
- {"name", zindex = 10},
- {"kind_name", zindex = 20, align = "right"},
+ { "name", zindex = 10 },
+ { "kind_name", zindex = 20, align = "right" },
}
}
},
@@ -281,7 +282,7 @@ return {
tabs_max_width = nil,
padding = 0,
-- Default separators, wanted to use powerline icons, but the coloring is all wrong
- separator = { left = "▏", right= "▕" },
+ separator = { left = "▏", right = "▕" },
separator_active = nil,
show_separator_on_edge = false,
highlight_tab = "NeoTreeTabInactive",