start formatting rules

This commit is contained in:
Rafael 2021-07-04 22:14:01 -03:00
parent b461c878e6
commit 9f511bcb59
No known key found for this signature in database
GPG key ID: F5302DA7C6F2F5FD
65 changed files with 2829 additions and 2812 deletions

View file

@ -5,16 +5,17 @@ Formatters and linters should be
filled in as strings with either
a global executable or a path to
an executable
]] -- THESE ARE EXAMPLE CONFIGS FEEL FREE TO CHANGE TO WHATEVER YOU WANT
]]
-- THESE ARE EXAMPLE CONFIGS FEEL FREE TO CHANGE TO WHATEVER YOU WANT
-- general
O.auto_complete = true
O.colorscheme = 'spacegray'
O.colorscheme = "spacegray"
O.auto_close_tree = 0
O.wrap_lines = false
O.timeoutlen = 100
O.document_highlight = true
O.extras = false
O.leader_key = ' '
O.leader_key = " "
O.ignore_case = true
O.smart_case = true
O.lushmode = false
@ -38,7 +39,7 @@ O.plugin.zen.active = false
-- if you don't want all the parsers change this to a table of the ones you want
O.treesitter.ensure_installed = "all"
O.treesitter.ignore_install = {"haskell"}
O.treesitter.ignore_install = { "haskell" }
O.treesitter.highlight.enabled = true
O.lang.clang.diagnostics.virtual_text = true
@ -49,7 +50,7 @@ O.lang.clang.diagnostics.underline = true
-- add things like O.python.formatter.yapf.exec_path
-- add things like O.python.linter.flake8.exec_path
-- add things like O.python.formatter.isort.exec_path
O.lang.python.formatter = 'yapf'
O.lang.python.formatter = "yapf"
-- O.python.linter = 'flake8'
O.lang.python.isort = true
O.lang.python.autoformat = true
@ -60,15 +61,14 @@ O.lang.python.analysis.type_checking = "off"
O.lang.python.analysis.auto_search_paths = true
O.lang.python.analysis.use_library_code_types = true
-- lua
-- TODO look into stylua
O.lang.lua.formatter = 'lua-format'
O.lang.lua.formatter = "lua-format"
-- O.lua.formatter = 'lua-format'
O.lang.lua.autoformat = false
-- javascript
O.lang.tsserver.formatter = 'prettier'
O.lang.tsserver.formatter = "prettier"
O.lang.tsserver.linter = nil
O.lang.tsserver.autoformat = true
@ -94,7 +94,7 @@ O.lang.php.environment.php_version = "7.4"
O.lang.php.autoformat = false
O.lang.php.diagnostics.signs = true
O.lang.php.diagnostics.underline = true
O.lang.php.filetypes = { "php", "phtml" }
O.lang.php.filetypes = { "php", "phtml" }
-- TODO Autocommands
-- https://neovim.io/doc/user/autocmd.html
@ -102,4 +102,3 @@ O.lang.php.filetypes = { "php", "phtml" }
-- TODO Additional Plugins
-- TODO User Config for plugins

View file

@ -42,7 +42,7 @@
--
-- `:lua require('lush').ify()`
local lush = require('lush')
local lush = require "lush"
local hsl = lush.hsl
local theme = lush(function()
@ -101,7 +101,7 @@ local theme = lush(function()
-- QuickFixLine { }, -- Current |quickfix| item in the quickfix window. Combined with |hl-CursorLine| when the cursor is there.
-- Search { }, -- Last search pattern highlighting (see 'hlsearch'). Also used for similar items that need to stand out.
-- SpecialKey { }, -- Unprintable characters: text displayed differently from what it really is. But not 'listchars' whitespace. |hl-Whitespace|
-- SpellBad { }, -- Word that is not recognized by the spellchecker. |spell| Combined with the highlighting used otherwise.
-- SpellBad { }, -- Word that is not recognized by the spellchecker. |spell| Combined with the highlighting used otherwise.
-- SpellCap { }, -- Word that should start with a capital. |spell| Combined with the highlighting used otherwise.
-- SpellLocal { }, -- Word that is recognized by the spellchecker as one that is used in another region. |spell| Combined with the highlighting used otherwise.
-- SpellRare { }, -- Word that is recognized by the spellchecker as one that is hardly ever used. |spell| Combined with the highlighting used otherwise.
@ -260,7 +260,6 @@ local theme = lush(function()
-- TSTitle { }; -- Text that is part of a title.
-- TSLiteral { }; -- Literal text.
-- TSURI { }; -- Any URI like a link or email.
}
end)