summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lua/lsp/init.lua8
-rw-r--r--lua/lsp/python-ls.lua16
-rw-r--r--lua/nv-galaxyline/init.lua9
-rw-r--r--lua/nv-globals.lua19
-rw-r--r--vimscript/nv-whichkey/init.vim1
5 files changed, 32 insertions, 21 deletions
diff --git a/lua/lsp/init.lua b/lua/lsp/init.lua
index 9a1bb511..9ce6d0d3 100644
--- a/lua/lsp/init.lua
+++ b/lua/lsp/init.lua
@@ -1,12 +1,12 @@
-- TODO figure out why this don't work
vim.fn.sign_define("LspDiagnosticsSignError",
- {texthl = "LspDiagnosticsSignError", text = "", numhl = "LspDiagnosticsSignError"})
+ {texthl = "LspDiagnosticsSignError", text = "", numhl = "LspDiagnosticsSignError"})
vim.fn.sign_define("LspDiagnosticsSignWarning",
{texthl = "LspDiagnosticsSignWarning", text = "", numhl = "LspDiagnosticsSignWarning"})
-vim.fn.sign_define("LspDiagnosticsSignInformation",
- {texthl = "LspDiagnosticsSignInformation", text = "", numhl = "LspDiagnosticsSignInformation"})
vim.fn.sign_define("LspDiagnosticsSignHint",
- {texthl = "LspDiagnosticsSignHint", text = "", numhl = "LspDiagnosticsSignHint"})
+ {texthl = "LspDiagnosticsSignHint", text = "", numhl = "LspDiagnosticsSignHint"})
+vim.fn.sign_define("LspDiagnosticsSignInformation",
+ {texthl = "LspDiagnosticsSignInformation", text = "", numhl = "LspDiagnosticsSignInformation"})
vim.cmd('nnoremap <silent> gd <cmd>lua vim.lsp.buf.definition()<CR>')
vim.cmd('nnoremap <silent> gD <cmd>lua vim.lsp.buf.declaration()<CR>')
diff --git a/lua/lsp/python-ls.lua b/lua/lsp/python-ls.lua
index 4bdbd9d9..8cc8b222 100644
--- a/lua/lsp/python-ls.lua
+++ b/lua/lsp/python-ls.lua
@@ -2,11 +2,13 @@
require'lspconfig'.pyright.setup {
cmd = {DATA_PATH .. "/lspinstall/python/node_modules/.bin/pyright-langserver", "--stdio"},
on_attach = require'lsp'.common_on_attach,
- handlers = {
- ["textDocument/publishDiagnostics"] = vim.lsp.with(
- vim.lsp.diagnostic.on_publish_diagnostics, {
- virtual_text = O.python.virtual_text
- }
- ),
- }
+ handlers = {
+ ["textDocument/publishDiagnostics"] = vim.lsp.with(vim.lsp.diagnostic.on_publish_diagnostics, {
+ virtual_text = O.python.diagnostics.virtual_text,
+ signs = O.python.diagnostics.signs,
+ underline = O.python.diagnostics.underline,
+ update_in_insert = true
+
+ })
+ }
}
diff --git a/lua/nv-galaxyline/init.lua b/lua/nv-galaxyline/init.lua
index b11cb7f4..0f562b5b 100644
--- a/lua/nv-galaxyline/init.lua
+++ b/lua/nv-galaxyline/init.lua
@@ -17,7 +17,8 @@ local colors = {
vivid_blue = '#4FC1FF',
light_blue = '#9CDCFE',
red = '#D16969',
- error_red = '#F44747'
+ error_red = '#F44747',
+ info_yellow = '#FFCC66'
}
local condition = require('galaxyline.condition')
local gls = gl.section
@@ -110,9 +111,11 @@ gls.right[1] = {
}
gls.right[2] = {DiagnosticWarn = {provider = 'DiagnosticWarn', icon = '  ', highlight = {colors.orange, colors.bg}}}
-gls.right[3] = {DiagnosticHint = {provider = 'DiagnosticHint', icon = '  ', highlight = {colors.blue, colors.bg}}}
+gls.right[3] = {
+ DiagnosticHint = {provider = 'DiagnosticHint', icon = '  ', highlight = {colors.vivid_blue, colors.bg}}
+}
-gls.right[4] = {DiagnosticInfo = {provider = 'DiagnosticInfo', icon = '  ', highlight = {colors.blue, colors.bg}}}
+gls.right[4] = {DiagnosticInfo = {provider = 'DiagnosticInfo', icon = '  ', highlight = {colors.info_yellow, colors.bg}}}
gls.right[5] = {
ShowLspClient = {
diff --git a/lua/nv-globals.lua b/lua/nv-globals.lua
index 48086373..8e48892d 100644
--- a/lua/nv-globals.lua
+++ b/lua/nv-globals.lua
@@ -2,13 +2,18 @@ O = {
auto_complete = true,
colorscheme = 'nvcode',
- python = {linter = '', formatter = '', autoformat = false, virtual_text=true},
- javascript = {linter = '', formatter = '', autoformat = false, virtual_text=true},
- javascriptreact = {linter = '', formatter = '', autoformat = false, virtual_text=true},
- lua = {formatter = '', autoformat = false, virtual_text=true},
- bash = {linter = '', formatter = '', autoformat = false, virtual_text=true},
- css = {formatter = '', autoformat = false, virtual_text=true},
- json = {formatter = '', autoformat = false, virtual_text=true},
+ python = {
+ linter = '',
+ formatter = '',
+ autoformat = false,
+ diagnostics = {virtual_text = false, signs = false, underline = false}
+ },
+ javascript = {linter = '', formatter = '', autoformat = false, virtual_text = true},
+ javascriptreact = {linter = '', formatter = '', autoformat = false, virtual_text = true},
+ lua = {formatter = '', autoformat = false, virtual_text = true},
+ bash = {linter = '', formatter = '', autoformat = false, virtual_text = true},
+ css = {formatter = '', autoformat = false, virtual_text = true},
+ json = {formatter = '', autoformat = false, virtual_text = true}
}
diff --git a/vimscript/nv-whichkey/init.vim b/vimscript/nv-whichkey/init.vim
index 2ec3f9e5..1557010b 100644
--- a/vimscript/nv-whichkey/init.vim
+++ b/vimscript/nv-whichkey/init.vim
@@ -65,6 +65,7 @@ let g:which_key_map.a = {
\ 'name' : '+actions' ,
\ 'c' : [':ColorizerToggle' , 'colorizer'],
\ 'h' : [':let @/ = ""' , 'remove search highlight'],
+ \ 'i' : [':IndentBlanklineToggle' , 'toggle indent lines'],
\ 'l' : [':Bracey' , 'start live server'],
\ 'L' : [':BraceyStop' , 'stop live server'],
\ 'n' : [':set nonumber!' , 'line-numbers'],