Procházet zdrojové kódy

add settings to dashboard

Chris před 4 roky
rodič
revize
d11dc810d9
2 změnil soubory, kde provedl 3 přidání a 2 odebrání
  1. 2 1
      lua/nv-dashboard/init.lua
  2. 1 1
      nv-settings.lua

+ 2 - 1
lua/nv-dashboard/init.lua

@@ -14,7 +14,8 @@ vim.g.dashboard_custom_section = {
     b = {description = {' Recently Used Files'}, command = 'Telescope oldfiles'},
     c = {description = {' Load Last Session  '}, command = 'SessionLoad'},
     d = {description = {' Find Word          '}, command = 'Telescope live_grep'},
-    e = {description = {' Marks              '}, command = 'Telescope marks'}
+    e = {description = {' Settings           '}, command = ':e ~/.config/nvim/nv-settings.lua'}
+    -- e = {description = {' Marks              '}, command = 'Telescope marks'}
 }
 
 -- file_browser = {description = {' File Browser'}, command = 'Telescope find_files'},

+ 1 - 1
nv-settings.lua

@@ -15,7 +15,7 @@ O.auto_close_tree = 0
 -- add things like O.python.linter.flake8.exec_path
 -- add things like O.python.formatter.isort.exec_path
 O.python.formatter = 'yapf'
-O.python.linter = 'flake8'
+-- O.python.linter = 'flake8'
 O.python.isort = true
 O.python.autoformat = true
 O.python.diagnostics.virtual_text = true