aboutsummaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/config/lsp.lua10
-rw-r--r--lua/plugins.lua2
2 files changed, 6 insertions, 6 deletions
diff --git a/lua/config/lsp.lua b/lua/config/lsp.lua
index 098303f..45b722b 100644
--- a/lua/config/lsp.lua
+++ b/lua/config/lsp.lua
@@ -71,7 +71,7 @@ local custom_attach = function(client, bufnr)
if vim.g.logging_level == 'debug' then
local msg = string.format("Language server %s started!", client.name)
- vim.notify(msg, 'info', {title = 'Nvim-config'})
+ vim.notify(msg, vim.log.levels.DEBUG, {title = 'Nvim-config'})
end
end
@@ -102,7 +102,7 @@ if utils.executable('pylsp') then
capabilities = capabilities,
})
else
- vim.notify("pylsp not found!", 'warn', {title = 'Nvim-config'})
+ vim.notify("pylsp not found!", vim.log.levels.WARN, {title = 'Nvim-config'})
end
-- if utils.executable('pyright') then
@@ -111,7 +111,7 @@ end
-- capabilities = capabilities
-- }
-- else
--- vim.notify("pyright not found!", 'warn', {title = 'Nvim-config'})
+-- vim.notify("pyright not found!", vim.log.levels.WARN, {title = 'Nvim-config'})
-- end
if utils.executable('clangd') then
@@ -124,7 +124,7 @@ if utils.executable('clangd') then
},
})
else
- vim.notify("clangd not found!", 'warn', {title = 'Nvim-config'})
+ vim.notify("clangd not found!", vim.log.levels.WARN, {title = 'Nvim-config'})
end
-- set up vim-language-server
@@ -137,7 +137,7 @@ if utils.executable('vim-language-server') then
capabilities = capabilities,
})
else
- vim.notify("vim-language-server not found!", 'warn', {title = 'Nvim-config'})
+ vim.notify("vim-language-server not found!", vim.log.levels.WARN, {title = 'Nvim-config'})
end
-- set up bash-language-server
diff --git a/lua/plugins.lua b/lua/plugins.lua
index c4cba2c..63e8d3c 100644
--- a/lua/plugins.lua
+++ b/lua/plugins.lua
@@ -381,6 +381,6 @@ if fresh_install then
else
local status, _ = pcall(require, 'packer_compiled')
if not status then
- vim.notify("Error requiring packer_compiled.lua: run PackerSync to fix!")
+ vim.notify("Error requiring packer_compiled.lua: run PackerSync to fix!", vim.log.levels.ERROR, { title = 'nvim-config' })
end
end