diff options
author | Yigit Sever | 2024-02-09 01:39:40 +0300 |
---|---|---|
committer | Yigit Sever | 2024-02-09 01:39:40 +0300 |
commit | c818bf2a6758580063aecf97860bdb1d02789d60 (patch) | |
tree | e56ddb82ef16399cc3ae0b811001d3c2fc5de00f /.config/nvim/lua | |
parent | aaa08b837e679adf8cdf3cdea2272aab1c9fb80f (diff) | |
download | dotfiles-c818bf2a6758580063aecf97860bdb1d02789d60.tar.gz dotfiles-c818bf2a6758580063aecf97860bdb1d02789d60.tar.bz2 dotfiles-c818bf2a6758580063aecf97860bdb1d02789d60.zip |
nvim: lua formatting
Diffstat (limited to '.config/nvim/lua')
-rw-r--r-- | .config/nvim/lua/plugins/barbar.lua | 14 | ||||
-rw-r--r-- | .config/nvim/lua/plugins/colorscheme.lua | 2 | ||||
-rw-r--r-- | .config/nvim/lua/plugins/lsp.lua | 8 | ||||
-rw-r--r-- | .config/nvim/lua/plugins/lualine.lua | 28 | ||||
-rw-r--r-- | .config/nvim/lua/plugins/nvim-ufo.lua | 2 | ||||
-rw-r--r-- | .config/nvim/lua/plugins/trouble.lua | 6 | ||||
-rw-r--r-- | .config/nvim/lua/plugins/vimwiki.lua | 2 |
7 files changed, 32 insertions, 30 deletions
diff --git a/.config/nvim/lua/plugins/barbar.lua b/.config/nvim/lua/plugins/barbar.lua index 7b6c69d..906c73a 100644 --- a/.config/nvim/lua/plugins/barbar.lua +++ b/.config/nvim/lua/plugins/barbar.lua | |||
@@ -49,18 +49,18 @@ return { | |||
49 | clickable = false, | 49 | clickable = false, |
50 | icons = { | 50 | icons = { |
51 | diagnostics = { | 51 | diagnostics = { |
52 | [vim.diagnostic.severity.ERROR] = {enabled = true, icon = '❌'}, | 52 | [vim.diagnostic.severity.ERROR] = { enabled = true, icon = '❌' }, |
53 | [vim.diagnostic.severity.WARN] = {enabled = false}, | 53 | [vim.diagnostic.severity.WARN] = { enabled = false }, |
54 | [vim.diagnostic.severity.INFO] = {enabled = false}, | 54 | [vim.diagnostic.severity.INFO] = { enabled = false }, |
55 | [vim.diagnostic.severity.HINT] = {enabled = true}, | 55 | [vim.diagnostic.severity.HINT] = { enabled = true }, |
56 | }, | 56 | }, |
57 | filetype = { | 57 | filetype = { |
58 | custom_colors = false, | 58 | custom_colors = false, |
59 | enabled = true, | 59 | enabled = true, |
60 | }, | 60 | }, |
61 | separator = { left = '▎', right = ''}, | 61 | separator = { left = '▎', right = '' }, |
62 | modified = { button = ''}, | 62 | modified = { button = '' }, |
63 | pinned = { button = '', filename = true, separator = { right = ''}}, | 63 | pinned = { button = '', filename = true, separator = { right = '' } }, |
64 | }, | 64 | }, |
65 | 65 | ||
66 | insert_at_end = false, | 66 | insert_at_end = false, |
diff --git a/.config/nvim/lua/plugins/colorscheme.lua b/.config/nvim/lua/plugins/colorscheme.lua index 969d304..b880e26 100644 --- a/.config/nvim/lua/plugins/colorscheme.lua +++ b/.config/nvim/lua/plugins/colorscheme.lua | |||
@@ -14,7 +14,7 @@ return { | |||
14 | transparent_background = false, | 14 | transparent_background = false, |
15 | term_colors = false, | 15 | term_colors = false, |
16 | no_italic = true, -- force no italic | 16 | no_italic = true, -- force no italic |
17 | no_bold = false, -- force no bold | 17 | no_bold = false, -- force no bold |
18 | integrations = { | 18 | integrations = { |
19 | barbar = true, | 19 | barbar = true, |
20 | cmp = true, | 20 | cmp = true, |
diff --git a/.config/nvim/lua/plugins/lsp.lua b/.config/nvim/lua/plugins/lsp.lua index d55158e..95f09f1 100644 --- a/.config/nvim/lua/plugins/lsp.lua +++ b/.config/nvim/lua/plugins/lsp.lua | |||
@@ -191,10 +191,10 @@ return { | |||
191 | progress = { | 191 | progress = { |
192 | suppress_on_insert = true, | 192 | suppress_on_insert = true, |
193 | 193 | ||
194 | display = { | 194 | display = { |
195 | render_limit = 4, | 195 | render_limit = 4, |
196 | progress_icon = { | 196 | progress_icon = { |
197 | pattern = "triangle", | 197 | pattern = "triangle", |
198 | 198 | ||
199 | }, | 199 | }, |
200 | }, | 200 | }, |
diff --git a/.config/nvim/lua/plugins/lualine.lua b/.config/nvim/lua/plugins/lualine.lua index 0da0b89..c4e936e 100644 --- a/.config/nvim/lua/plugins/lualine.lua +++ b/.config/nvim/lua/plugins/lualine.lua | |||
@@ -7,7 +7,7 @@ local function lualine_spell() | |||
7 | end | 7 | end |
8 | 8 | ||
9 | local conditions = { | 9 | local conditions = { |
10 | spell_on = function () | 10 | spell_on = function() |
11 | return vim.wo.spell | 11 | return vim.wo.spell |
12 | end, | 12 | end, |
13 | filetype_is_tex = function() | 13 | filetype_is_tex = function() |
@@ -45,11 +45,11 @@ return { | |||
45 | }, | 45 | }, |
46 | }, | 46 | }, |
47 | sections = { | 47 | sections = { |
48 | lualine_a = {{'mode', fmt = string.lower}}, | 48 | lualine_a = { { 'mode', fmt = string.lower } }, |
49 | lualine_b = {'branch', | 49 | lualine_b = { 'branch', |
50 | { | 50 | { |
51 | 'diff', | 51 | 'diff', |
52 | diff_color= { | 52 | diff_color = { |
53 | added = { fg = 'LightGreen' }, | 53 | added = { fg = 'LightGreen' }, |
54 | modified = { fg = 'LightBlue' }, | 54 | modified = { fg = 'LightBlue' }, |
55 | removed = { fg = 'LightRed' }, | 55 | removed = { fg = 'LightRed' }, |
@@ -58,23 +58,23 @@ return { | |||
58 | { | 58 | { |
59 | lualine_spell, | 59 | lualine_spell, |
60 | cond = conditions.spell_on, | 60 | cond = conditions.spell_on, |
61 | }}, | 61 | } }, |
62 | lualine_c = {'filename'}, | 62 | lualine_c = { 'filename' }, |
63 | lualine_x = {encoding, fileformat, 'filetype'}, | 63 | lualine_x = { encoding, fileformat, 'filetype' }, |
64 | lualine_y = {'progress'}, | 64 | lualine_y = { 'progress' }, |
65 | lualine_z = { | 65 | lualine_z = { |
66 | 'location', { | 66 | 'location', { |
67 | 'diagnostics', | 67 | 'diagnostics', |
68 | sources = {'nvim_diagnostic'}, | 68 | sources = { 'nvim_diagnostic' }, |
69 | sections = {'error', 'warn', 'info', 'hint'}, | 69 | sections = { 'error', 'warn', 'info', 'hint' }, |
70 | symbols = {error = 'e', warn = 'w', info = 'i', hint = 'h'} | 70 | symbols = { error = 'e', warn = 'w', info = 'i', hint = 'h' } |
71 | } | 71 | } |
72 | } | 72 | } |
73 | }, | 73 | }, |
74 | inactive_sections = { | 74 | inactive_sections = { |
75 | lualine_a = {}, | 75 | lualine_a = {}, |
76 | lualine_b = {}, | 76 | lualine_b = {}, |
77 | lualine_c = {'filename'}, | 77 | lualine_c = { 'filename' }, |
78 | lualine_x = {}, | 78 | lualine_x = {}, |
79 | lualine_y = {}, | 79 | lualine_y = {}, |
80 | lualine_z = {} | 80 | lualine_z = {} |
diff --git a/.config/nvim/lua/plugins/nvim-ufo.lua b/.config/nvim/lua/plugins/nvim-ufo.lua index a3d69ba..65f079a 100644 --- a/.config/nvim/lua/plugins/nvim-ufo.lua +++ b/.config/nvim/lua/plugins/nvim-ufo.lua | |||
@@ -61,7 +61,7 @@ return { | |||
61 | end | 61 | end |
62 | 62 | ||
63 | return (filetype == "" or buftype == "nofile") and | 63 | return (filetype == "" or buftype == "nofile") and |
64 | "indent" -- only use indent until a file is opened | 64 | "indent" -- only use indent until a file is opened |
65 | or function(bufnr) | 65 | or function(bufnr) |
66 | return require("ufo") | 66 | return require("ufo") |
67 | .getFolds(bufnr, "lsp") | 67 | .getFolds(bufnr, "lsp") |
diff --git a/.config/nvim/lua/plugins/trouble.lua b/.config/nvim/lua/plugins/trouble.lua index 6d72bd9..b80aed3 100644 --- a/.config/nvim/lua/plugins/trouble.lua +++ b/.config/nvim/lua/plugins/trouble.lua | |||
@@ -5,8 +5,10 @@ return { | |||
5 | config = function() | 5 | config = function() |
6 | local map = require("helpers.keys").map | 6 | local map = require("helpers.keys").map |
7 | map("n", "<leader>xx", function() require("trouble").open() end, "trouble: open") | 7 | map("n", "<leader>xx", function() require("trouble").open() end, "trouble: open") |
8 | map("n", "<leader>xw", function() require("trouble").open("workspace_diagnostics") end, "trouble: open workspace diagnostics") | 8 | map("n", "<leader>xw", function() require("trouble").open("workspace_diagnostics") end, |
9 | map("n", "<leader>xd", function() require("trouble").open("document_diagnostics") end, "trouble: open document diagnostics") | 9 | "trouble: open workspace diagnostics") |
10 | map("n", "<leader>xd", function() require("trouble").open("document_diagnostics") end, | ||
11 | "trouble: open document diagnostics") | ||
10 | map("n", "<leader>xq", function() require("trouble").open("quickfix") end, "trouble: open quickfix") | 12 | map("n", "<leader>xq", function() require("trouble").open("quickfix") end, "trouble: open quickfix") |
11 | map("n", "<leader>xl", function() require("trouble").open("loclist") end, "trouble: open loclist") | 13 | map("n", "<leader>xl", function() require("trouble").open("loclist") end, "trouble: open loclist") |
12 | map("n", "gR", function() require("trouble").open("lsp_references") end, "trouble: open lsp references") | 14 | map("n", "gR", function() require("trouble").open("lsp_references") end, "trouble: open lsp references") |
diff --git a/.config/nvim/lua/plugins/vimwiki.lua b/.config/nvim/lua/plugins/vimwiki.lua index ae0c4e5..a114b04 100644 --- a/.config/nvim/lua/plugins/vimwiki.lua +++ b/.config/nvim/lua/plugins/vimwiki.lua | |||
@@ -1,7 +1,7 @@ | |||
1 | return { | 1 | return { |
2 | { | 2 | { |
3 | "yigitsever/vimwiki", | 3 | "yigitsever/vimwiki", |
4 | init = function () | 4 | init = function() |
5 | vim.g.vimwiki_list = { | 5 | vim.g.vimwiki_list = { |
6 | { | 6 | { |
7 | path = '/home/yigit/nextcloud/personal_wiki/text', | 7 | path = '/home/yigit/nextcloud/personal_wiki/text', |