feat(dap.lua): add virtual text setup for better debugging experience

feat(dap.lua): add support for process.env.PORT environment variable to be able to run app on a configurable port
feat(lsp-config.lua): add support for detecting python environment using DPE module
feat(lualine.lua): add support for noice statusline component
feat(mason.lua): update installed language servers list
feat(noice.lua): add configuration for noice plugin
feat(none-ls.lua): remove black and mypy formatters from null-ls setup

fix(nvim-cmp.lua): change completeopt value to "menu,menuone,preview,noinsert" and add autocomplete trigger event on text change
feat(nvim-cmp.lua): add border and winhighlight settings for documentation window to improve visual appearance
feat(nvim-cmp.lua): add 'nvim_lsp_signature_help' as a source for autocompletion
refactor(colorscheme.lua): refactor SetupWindowPreferences function to dynamically set blend values for highlight groups
feat(init.lua): add setting for 'completeopt' to "menuone"
feat(plugins/noice.lua): add configuration for 'noice.nvim' plugin with dependencies and event trigger
feat(plugins/nvim-treesitter.lua): update configuration to run TSUpdate command silently

feat(utils): add Lua utility functions to detect and manage Lua versions and paths
feat(utils): add Python utility functions to check and resolve Python environments
style(theme): update current theme to 'catppuccin' in Lua script
This commit is contained in:
David Ibia
2024-09-19 14:35:11 +01:00
parent 5f86592ed4
commit fa59b7988c
24 changed files with 343 additions and 193 deletions

View File

@@ -1,11 +1,24 @@
local function SetupWindowPreferences()
vim.api.nvim_set_hl(0, "Normal", { bg = "none" })
vim.api.nvim_set_hl(0, "NormalFloat", { bg = "none" })
vim.api.nvim_set_hl(0, "NormalNC", { bg = "none" })
-- Utility function to get the blend value or set a default
local function get_blend_value(group_name, default_blend)
-- Retrieve highlight settings for the group using the new API
local current_highlight = vim.api.nvim_get_hl(0, { name = group_name })
return current_highlight.blend or default_blend
end
-- Set the Normal group with dynamic blend
local normal_blend = get_blend_value("Normal", 50)
vim.api.nvim_set_hl(0, "Normal", { bg = "none", blend = normal_blend })
-- Set the NormalFloat group with dynamic blend
local normal_float_blend = get_blend_value("NormalFloat", 50)
vim.api.nvim_set_hl(1, "NormalFloat", { bg = "none", blend = normal_float_blend })
-- Set the NormalNC group with dynamic blend
local normal_nc_blend = get_blend_value("NormalNC", 50)
vim.api.nvim_set_hl(0, "NormalNC", { bg = "none", blend = normal_nc_blend })
end
local colorschemes = {
["tokyonight-day"] = "Tokyo Night Day",
["tokyonight-night"] = "Tokyo Night Night",
@@ -35,7 +48,7 @@ local function SyncWezTerm()
assert(file)
file:write(colorscheme)
file:close()
vim.notify("Setting WezTerm color scheme to " .. colorscheme, vim.log.levels.INFO)
-- vim.notify("Setting WezTerm color scheme to " .. colorscheme, vim.log.levels.INFO)
end,
})
end

View File

@@ -1,3 +1,9 @@
local lua_utils = require("absolute.utils.detect-lua")
package.path = package.path .. lua_utils.GetLatestLuaVersion()
-- disable nvim intro
vim.opt.shortmess:append "sI"
@@ -37,6 +43,7 @@ vim.opt.updatetime = 50
vim.opt.colorcolumn = ""
vim.o.completeopt = "menuone"
vim.g.mapleader = " "
vim.g.maplocalleader = ";"