stuff
This commit is contained in:
@ -37,9 +37,11 @@
|
|||||||
po = push origin
|
po = push origin
|
||||||
[core]
|
[core]
|
||||||
autocrlf = false
|
autocrlf = false
|
||||||
|
[icdiff]
|
||||||
|
options = --highlight --line-numbers
|
||||||
[merge]
|
[merge]
|
||||||
tool = "nvim"
|
tool = "nvim"
|
||||||
|
|
||||||
[mergetool "nvim"]
|
[mergetool "nvim"]
|
||||||
cmd = nvim -d -c \"wincmd l\" \"$LOCAL\" \"$MERGED\" \"$REMOTE\"
|
cmd = nvim -d -c \"wincmd l\" \"$LOCAL\" \"$MERGED\" \"$REMOTE\"
|
||||||
|
[diff]
|
||||||
|
tool = icdiff
|
||||||
|
@ -3,6 +3,12 @@ return {
|
|||||||
config = function()
|
config = function()
|
||||||
-- Utilities for creating configurations
|
-- Utilities for creating configurations
|
||||||
local util = require("formatter.util")
|
local util = require("formatter.util")
|
||||||
|
vim.cmd([[
|
||||||
|
augroup FormatAutogroup
|
||||||
|
autocmd!
|
||||||
|
autocmd BufWritePost * FormatWrite
|
||||||
|
augroup END
|
||||||
|
]])
|
||||||
|
|
||||||
-- Provides the Format, FormatWrite, FormatLock, and FormatWriteLock commands
|
-- Provides the Format, FormatWrite, FormatLock, and FormatWriteLock commands
|
||||||
require("formatter").setup({
|
require("formatter").setup({
|
||||||
@ -44,27 +50,34 @@ return {
|
|||||||
html = {
|
html = {
|
||||||
require("formatter.defaults").prettier,
|
require("formatter.defaults").prettier,
|
||||||
},
|
},
|
||||||
-- xml = {
|
xml = {
|
||||||
-- function()
|
function()
|
||||||
-- return {
|
return {
|
||||||
-- exe = "tidy",
|
exe = "tidy",
|
||||||
-- args = {
|
args = {
|
||||||
-- "-quiet",
|
"-xml",
|
||||||
-- "-xml",
|
"-quiet",
|
||||||
-- "--wrap yes",
|
"-wrap",
|
||||||
-- "--indent yes",
|
"--tidy-mark",
|
||||||
-- "--indent-spaces 2",
|
"no",
|
||||||
-- "--indent-attributes yes",
|
"--indent",
|
||||||
-- "--sort-attributes alpha",
|
"yes",
|
||||||
-- "--wrap-attributes yes",
|
"--indent-spaces",
|
||||||
-- "--vertical-space yes",
|
"2",
|
||||||
-- "--tidy-mark no",
|
"--indent-attributes",
|
||||||
-- },
|
"yes",
|
||||||
-- stdin = true,
|
"--sort-attributes",
|
||||||
-- try_node_modules = true,
|
"alpha",
|
||||||
-- }
|
"--wrap-attributes",
|
||||||
-- end,
|
"yes",
|
||||||
-- },
|
"--vertical-space",
|
||||||
|
"yes",
|
||||||
|
"-",
|
||||||
|
},
|
||||||
|
stdin = true,
|
||||||
|
}
|
||||||
|
end,
|
||||||
|
},
|
||||||
-- java = {
|
-- java = {
|
||||||
-- function()
|
-- function()
|
||||||
-- return {
|
-- return {
|
||||||
|
@ -1,67 +0,0 @@
|
|||||||
return {
|
|
||||||
"mhartington/formatter.nvim",
|
|
||||||
config = function()
|
|
||||||
-- Utilities for creating configurations
|
|
||||||
local util = require("formatter.util")
|
|
||||||
vim.cmd([[
|
|
||||||
augroup FormatAutogroup
|
|
||||||
autocmd!
|
|
||||||
autocmd BufWritePost * FormatWrite
|
|
||||||
augroup END
|
|
||||||
]])
|
|
||||||
|
|
||||||
-- Provides the Format, FormatWrite, FormatLock, and FormatWriteLock commands
|
|
||||||
require("formatter").setup({
|
|
||||||
-- Enable or disable logging
|
|
||||||
logging = true,
|
|
||||||
-- Set the log level
|
|
||||||
log_level = vim.log.levels.WARN,
|
|
||||||
-- All formatter configurations are opt-in
|
|
||||||
filetype = {
|
|
||||||
-- Formatter configurations for filetype "lua" go here
|
|
||||||
-- and will be executed in order
|
|
||||||
lua = {
|
|
||||||
-- "formatter.filetypes.lua" defines default configurations for the
|
|
||||||
-- "lua" filetype
|
|
||||||
require("formatter.filetypes.lua").stylua,
|
|
||||||
},
|
|
||||||
xml = {
|
|
||||||
function()
|
|
||||||
return {
|
|
||||||
exe = "tidy",
|
|
||||||
args = {
|
|
||||||
"-xml",
|
|
||||||
"-quiet",
|
|
||||||
"-wrap",
|
|
||||||
"--tidy-mark",
|
|
||||||
"no",
|
|
||||||
"--indent",
|
|
||||||
"yes",
|
|
||||||
"--indent-spaces",
|
|
||||||
"2",
|
|
||||||
"--indent-attributes",
|
|
||||||
"yes",
|
|
||||||
"--sort-attributes",
|
|
||||||
"alpha",
|
|
||||||
"--wrap-attributes",
|
|
||||||
"yes",
|
|
||||||
"--vertical-space",
|
|
||||||
"yes",
|
|
||||||
"-",
|
|
||||||
},
|
|
||||||
stdin = true,
|
|
||||||
}
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
|
|
||||||
-- Use the special "*" filetype for defining formatter configurations on
|
|
||||||
-- any filetype
|
|
||||||
["*"] = {
|
|
||||||
-- "formatter.filetypes.any" defines default configurations for any
|
|
||||||
-- filetype
|
|
||||||
require("formatter.filetypes.any").remove_trailing_whitespace,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
})
|
|
||||||
end,
|
|
||||||
}
|
|
@ -69,6 +69,7 @@ return {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
workspace = {
|
workspace = {
|
||||||
|
checkThirdParty = false, --# stop a anoying dialog on startup
|
||||||
-- Make the server aware of Neovim runtime files
|
-- Make the server aware of Neovim runtime files
|
||||||
library = vim.api.nvim_get_runtime_file("", true),
|
library = vim.api.nvim_get_runtime_file("", true),
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user