From c0a48c186b8f989395d8f374865751ec1116efc8 Mon Sep 17 00:00:00 2001 From: christianchiarulli Date: Sun, 4 Jul 2021 12:19:29 -0400 Subject: update docs --- utils/installer/lv-config.example.lua | 29 +++++------------------------ 1 file changed, 5 insertions(+), 24 deletions(-) (limited to 'utils/installer/lv-config.example.lua') diff --git a/utils/installer/lv-config.example.lua b/utils/installer/lv-config.example.lua index f71ad561..169cfcc8 100644 --- a/utils/installer/lv-config.example.lua +++ b/utils/installer/lv-config.example.lua @@ -20,7 +20,7 @@ O.smart_case = true O.lushmode = false O.transparent_window = false --- After changing plugin config it is recommended to run :PackerCompile +-- After changing plugin config exit and reopen LunarVim, Run :PackerInstall :PackerCompile O.plugin.hop.active = false O.plugin.dial.active = false O.plugin.dashboard.active = true @@ -89,29 +89,10 @@ O.lang.clang.autoformat = false -- Set to true to enable auto-format in C/C++ fi --- create custom autocommand field (This would be easy with lua) +-- TODO Autocommands +-- https://neovim.io/doc/user/autocmd.html --- Turn off relative_numbers --- O.relative_number = false +-- TODO Additional Plugins --- Turn off cursorline --- O.cursorline = false - --- Neovim turns the default cursor to 'Block' --- when switched back into terminal. --- This below line fixes that. Uncomment if needed. - --- vim.cmd('autocmd VimLeave,VimSuspend * set guicursor=a:ver90') -- Beam --- vim.cmd('autocmd VimLeave,VimSuspend * set guicursor=a:hor20') -- Underline - --- NOTE: Above code doesn't take a value from the terminal's cursor and --- replace it. It hardcodes the cursor shape. --- And I think `ver` means vertical and `hor` means horizontal. --- The numbers didn't make a difference in alacritty. Please change --- the number to something that suits your needs if it looks weird. - --- TODO --- custom autocommands --- user defined plugin config --- custom settings +-- TODO User Config for plugins -- cgit v1.2.3 From 7cd58b1228749f72a81ba84c265cafafe47fa5a6 Mon Sep 17 00:00:00 2001 From: PZ31k0nauT <86895284+PZ31k0nauT@users.noreply.github.com> Date: Sun, 4 Jul 2021 18:50:38 +0200 Subject: Basics for php lsp (#664) * Update php.lua * Update default-config.lua * Update lv-config.example.lua --- utils/installer/lv-config.example.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'utils/installer/lv-config.example.lua') diff --git a/utils/installer/lv-config.example.lua b/utils/installer/lv-config.example.lua index 169cfcc8..6910a2cb 100644 --- a/utils/installer/lv-config.example.lua +++ b/utils/installer/lv-config.example.lua @@ -87,7 +87,14 @@ O.lang.rust.autoformat = true -- clang O.lang.clang.autoformat = false -- Set to true to enable auto-format in C/C++ files. - +-- php +O.lang.php.format.braces = "k&r" -- options: psr12, allman, k&r +O.lang.php.environment.php_version = "7.4" +-- TODO: autoformat seems not to work at the moment +O.lang.php.autoformat = false +O.lang.php.diagnostics.signs = true +O.lang.php.diagnostics.underline = true +O.lang.php.filetypes = { "php", "phtml" } -- TODO Autocommands -- https://neovim.io/doc/user/autocmd.html -- cgit v1.2.3 From 9f511bcb594b7e2461c97cb8182603928c773c2f Mon Sep 17 00:00:00 2001 From: Rafael Date: Sun, 4 Jul 2021 22:14:01 -0300 Subject: start formatting rules --- utils/installer/lv-config.example.lua | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'utils/installer/lv-config.example.lua') diff --git a/utils/installer/lv-config.example.lua b/utils/installer/lv-config.example.lua index 6910a2cb..b043ea3b 100644 --- a/utils/installer/lv-config.example.lua +++ b/utils/installer/lv-config.example.lua @@ -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 - -- cgit v1.2.3 From d876d89c303c54e6a0cc3ef211e303f09cb9cb74 Mon Sep 17 00:00:00 2001 From: maxime50 <51096534+maxime50@users.noreply.github.com> Date: Sun, 4 Jul 2021 22:14:09 -0400 Subject: Remove `extras` Config option since extras plugins are enabled individualy now (#673) * Remove `extras` Global Config * remove white space Co-authored-by: maxime50 <> --- utils/installer/lv-config.example.lua | 1 - 1 file changed, 1 deletion(-) (limited to 'utils/installer/lv-config.example.lua') diff --git a/utils/installer/lv-config.example.lua b/utils/installer/lv-config.example.lua index b043ea3b..c68a9bda 100644 --- a/utils/installer/lv-config.example.lua +++ b/utils/installer/lv-config.example.lua @@ -14,7 +14,6 @@ O.auto_close_tree = 0 O.wrap_lines = false O.timeoutlen = 100 O.document_highlight = true -O.extras = false O.leader_key = " " O.ignore_case = true O.smart_case = true -- cgit v1.2.3 From 6b41286d70b71184b915724a0a03ccd8ec3b4e16 Mon Sep 17 00:00:00 2001 From: christianchiarulli Date: Mon, 5 Jul 2021 14:49:07 -0400 Subject: updated autocommands for user --- utils/installer/lv-config.example.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'utils/installer/lv-config.example.lua') diff --git a/utils/installer/lv-config.example.lua b/utils/installer/lv-config.example.lua index c68a9bda..ba4bedb2 100644 --- a/utils/installer/lv-config.example.lua +++ b/utils/installer/lv-config.example.lua @@ -97,6 +97,8 @@ O.lang.php.filetypes = { "php", "phtml" } -- TODO Autocommands -- https://neovim.io/doc/user/autocmd.html +-- local test = { "BufWinEnter", "*", "echo \"hi again\""} +-- table.insert(O.user_autocommands, test) -- TODO Additional Plugins -- cgit v1.2.3 From be9a5a08893b2c45ffa43e8372b3135747ee0df8 Mon Sep 17 00:00:00 2001 From: christianchiarulli Date: Mon, 5 Jul 2021 15:35:06 -0400 Subject: user defined plugins --- utils/installer/lv-config.example.lua | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'utils/installer/lv-config.example.lua') diff --git a/utils/installer/lv-config.example.lua b/utils/installer/lv-config.example.lua index ba4bedb2..56fe7176 100644 --- a/utils/installer/lv-config.example.lua +++ b/utils/installer/lv-config.example.lua @@ -20,8 +20,9 @@ O.smart_case = true O.lushmode = false O.transparent_window = false +-- TODO User Config for predefined plugins -- After changing plugin config exit and reopen LunarVim, Run :PackerInstall :PackerCompile -O.plugin.hop.active = false +O.bultin_plugin.hop.active = false O.plugin.dial.active = false O.plugin.dashboard.active = true O.plugin.matchup.active = false @@ -95,11 +96,9 @@ O.lang.php.diagnostics.signs = true O.lang.php.diagnostics.underline = true O.lang.php.filetypes = { "php", "phtml" } --- TODO Autocommands --- https://neovim.io/doc/user/autocmd.html --- local test = { "BufWinEnter", "*", "echo \"hi again\""} --- table.insert(O.user_autocommands, test) +-- Autocommands (https://neovim.io/doc/user/autocmd.html) +-- O.user_autocommands = {{ "BufWinEnter", "*", "echo \"hi again\""}} --- TODO Additional Plugins +-- Additional Plugins +-- O.custom_plugins = {{"windwp/nvim-ts-autotag"}} --- TODO User Config for plugins -- cgit v1.2.3 From 71c5cb4f0be89d3a175e99b0c2ebc5e55178e8a9 Mon Sep 17 00:00:00 2001 From: Rafael Date: Mon, 5 Jul 2021 20:01:19 +0000 Subject: (feat) use neoformat as the defalt format option (#715) --- utils/installer/lv-config.example.lua | 33 ++------------------------------- 1 file changed, 2 insertions(+), 31 deletions(-) (limited to 'utils/installer/lv-config.example.lua') diff --git a/utils/installer/lv-config.example.lua b/utils/installer/lv-config.example.lua index 56fe7176..d5c3e40d 100644 --- a/utils/installer/lv-config.example.lua +++ b/utils/installer/lv-config.example.lua @@ -1,13 +1,14 @@ --[[ O is the global options object -Formatters and linters should be +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 -- general +O.format_on_save = true O.auto_complete = true O.colorscheme = "spacegray" O.auto_close_tree = 0 @@ -47,13 +48,9 @@ O.lang.clang.diagnostics.signs = true O.lang.clang.diagnostics.underline = true -- python --- 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.python.linter = 'flake8' O.lang.python.isort = true -O.lang.python.autoformat = true O.lang.python.diagnostics.virtual_text = true O.lang.python.diagnostics.signs = true O.lang.python.diagnostics.underline = true @@ -61,37 +58,11 @@ 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.lua.formatter = 'lua-format' -O.lang.lua.autoformat = false - -- javascript -O.lang.tsserver.formatter = "prettier" O.lang.tsserver.linter = nil -O.lang.tsserver.autoformat = true - --- json -O.lang.json.autoformat = true - --- ruby -O.lang.ruby.autoformat = true - --- go -O.lang.go.autoformat = true - --- rust -O.lang.rust.autoformat = true - --- clang -O.lang.clang.autoformat = false -- Set to true to enable auto-format in C/C++ files. -- php -O.lang.php.format.braces = "k&r" -- options: psr12, allman, k&r O.lang.php.environment.php_version = "7.4" --- TODO: autoformat seems not to work at the moment -O.lang.php.autoformat = false O.lang.php.diagnostics.signs = true O.lang.php.diagnostics.underline = true O.lang.php.filetypes = { "php", "phtml" } -- cgit v1.2.3 From 5c73e9bea50695e6b399351c2443068d23f41047 Mon Sep 17 00:00:00 2001 From: christianchiarulli Date: Mon, 5 Jul 2021 16:05:15 -0400 Subject: fix user config --- utils/installer/lv-config.example.lua | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'utils/installer/lv-config.example.lua') diff --git a/utils/installer/lv-config.example.lua b/utils/installer/lv-config.example.lua index d5c3e40d..71d9dfc8 100644 --- a/utils/installer/lv-config.example.lua +++ b/utils/installer/lv-config.example.lua @@ -5,8 +5,7 @@ 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.format_on_save = true O.auto_complete = true @@ -23,7 +22,7 @@ O.transparent_window = false -- TODO User Config for predefined plugins -- After changing plugin config exit and reopen LunarVim, Run :PackerInstall :PackerCompile -O.bultin_plugin.hop.active = false +O.plugin.hop.active = false O.plugin.dial.active = false O.plugin.dashboard.active = true O.plugin.matchup.active = false @@ -40,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 @@ -65,7 +64,7 @@ O.lang.tsserver.linter = nil O.lang.php.environment.php_version = "7.4" O.lang.php.diagnostics.signs = true O.lang.php.diagnostics.underline = true -O.lang.php.filetypes = { "php", "phtml" } +O.lang.php.filetypes = {"php", "phtml"} -- Autocommands (https://neovim.io/doc/user/autocmd.html) -- O.user_autocommands = {{ "BufWinEnter", "*", "echo \"hi again\""}} -- cgit v1.2.3