style(nvim): format with stylua

This commit is contained in:
Price Hiller 2023-04-08 13:18:10 -05:00
parent c40352a364
commit 5c79abffeb
Signed by: Price
SSH Key Fingerprint: SHA256:Y4S9ZzYphRn1W1kbJerJFO6GGsfu9O70VaBSxJO7dF8
5 changed files with 57 additions and 63 deletions

View File

@ -28,7 +28,7 @@ cmp.setup({
} }
local extra_kind_icons = { local extra_kind_icons = {
TypeParameter = "" TypeParameter = "",
} }
local selection = selections[entry.source.name] local selection = selections[entry.source.name]

View File

@ -23,11 +23,10 @@ dap.adapters.coreclr = {
args = { "--interpreter=vscode" }, args = { "--interpreter=vscode" },
} }
dap.adapters.bashdb = { dap.adapters.bashdb = {
type = 'executable', type = "executable",
command = vim.fn.stdpath("data") .. '/mason/packages/bash-debug-adapter/bash-debug-adapter', command = vim.fn.stdpath("data") .. "/mason/packages/bash-debug-adapter/bash-debug-adapter",
name = 'bashdb' name = "bashdb",
} }
-- configurations -- configurations
@ -117,22 +116,22 @@ dap.configurations.fsharp = config
dap.configurations.sh = { dap.configurations.sh = {
{ {
type = 'bashdb'; type = "bashdb",
request = 'launch'; request = "launch",
name = "Launch file"; name = "Launch file",
showDebugOutput = true; showDebugOutput = true,
pathBashdb = vim.fn.stdpath("data") .. '/mason/packages/bash-debug-adapter/extension/bashdb_dir/bashdb'; pathBashdb = vim.fn.stdpath("data") .. "/mason/packages/bash-debug-adapter/extension/bashdb_dir/bashdb",
pathBashdbLib = vim.fn.stdpath("data") .. '/mason/packages/bash-debug-adapter/extension/bashdb_dir'; pathBashdbLib = vim.fn.stdpath("data") .. "/mason/packages/bash-debug-adapter/extension/bashdb_dir",
trace = true; trace = true,
file = "${file}"; file = "${file}",
program = "${file}"; program = "${file}",
cwd = '${workspaceFolder}'; cwd = "${workspaceFolder}",
pathCat = "cat"; pathCat = "cat",
pathBash = "/bin/bash"; pathBash = "/bin/bash",
pathMkfifo = "mkfifo"; pathMkfifo = "mkfifo",
pathPkill = "pkill"; pathPkill = "pkill",
args = {}; args = {},
env = {}; env = {},
terminalKind = "integrated"; terminalKind = "integrated",
} },
} }

View File

@ -17,10 +17,10 @@ require("kanagawa").setup({
theme = { theme = {
all = { all = {
ui = { ui = {
bg_gutter = 'NONE' bg_gutter = "NONE",
} },
} },
} },
}, },
overrides = function(palette) overrides = function(palette)
local colors = palette.palette local colors = palette.palette
@ -127,7 +127,7 @@ require("kanagawa").setup({
FloatTitle = { bg = "NONE" }, FloatTitle = { bg = "NONE" },
DiffviewFilePanelTitle = { fg = colors.crystalBlue }, DiffviewFilePanelTitle = { fg = colors.crystalBlue },
Headline = { bg = colors.sumiInk2 }, Headline = { bg = colors.sumiInk2 },
HeadlineReversed = { bg = colors.sumiInk1 } HeadlineReversed = { bg = colors.sumiInk1 },
} }
return overrides return overrides

View File

@ -1,9 +1,7 @@
local nvim_treesitter = require("nvim-treesitter.configs") local nvim_treesitter = require("nvim-treesitter.configs")
nvim_treesitter.setup({ nvim_treesitter.setup({
ensure_installed = { ensure_installed = { "norg" },
"norg",
},
highlight = { highlight = {
enable = true, enable = true,
disable = function(_, buf) disable = function(_, buf)
@ -14,23 +12,20 @@ nvim_treesitter.setup({
end end
end, end,
}, },
matchup = { matchup = { enable = true },
enable = true, autotag = { enable = true },
}, indent = { enable = true },
autotag = {
enable = true,
},
rainbow = { rainbow = {
enable = true, enable = true,
query = "rainbow-parens", query = "rainbow-parens",
strategy = { strategy = {
on_attach = function() on_attach = function()
if vim.fn.line('$') < 1000 then if vim.fn.line("$") < 1000 then
require("ts-rainbow.strategy.local") require("ts-rainbow.strategy.local")
elseif vim.fn.line('$') < 10000 then elseif vim.fn.line("$") < 10000 then
require("ts-rainbow.strategy.global") require("ts-rainbow.strategy.global")
end end
end end,
}, },
}, },
}) })

View File

@ -608,7 +608,7 @@ lazy.setup({
event = "VeryLazy", event = "VeryLazy",
config = function() config = function()
vim.cmd.VMTheme("codedark") vim.cmd.VMTheme("codedark")
end end,
}, },
-- Maintain last cursor position in files -- Maintain last cursor position in files
@ -847,7 +847,7 @@ lazy.setup({
{ {
"lukas-reineke/headlines.nvim", "lukas-reineke/headlines.nvim",
dependencies = "nvim-treesitter/nvim-treesitter", dependencies = "nvim-treesitter/nvim-treesitter",
config = true config = true,
}, },
}, { }, {
checker = { checker = {