mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-08-05 02:24:58 +02:00
start formatting rules
This commit is contained in:
parent
b461c878e6
commit
9f511bcb59
65 changed files with 2829 additions and 2812 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue