various improvements

This commit is contained in:
zackartz 2024-05-27 03:11:41 -04:00
parent 5e1a70ca49
commit 8de5c50daa
No known key found for this signature in database
GPG key ID: 5B53E53A9A514DBA
14 changed files with 185 additions and 167 deletions

View file

@ -1,48 +0,0 @@
local filetypes = require("core.filetypes")
local configurer = require("utils.configurer")
local opts = {}
if vim.g.vscode then
-- VSCode Neovim
opts.spec = "vscode.plugins"
opts.options = require("vscode.options")
opts.keymaps = require("vscode.keymaps")
else
-- Normal Neovim
opts.spec = "plugins"
opts.options = require("core.options")
opts.keymaps = require("core.keymaps")
opts.autocmd = require("core.autocmd")
opts.signs = require("core.signs")
end
configurer.setup(opts)
local handlers = require("lsp.handlers") -- Adjust the path as necessary
local function setup_all_servers()
for server, setup_fn in pairs(handlers) do
if type(setup_fn) == "function" then
-- Call the setup function for each server
setup_fn()
end
end
end
setup_all_servers()
vim.keymap.set("n", "<left>", '<cmd>echo "Use h to move!!"<CR>')
vim.keymap.set("n", "<right>", '<cmd>echo "Use l to move!!"<CR>')
vim.keymap.set("n", "<up>", '<cmd>echo "Use k to move!!"<CR>')
vim.keymap.set("n", "<down>", '<cmd>echo "Use j to move!!"<CR>')
vim.keymap.set("i", "<left>", '<cmd>echo "Use h to move!!"<CR>')
vim.keymap.set("i", "<right>", '<cmd>echo "Use l to move!!"<CR>')
vim.keymap.set("i", "<up>", '<cmd>echo "Use k to move!!"<CR>')
vim.keymap.set("i", "<down>", '<cmd>echo "Use j to move!!"<CR>')
-- Neovide config
vim.o.guifont = "Iosevka Nerd Font Mono:h14"
vim.g.neovide_transparency = 0.75
-- vim.lsp.log.set_level(vim.lsp.log_levels.INFO)
vim.filetype.add(filetypes)

View file

@ -27,9 +27,9 @@ return {
}:
with lib;
with lib.custom; let
cfg = config.{<>};
cfg = config.<>;
in {
options.{<>} = with types; {
options.<> = with types; {
enable = mkBoolOpt false "<>";
};

View file

@ -11,9 +11,17 @@ return {
},
opts = {
defaults = {
border = true,
prompt_prefix = " ",
selection_caret = format("Right", ""),
prompt_prefix = ">",
selection_caret = ">",
path_display = { "truncate" },
sorting_strategy = "ascending",
layout_config = {
horizontal = { prompt_position = "top", preview_width = 0.55 },
vertical = { mirror = false },
width = 0.87,
height = 0.80,
preview_cutoff = 120,
},
},
extensions = {
fzf = {},

View file

@ -35,6 +35,18 @@ return {
CmpItemKindOperator = { fg = C.base, bg = C.blue },
CmpItemKindTypeParameter = { fg = C.base, bg = C.blue },
CmpItemKindCopilot = { fg = C.base, bg = C.teal },
TelescopeBorder = { fg = C.base, bg = C.base },
TelescopeNormal = { bg = C.base },
TelescopePreviewBorder = { fg = C.base, bg = C.base },
TelescopePreviewNormal = { bg = C.base },
TelescopePreviewTitle = { fg = C.base, bg = C.green },
TelescopePromptBorder = { fg = C.surface0, bg = C.surface0 },
TelescopePromptNormal = { fg = C.blue, bg = C.surface0 },
TelescopePromptPrefix = { fg = C.red, bg = C.surface0 },
TelescopePromptTitle = { fg = C.base, bg = C.red },
TelescopeResultsBorder = { fg = C.base, bg = C.base },
TelescopeResultsNormal = { bg = C.base },
TelescopeResultsTitle = { fg = C.base, bg = C.base },
}
end,
flavor = "mocha",

View file

@ -110,7 +110,7 @@ M.progress = {
end,
color = function()
local colors = require("catppuccin.palettes").get_palette()
return { fg = colors.lavender, bg = nil }
return { fg = colors.lavender, bg = colors.base }
end,
}
@ -121,7 +121,7 @@ M.location = {
end,
color = function()
local colors = require("catppuccin.palettes").get_palette()
return { fg = colors.lavender, bg = nil }
return { fg = colors.lavender, bg = colors.base }
end,
}