nvim: format w/ stylua
This commit is contained in:
parent
f6ea0c9d19
commit
c51753bdaa
@ -1,4 +1,3 @@
|
|||||||
local file_loc = vim.fn.expand('%:p:h')
|
local file_loc = vim.fn.expand('%:p:h')
|
||||||
|
|
||||||
|
vim.opt.makeprg = 'docker build ' .. file_loc
|
||||||
vim.opt.makeprg = "docker build " .. file_loc
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
local loaded, impatient = pcall(require, 'impatient')
|
local loaded, impatient = pcall(require, 'impatient')
|
||||||
if loaded then
|
if loaded then
|
||||||
impatient.enable_profile()
|
impatient.enable_profile()
|
||||||
end
|
end
|
||||||
require('main')
|
require('main')
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
local M = {}
|
local M = {}
|
||||||
|
|
||||||
M.setup = function ()
|
M.setup = function()
|
||||||
-- NOTE: Remove trailing whitespace on save
|
-- NOTE: Remove trailing whitespace on save
|
||||||
vim.api.nvim_create_autocmd('BufWritePre', {
|
vim.api.nvim_create_autocmd('BufWritePre', {
|
||||||
command = '%s/\\s\\+$//e',
|
command = '%s/\\s\\+$//e',
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
vim.api.nvim_create_autocmd("BufWrite", {
|
vim.api.nvim_create_autocmd('BufWrite', {
|
||||||
pattern = "*",
|
pattern = '*',
|
||||||
callback = function ()
|
callback = function()
|
||||||
vim.cmd('lua vim.lsp.buf.format({ async = true })')
|
vim.cmd('lua vim.lsp.buf.format({ async = true })')
|
||||||
end
|
end,
|
||||||
})
|
})
|
||||||
|
@ -6,8 +6,8 @@ neotree.setup({
|
|||||||
use_libuv_file_watcher = true,
|
use_libuv_file_watcher = true,
|
||||||
window = {
|
window = {
|
||||||
mappings = {
|
mappings = {
|
||||||
["/"] = ""
|
['/'] = '',
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
@ -514,8 +514,8 @@ return packer.startup({
|
|||||||
require('neogit').setup({
|
require('neogit').setup({
|
||||||
integrations = {
|
integrations = {
|
||||||
disable_commit_confirmation = true,
|
disable_commit_confirmation = true,
|
||||||
diffview = true
|
diffview = true,
|
||||||
}
|
},
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
requires = {
|
requires = {
|
||||||
|
@ -7,7 +7,7 @@ U.map = function(mode, lhs, rhs, opts)
|
|||||||
vim.api.nvim_set_keymap(mode, lhs, rhs, options)
|
vim.api.nvim_set_keymap(mode, lhs, rhs, options)
|
||||||
end
|
end
|
||||||
|
|
||||||
U.buffer_map = function (mode, lhs, rhs, opts)
|
U.buffer_map = function(mode, lhs, rhs, opts)
|
||||||
local options = { noremap = true, silent = true }
|
local options = { noremap = true, silent = true }
|
||||||
if opts then
|
if opts then
|
||||||
options = vim.tbl_extend('force', options, opts)
|
options = vim.tbl_extend('force', options, opts)
|
||||||
|
Loading…
Reference in New Issue
Block a user