ソースを参照

Allow setting ignorecase and smartcase from lvi-config.lua (#545)

Lee Marlow 4 年 前
コミット
096cc56051
3 ファイル変更6 行追加1 行削除
  1. 2 0
      lua/default-config.lua
  2. 2 1
      lua/settings.lua
  3. 2 0
      lv-config.lua

+ 2 - 0
lua/default-config.lua

@@ -15,6 +15,8 @@ O = {
     timeoutlen = 100,
     nvim_tree_disable_netrw = 0,
     extras = false,
+    ignore_case = true,
+    smart_case = true,
 
     -- @usage pass a table with your desired languages
     treesitter = {

+ 2 - 1
lua/settings.lua

@@ -46,4 +46,5 @@ vim.cmd('filetype plugin on') -- filetype detection
 vim.o.guifont = "FiraCode Nerd Font:h17"
 
 -- vim.o.guifont = "JetBrains\\ Mono\\ Regular\\ Nerd\\ Font\\ Complete"
-
+vim.o.ignorecase = O.ignore_case
+vim.o.smartcase = O.smart_case

+ 2 - 0
lv-config.lua

@@ -15,6 +15,8 @@ O.timeoutlen = 100
 O.document_highlight = true
 O.extras = false
 O.leader_key = ' '
+O.ignore_case = true
+O.smart_case = true
 
 -- After changing plugin config it is recommended to run :PackerCompile
 O.plugin.hop.active = false