فهرست منبع

update some options

Chris 4 سال پیش
والد
کامیت
dceb7aa0ff
2فایلهای تغییر یافته به همراه8 افزوده شده و 5 حذف شده
  1. 5 5
      lua/settings.lua
  2. 3 0
      lua/utils.lua

+ 5 - 5
lua/settings.lua

@@ -14,15 +14,15 @@ vim.o.termguicolors=true
 vim.o.splitright=true                          --Vertical splits will automatically be to the right
 vim.o.t_Co="256"                            --Support 256 colors
 vim.o.conceallevel=0                      --So that I can see `` in markdown files
-vim.o.tabstop=2                           --Insert 2 spaces for a tab
-vim.o.shiftwidth=2                        --Change the number of space characters inserted for indentation
+vim.bo.tabstop=2                           --Insert 2 spaces for a tab
+vim.bo.shiftwidth=2                        --Change the number of space characters inserted for indentation
 vim.o.smarttab=true                            --Makes tabbing smarter will realize you have 2 vs 4
-vim.o.expandtab=true                           --Converts tabs to spaces
-vim.o.smartindent=true                         --Makes indenting smart
+vim.bo.expandtab=true                           --Converts tabs to spaces
+vim.bo.smartindent=true                         --Makes indenting smart
 vim.o.autoindent=true                          --Good auto indent
 vim.o.laststatus=2                        --Always display the status line
 vim.wo.number = true
-vim.o.cursorline=true                          --Enable highlighting of the current line
+vim.wo.cursorline=true                          --Enable highlighting of the current line
 vim.o.background="dark"                     --tell vim what the background color looks like
 vim.o.showtabline=2                       --Always show tabs
 vim.o.showmode=false                          --We don't need to see things like -- INSERT -- anymore

+ 3 - 0
lua/utils.lua

@@ -29,3 +29,6 @@ define_augroups(
         },
     }
 )
+
+-- Add this to lightbulb, java makes this annoying tho
+-- autocmd CursorHold,CursorHoldI * lua require'nvim-lightbulb'.update_lightbulb()