feat: initial push with a fully separated and organized user configuration for AstroNvim v3

This commit is contained in:
Micah Halter
2023-01-14 14:16:59 -05:00
commit aac7f99b05
28 changed files with 362 additions and 0 deletions

20
lsp/formatting.lua Normal file
View File

@@ -0,0 +1,20 @@
-- customize lsp formatting options
return {
-- control auto formatting on save
format_on_save = {
enabled = true, -- enable or disable format on save globally
allow_filetypes = { -- enable format on save for specified filetypes only
-- "go",
},
ignore_filetypes = { -- disable format on save for specified filetypes
-- "python",
},
},
disabled = { -- disable formatting capabilities for the listed language servers
-- "sumneko_lua",
},
timeout_ms = 1000, -- default format timeout
-- filter = function(client) -- fully override the default formatting function
-- return true
-- end
}