style(nvim): run stylua
This commit is contained in:
parent
62765d25aa
commit
3614d71a2c
17 changed files with 86 additions and 64 deletions
config/neovim/lua/opdavies
|
@ -96,9 +96,9 @@ local servers = {
|
|||
settings = {
|
||||
yaml = {
|
||||
keyOrdering = false,
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
local setup_server = function(server, config)
|
||||
|
@ -138,8 +138,7 @@ vim.diagnostic.config {
|
|||
|
||||
vim.keymap.set("n", "<leader>f", function()
|
||||
vim.lsp.buf.format { async = true }
|
||||
end
|
||||
);
|
||||
end)
|
||||
|
||||
require "opdavies.lsp.null-ls"
|
||||
require "opdavies.lsp.signature"
|
||||
|
|
|
@ -13,29 +13,29 @@ null_ls.setup {
|
|||
|
||||
formatting.black,
|
||||
formatting.markdownlint,
|
||||
formatting.phpcbf.with({
|
||||
formatting.phpcbf.with {
|
||||
command = "./vendor/bin/phpcbf",
|
||||
condition = function(utils)
|
||||
return utils.root_has_file({ 'phpcs.xml.dist' })
|
||||
return utils.root_has_file { "phpcs.xml.dist" }
|
||||
end,
|
||||
}),
|
||||
},
|
||||
formatting.prettier,
|
||||
formatting.rustywind,
|
||||
formatting.stylua,
|
||||
|
||||
diagnostics.eslint.with({
|
||||
diagnostics.eslint.with {
|
||||
condition = function(utils)
|
||||
return utils.root_has_file({ '.eslintrc.js' })
|
||||
return utils.root_has_file { ".eslintrc.js" }
|
||||
end,
|
||||
}),
|
||||
},
|
||||
diagnostics.markdownlint,
|
||||
diagnostics.php,
|
||||
diagnostics.phpcs.with({
|
||||
diagnostics.phpcs.with {
|
||||
command = "./vendor/bin/phpcs",
|
||||
condition = function(utils)
|
||||
return utils.root_has_file({ 'phpcs.xml.dist' })
|
||||
return utils.root_has_file { "phpcs.xml.dist" }
|
||||
end,
|
||||
}),
|
||||
},
|
||||
diagnostics.phpstan,
|
||||
diagnostics.shellcheck,
|
||||
},
|
||||
|
|
|
@ -157,7 +157,7 @@ local function set_vim_o()
|
|||
vim.o[key] = value
|
||||
end
|
||||
|
||||
vim.opt.backupdir:remove('.') -- keep backups out of the current directory
|
||||
vim.opt.backupdir:remove "." -- keep backups out of the current directory
|
||||
vim.opt.clipboard:append "unnamedplus"
|
||||
vim.opt.completeopt = { "menu", "menuone", "noselect" }
|
||||
vim.opt.laststatus = 3
|
||||
|
|
|
@ -43,7 +43,7 @@ local M = {
|
|||
TextAnnotation "<>"
|
||||
]],
|
||||
{ i(0) }
|
||||
)
|
||||
),
|
||||
}
|
||||
|
||||
return M
|
||||
|
|
|
@ -3,8 +3,8 @@ if not status_ok then
|
|||
return
|
||||
end
|
||||
|
||||
local previewers = require "telescope.previewers"
|
||||
local Job = require "plenary.job"
|
||||
local previewers = require "telescope.previewers"
|
||||
|
||||
-- Create a new maker that won't preview binary files
|
||||
-- https://github.com/nvim-telescope/telescope.nvim/wiki/Configuration-Recipes#dont-preview-binaries
|
||||
|
@ -33,9 +33,9 @@ local lga_actions = require "telescope-live-grep-args.actions"
|
|||
telescope.setup {
|
||||
defaults = {
|
||||
buffer_previewer_maker = new_maker,
|
||||
file_ignore_patterns = { '.direnv/', '.git/' },
|
||||
file_ignore_patterns = { ".direnv/", ".git/" },
|
||||
layout_config = {
|
||||
prompt_position = 'top',
|
||||
prompt_position = "top",
|
||||
},
|
||||
|
||||
preview = {
|
||||
|
@ -54,7 +54,7 @@ telescope.setup {
|
|||
no_ignore = true,
|
||||
path_display = { truncate = 1 },
|
||||
prompt_prefix = "$ ",
|
||||
sorting_strategy = 'ascending',
|
||||
sorting_strategy = "ascending",
|
||||
},
|
||||
|
||||
pickers = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue