mirror of
https://github.com/boxpositron/absolute-vim.git
synced 2026-02-28 03:30:36 +00:00
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
75 lines
1.6 KiB
Lua
75 lines
1.6 KiB
Lua
local lua_utils = require("absolute.utils.detect-lua")
|
|
|
|
package.path = package.path .. lua_utils.GetLatestLuaVersion()
|
|
|
|
|
|
|
|
-- disable nvim intro
|
|
vim.opt.shortmess:append "sI"
|
|
|
|
|
|
vim.opt.nu = true
|
|
vim.opt.relativenumber = true
|
|
|
|
vim.opt.statuscolumn = "%s %l %r "
|
|
vim.opt.cursorline = false
|
|
|
|
vim.opt.tabstop = 4
|
|
vim.opt.softtabstop = 4
|
|
vim.opt.shiftwidth = 4
|
|
vim.opt.expandtab = true
|
|
|
|
vim.opt.smartindent = true
|
|
|
|
vim.opt.wrap = true
|
|
|
|
vim.opt.swapfile = false
|
|
vim.opt.backup = false
|
|
vim.opt.hlsearch = false
|
|
vim.opt.incsearch = true
|
|
|
|
vim.opt.ignorecase = true
|
|
vim.opt.smartcase = true
|
|
|
|
vim.opt.backspace = "indent,eol,start"
|
|
|
|
vim.opt.termguicolors = true
|
|
|
|
vim.opt.scrolloff = 8
|
|
vim.opt.signcolumn = "yes"
|
|
vim.opt.isfname:append("@-@")
|
|
|
|
vim.opt.updatetime = 50
|
|
|
|
vim.opt.colorcolumn = ""
|
|
|
|
vim.o.completeopt = "menuone"
|
|
vim.g.mapleader = " "
|
|
vim.g.maplocalleader = ";"
|
|
|
|
vim.opt.guicursor = "n-v-c:block,i-ci-ve:block,r-cr:hor20,o:hor50,"
|
|
.. "a:blinkwait700-blinkoff400-blinkon250-Cursor/lCursor,"
|
|
.. "sm:block-blinkwait175-blinkoff150-blinkon175"
|
|
|
|
-- Function to change cursor color
|
|
local function set_cursor_color(color)
|
|
vim.api.nvim_set_hl(0, "Cursor", { fg = color, bg = color })
|
|
end
|
|
|
|
-- Autocommands to change cursor color based on mode
|
|
vim.api.nvim_create_autocmd("InsertEnter", {
|
|
pattern = "*",
|
|
callback = function()
|
|
set_cursor_color("#ffffff") -- Red in insert mode
|
|
end,
|
|
})
|
|
|
|
vim.api.nvim_create_autocmd("InsertLeave", {
|
|
pattern = "*",
|
|
callback = function()
|
|
set_cursor_color("#7DF9FF") -- Blue in visual mode
|
|
end,
|
|
})
|
|
|
|
-- Add similar autocommands for other modes as needed
|