more options

This commit is contained in:
Chris 2021-04-03 15:59:03 -04:00
parent 12c2b7dbad
commit 43f067e0b4
4 changed files with 32 additions and 20 deletions

View file

@ -2,7 +2,8 @@ local gl = require('galaxyline')
-- get my theme in galaxyline repo -- get my theme in galaxyline repo
-- local colors = require('galaxyline.theme').default -- local colors = require('galaxyline.theme').default
local colors = { local colors = {
bg = '#2E2E2E', -- bg = '#2E2E2E',
bg = '#292D38',
yellow = '#DCDCAA', yellow = '#DCDCAA',
dark_yellow = '#D7BA7D', dark_yellow = '#D7BA7D',
cyan = '#4EC9B0', cyan = '#4EC9B0',

View file

@ -3,14 +3,21 @@ O = {
auto_complete = true, auto_complete = true,
colorscheme = 'nvcode', colorscheme = 'nvcode',
hidden_files = true, hidden_files = true,
wrap_lines = true, wrap_lines = false,
number = true, number = true,
relative_number = true, relative_number = true,
shell = 'bash', shell = 'bash',
database = {
save_location = '~/.config/nvcode_db', -- @usage pass a table with your desired languages
auto_execute = 1 treesitter = {
ensure_installed = "all",
ignore_install = {"haskell"},
highlight = {enabled = true},
playground = {enabled = true},
rainbow = {enabled = false}
}, },
database = {save_location = '~/.config/nvcode_db', auto_execute = 1},
python = { python = {
linter = '', linter = '',
-- @usage can be 'yapf', 'black' -- @usage can be 'yapf', 'black'
@ -19,9 +26,7 @@ O = {
isort = false, isort = false,
diagnostics = {virtual_text = true, signs = true, underline = true} diagnostics = {virtual_text = true, signs = true, underline = true}
}, },
dart = { dart = {sdk_path = '/usr/lib/dart/bin/snapshots/analysis_server.dart.snapshot'},
sdk_path = '/usr/lib/dart/bin/snapshots/analysis_server.dart.snapshot'
},
lua = { lua = {
-- @usage can be 'lua-format' -- @usage can be 'lua-format'
formatter = '', formatter = '',
@ -50,12 +55,8 @@ O = {
autoformat = false, autoformat = false,
diagnostics = {virtual_text = true, signs = true, underline = true} diagnostics = {virtual_text = true, signs = true, underline = true}
}, },
tailwindls = { tailwindls = {filetypes = {'html', 'css', 'scss', 'javascript', 'javascriptreact', 'typescript', 'typescriptreact'}},
filetypes = {'html', 'css', 'scss', 'javascript', 'javascriptreact', 'typescript', 'typescriptreact'} clang = {diagnostics = {virtual_text = true, signs = true, underline = true}}
},
clang = {
diagnostics = {virtual_text = true, signs = true, underline = true}
}
-- css = {formatter = '', autoformat = false, virtual_text = true}, -- css = {formatter = '', autoformat = false, virtual_text = true},
-- json = {formatter = '', autoformat = false, virtual_text = true} -- json = {formatter = '', autoformat = false, virtual_text = true}
} }

View file

@ -1,20 +1,20 @@
require'nvim-treesitter.configs'.setup { require'nvim-treesitter.configs'.setup {
ensure_installed = "all", -- one of "all", "maintained" (parsers with maintainers), or a list of languages ensure_installed = O.treesitter.ensure_installed, -- one of "all", "maintained" (parsers with maintainers), or a list of languages
-- TODO seems to be broken -- TODO seems to be broken
ignore_install = {"haskell"}, ignore_install = O.treesitter.ignore_install,
highlight = { highlight = {
enable = true -- false will disable the whole extension enable = O.treesitter.highlight.enabled -- false will disable the whole extension
}, },
-- indent = {enable = true, disable = {"python", "html", "javascript"}}, -- indent = {enable = true, disable = {"python", "html", "javascript"}},
indent = {enable = {"javascriptreact"}}, indent = {enable = {"javascriptreact"}},
playground = { playground = {
enable = true, enable = O.treesitter.playground.enabled,
disable = {}, disable = {},
updatetime = 25, -- Debounced time for highlighting nodes in the playground from source code updatetime = 25, -- Debounced time for highlighting nodes in the playground from source code
persist_queries = false -- Whether the query persists across vim sessions persist_queries = false -- Whether the query persists across vim sessions
}, },
autotag = {enable = true}, autotag = {enable = true},
rainbow = {enable = true}, rainbow = {enable = O.treesitter.rainbow.enabled},
context_commentstring = {enable = true, config = {javascriptreact = {style_element = '{/*%s*/}'}}} context_commentstring = {enable = true, config = {javascriptreact = {style_element = '{/*%s*/}'}}}
-- refactor = {highlight_definitions = {enable = true}} -- refactor = {highlight_definitions = {enable = true}}
} }

View file

@ -5,12 +5,22 @@ Formatters and linters should be
filled in as strings with either filled in as strings with either
a global executable or a path to a global executable or a path to
an executable an executable
]] -- general ]]
-- general
O.auto_complete = true O.auto_complete = true
O.colorscheme = 'nvcode' O.colorscheme = 'nvcode'
O.auto_close_tree = 0 O.auto_close_tree = 0
O.wrap_lines = false O.wrap_lines = false
-- @usage pass a table with your desired languages
--O.treesitter.ensure_installed = "all"
--O.treesitter.ignore_install = {"haskell"}
--O.treesitter.highlight.enabled = true
--O.treesitter.playground.enabled = true
--O.treesitter.rainbow.enabled = false
O.clang.diagnostics.virtual_text = false O.clang.diagnostics.virtual_text = false
O.clang.diagnostics.signs = false O.clang.diagnostics.signs = false
O.clang.diagnostics.underline = false O.clang.diagnostics.underline = false