Compare commits

...

10 Commits

66 changed files with 309 additions and 4213 deletions

View File

@@ -12,3 +12,4 @@ if [ -z "$WAYLAND_DISPLAY" ] && [ -n "$XDG_VTNR" ] && [ "$XDG_VTNR" -eq 1 ] ; th
exec start-hyprland exec start-hyprland
fi fi
. "$HOME/.cargo/env"

View File

@@ -24,6 +24,7 @@ fi
# ----- ALIASES ------ # ----- ALIASES ------
alias vim="nvim"
alias vi="vim" alias vi="vim"
alias ll="ls -lah" alias ll="ls -lah"

17
.config/dunst/dunstrc Normal file
View File

@@ -0,0 +1,17 @@
[global]
frame_color = "#89b4fa"
separator_color= frame
highlight = "#89b4fa"
[urgency_low]
background = "#1e1e2e"
foreground = "#cdd6f4"
[urgency_normal]
background = "#1e1e2e"
foreground = "#cdd6f4"
[urgency_critical]
background = "#1e1e2e"
foreground = "#cdd6f4"
frame_color = "#fab387"

5
.config/eim/eim.json Normal file
View File

@@ -0,0 +1,5 @@
{
"first_run": false,
"usage_statistics": false,
"skip_welcome": true
}

View File

@@ -1,10 +1,9 @@
################ ################
### MONITORS ### ### MONITORS ###
################ ################
monitor=,preferred,auto,1.2 monitor=,preferred,auto,1.00
monitor=DP-2,2560x1440@165.00Hz,auto,1.07
################### ###################
@@ -28,7 +27,7 @@ exec-once = swayosd-server
exec-once = wl-paste -t text --watch clipman store --no-persist exec-once = wl-paste -t text --watch clipman store --no-persist
exec-once = elephant exec-once = elephant
exec-once = walker --gapplication-service exec-once = walker --gapplication-service
exec-once = swaync exec-once = dunst
exec-once = waybar & hyprpaper exec-once = waybar & hyprpaper
@@ -131,7 +130,7 @@ input {
kb_layout = us,ru kb_layout = us,ru
kb_variant = kb_variant =
kb_model = kb_model =
kb_options = kb_options = grp:alt_shift_toggle
kb_rules = kb_rules =
follow_mouse = 1 follow_mouse = 1

View File

View File

@@ -1,54 +0,0 @@
Graphics Backend used: svp
Passed Tests: 66
Quirky Tests: 36
Failed Tests: 1
Skipped Tests: 6
---Name of the tests that failed---
testDrawInvertN50WithRectangle
---Name of the tests that were Quirky---
testDrawRectWithLine
testDrawRectWithPolygon
testDrawRectWithPolyLine
testDrawRectWithPolyPolygon
testDrawRectWithPolyPolygonB2D
testDrawDiamondWithLine
testComplexDrawTransformedBitmap24bpp
testDashedLine
testLinearGradientBorder
testLinearGradientSteps
testRadialGradient
testRadialGradientOfs
testHalfEllipseWithPolyLine
testHalfEllipseAAWithPolyLine
testHalfEllipseAAWithPolyLineB2D
testHalfEllipseWithPolygon
testHalfEllipseAAWithPolygon
testTextDrawing
testDrawRectangleOnSize1028WithPixel
testDrawRectangleOnSize4096WithPixel
testDrawRectangleOnSize1028WithLine
testDrawRectangleOnSize4096WithLine
testDrawRectangleOnSize1028WithPolyLine
testDrawRectangleOnSize4096WithPolyLine
testDrawRectangleOnSize1028WithPolygon
testDrawRectangleOnSize4096WithPolygon
testDrawRectangleOnSize1028WithPolyLineB2D
testDrawRectangleOnSize4096WithPolyLineB2D
testDrawRectangleOnSize1028WithPolyPolygon
testDrawRectangleOnSize4096WithPolyPolygon
testDrawRectangleOnSize1028WithPolyPolygonB2D
testDrawRectangleOnSize4096WithPolygonPolygonB2D
testDrawOpenPolygonWithPolyLine
testDrawOpenPolygonWithPolygon
testDrawOpenPolygonWithPolyPolygon
testDrawOpenPolygonWithPolyPolygonB2D
---Name of the tests that were Skipped---
testDrawInvertTrackFrameWithRectangle
testDrawBitmap32bpp
testDrawTransformedBitmap32bpp
testDrawBitmapExWithAlpha32bpp
testDrawMask32bpp
testDrawBlend32bpp

View File

Binary file not shown.

View File

@@ -1,24 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE script:module PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "module.dtd">
<!--
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
-->
<script:module xmlns:script="http://openoffice.org/2000/script" script:name="Module1" script:language="StarBasic">REM ***** BASIC *****
Sub Main
End Sub</script:module>

View File

@@ -1,3 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE library:library PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "library.dtd">
<library:library xmlns:library="http://openoffice.org/2000/library" library:name="Standard" library:readonly="false" library:passwordprotected="false"/>

View File

@@ -1,5 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE library:library PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "library.dtd">
<library:library xmlns:library="http://openoffice.org/2000/library" library:name="Standard" library:readonly="false" library:passwordprotected="false">
<library:element library:name="Module1"/>
</library:library>

View File

@@ -1,5 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE library:libraries PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "libraries.dtd">
<library:libraries xmlns:library="http://openoffice.org/2000/library" xmlns:xlink="http://www.w3.org/1999/xlink">
<library:library library:name="Standard" xlink:href="$(USER)/basic/Standard/dialog.xlb/" xlink:type="simple" library:link="false"/>
</library:libraries>

View File

@@ -1,5 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE library:libraries PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "libraries.dtd">
<library:libraries xmlns:library="http://openoffice.org/2000/library" xmlns:xlink="http://www.w3.org/1999/xlink">
<library:library library:name="Standard" xlink:href="$(USER)/basic/Standard/script.xlb/" xlink:type="simple" library:link="false"/>
</library:libraries>

View File

Binary file not shown.

View File

@@ -1,2 +0,0 @@
Arial

View File

@@ -1,9 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--This is a generated file. Do not alter this file!-->
<java xmlns="http://openoffice.org/2004/java/framework/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<enabled xsi:nil="true"></enabled>
<userClassPath xsi:nil="true"></userClassPath>
<vmParameters xsi:nil="true"></vmParameters>
<jreLocations xsi:nil="true"></jreLocations>
<javaInfo xsi:nil="true"></javaInfo>
</java>

View File

Binary file not shown.

View File

Binary file not shown.

View File

Binary file not shown.

View File

Binary file not shown.

View File

@@ -1 +0,0 @@
580(Build:2)

View File

@@ -1,5 +0,0 @@
Pmp1<EFBFBD>com.sun.wiki-publisher
wiki-publisher<65>wiki-publisher<65>application/vnd.sun.star.package-bundle<6C>1.2.0<EFBFBD>0
<EFBFBD>com.sun.star.comp.Calc.NLPSolver
nlpsolver<EFBFBD>nlpsolver<EFBFBD>application/vnd.sun.star.package-bundle<6C>0.9<EFBFBD>0

View File

@@ -1 +0,0 @@
1

View File

@@ -1,2 +0,0 @@
<?xml version="1.0"?>
<ext:extension-backend-db xmlns:ext="http://openoffice.org/extensionmanager/extension-registry/2010"><ext:extension url="vnd.sun.star.expand:$BUNDLED_EXTENSIONS/nlpsolver"><ext:extension-items><ext:item><ext:url>vnd.sun.star.expand:$BUNDLED_EXTENSIONS/nlpsolver/help</ext:url><ext:media-type>application/vnd.sun.star.help</ext:media-type></ext:item><ext:item><ext:url>vnd.sun.star.expand:$BUNDLED_EXTENSIONS/nlpsolver/components.rdb</ext:url><ext:media-type>application/vnd.sun.star.uno-components</ext:media-type></ext:item></ext:extension-items></ext:extension><ext:extension url="vnd.sun.star.expand:$BUNDLED_EXTENSIONS/wiki-publisher"><ext:extension-items><ext:item><ext:url>vnd.sun.star.expand:$BUNDLED_EXTENSIONS/wiki-publisher/help</ext:url><ext:media-type>application/vnd.sun.star.help</ext:media-type></ext:item><ext:item><ext:url>vnd.sun.star.expand:$BUNDLED_EXTENSIONS/wiki-publisher/WikiExtension.xcs</ext:url><ext:media-type>application/vnd.sun.star.configuration-schema</ext:media-type></ext:item><ext:item><ext:url>vnd.sun.star.expand:$BUNDLED_EXTENSIONS/wiki-publisher/WikiEditor/</ext:url><ext:media-type>application/vnd.sun.star.basic-library</ext:media-type></ext:item><ext:item><ext:url>vnd.sun.star.expand:$BUNDLED_EXTENSIONS/wiki-publisher/components.rdb</ext:url><ext:media-type>application/vnd.sun.star.uno-components</ext:media-type></ext:item><ext:item><ext:url>vnd.sun.star.expand:$BUNDLED_EXTENSIONS/wiki-publisher/Addons.xcu</ext:url><ext:media-type>application/vnd.sun.star.configuration-data</ext:media-type></ext:item><ext:item><ext:url>vnd.sun.star.expand:$BUNDLED_EXTENSIONS/wiki-publisher/ProtocolHandler.xcu</ext:url><ext:media-type>application/vnd.sun.star.configuration-data</ext:media-type></ext:item><ext:item><ext:url>vnd.sun.star.expand:$BUNDLED_EXTENSIONS/wiki-publisher/WikiExtension.xcu</ext:url><ext:media-type>application/vnd.sun.star.configuration-data</ext:media-type></ext:item><ext:item><ext:url>vnd.sun.star.expand:$BUNDLED_EXTENSIONS/wiki-publisher/OptionsDialog.xcu</ext:url><ext:media-type>application/vnd.sun.star.configuration-data</ext:media-type></ext:item><ext:item><ext:url>vnd.sun.star.expand:$BUNDLED_EXTENSIONS/wiki-publisher/Filter.xcu</ext:url><ext:media-type>application/vnd.sun.star.configuration-data</ext:media-type></ext:item><ext:item><ext:url>vnd.sun.star.expand:$BUNDLED_EXTENSIONS/wiki-publisher/Types.xcu</ext:url><ext:media-type>application/vnd.sun.star.configuration-data</ext:media-type></ext:item><ext:item><ext:url>vnd.sun.star.expand:$BUNDLED_EXTENSIONS/wiki-publisher/Paths.xcu</ext:url><ext:media-type>application/vnd.sun.star.configuration-data</ext:media-type></ext:item></ext:extension-items></ext:extension></ext:extension-backend-db>

View File

@@ -1,2 +0,0 @@
ORIGIN=$BUNDLED_EXTENSIONS_USER/registry/com.sun.star.comp.deployment.component.PackageRegistryBackend
UNO_SERVICES=?$BUNDLED_EXTENSIONS/wiki-publisher/components.rdb ?$BUNDLED_EXTENSIONS/nlpsolver/components.rdb

View File

@@ -1,2 +0,0 @@
<?xml version="1.0"?>
<conf:configuration-backend-db xmlns:conf="http://openoffice.org/extensionmanager/configuration-registry/2010"><conf:configuration url="vnd.sun.star.expand:$BUNDLED_EXTENSIONS/wiki-publisher/WikiExtension.xcs"><conf:ini-entry>$BUNDLED_EXTENSIONS/wiki-publisher/WikiExtension.xcs</conf:ini-entry></conf:configuration><conf:configuration url="vnd.sun.star.expand:$BUNDLED_EXTENSIONS/wiki-publisher/Addons.xcu"><conf:ini-entry>$BUNDLED_EXTENSIONS/wiki-publisher/Addons.xcu</conf:ini-entry></conf:configuration><conf:configuration url="vnd.sun.star.expand:$BUNDLED_EXTENSIONS/wiki-publisher/ProtocolHandler.xcu"><conf:ini-entry>$BUNDLED_EXTENSIONS/wiki-publisher/ProtocolHandler.xcu</conf:ini-entry></conf:configuration><conf:configuration url="vnd.sun.star.expand:$BUNDLED_EXTENSIONS/wiki-publisher/WikiExtension.xcu"><conf:ini-entry>$BUNDLED_EXTENSIONS/wiki-publisher/WikiExtension.xcu</conf:ini-entry></conf:configuration><conf:configuration url="vnd.sun.star.expand:$BUNDLED_EXTENSIONS/wiki-publisher/OptionsDialog.xcu"><conf:data-url>vnd.sun.star.expand:$BUNDLED_EXTENSIONS_USER/registry/com.sun.star.comp.deployment.configuration.PackageRegistryBackend/lu2116xqr.tmp</conf:data-url><conf:ini-entry>$BUNDLED_EXTENSIONS_USER/registry/com.sun.star.comp.deployment.configuration.PackageRegistryBackend/lu2116xqr.tmp/OptionsDialog.xcu</conf:ini-entry></conf:configuration><conf:configuration url="vnd.sun.star.expand:$BUNDLED_EXTENSIONS/wiki-publisher/Filter.xcu"><conf:data-url>vnd.sun.star.expand:$BUNDLED_EXTENSIONS_USER/registry/com.sun.star.comp.deployment.configuration.PackageRegistryBackend/lu2116xqs.tmp</conf:data-url><conf:ini-entry>$BUNDLED_EXTENSIONS_USER/registry/com.sun.star.comp.deployment.configuration.PackageRegistryBackend/lu2116xqs.tmp/Filter.xcu</conf:ini-entry></conf:configuration><conf:configuration url="vnd.sun.star.expand:$BUNDLED_EXTENSIONS/wiki-publisher/Types.xcu"><conf:ini-entry>$BUNDLED_EXTENSIONS/wiki-publisher/Types.xcu</conf:ini-entry></conf:configuration><conf:configuration url="vnd.sun.star.expand:$BUNDLED_EXTENSIONS/wiki-publisher/Paths.xcu"><conf:data-url>vnd.sun.star.expand:$BUNDLED_EXTENSIONS_USER/registry/com.sun.star.comp.deployment.configuration.PackageRegistryBackend/lu2116xqu.tmp</conf:data-url><conf:ini-entry>$BUNDLED_EXTENSIONS_USER/registry/com.sun.star.comp.deployment.configuration.PackageRegistryBackend/lu2116xqu.tmp/Paths.xcu</conf:ini-entry></conf:configuration></conf:configuration-backend-db>

View File

@@ -1,2 +0,0 @@
SCHEMA=$BUNDLED_EXTENSIONS/wiki-publisher/WikiExtension.xcs
DATA=$BUNDLED_EXTENSIONS_USER/registry/com.sun.star.comp.deployment.configuration.PackageRegistryBackend/lu2116xqu.tmp/Paths.xcu $BUNDLED_EXTENSIONS/wiki-publisher/Types.xcu $BUNDLED_EXTENSIONS_USER/registry/com.sun.star.comp.deployment.configuration.PackageRegistryBackend/lu2116xqs.tmp/Filter.xcu $BUNDLED_EXTENSIONS_USER/registry/com.sun.star.comp.deployment.configuration.PackageRegistryBackend/lu2116xqr.tmp/OptionsDialog.xcu $BUNDLED_EXTENSIONS/wiki-publisher/WikiExtension.xcu $BUNDLED_EXTENSIONS/wiki-publisher/ProtocolHandler.xcu $BUNDLED_EXTENSIONS/wiki-publisher/Addons.xcu

View File

@@ -1,2 +0,0 @@
<?xml version="1.0"?>
<help:help-backend-db xmlns:help="http://openoffice.org/extensionmanager/help-registry/2010"><help:help url="vnd.sun.star.expand:$BUNDLED_EXTENSIONS/nlpsolver/help"><help:data-url>vnd.sun.star.expand:$BUNDLED_EXTENSIONS/nlpsolver/help</help:data-url></help:help><help:help url="vnd.sun.star.expand:$BUNDLED_EXTENSIONS/wiki-publisher/help"><help:data-url>vnd.sun.star.expand:$BUNDLED_EXTENSIONS/wiki-publisher/help</help:data-url></help:help></help:help-backend-db>

View File

@@ -1,2 +0,0 @@
<?xml version="1.0"?>
<script:script-backend-db xmlns:script="http://openoffice.org/extensionmanager/script-registry/2010"><script:script url="vnd.sun.star.expand:$BUNDLED_EXTENSIONS/wiki-publisher/WikiEditor/"/></script:script-backend-db>

View File

@@ -1 +0,0 @@
1

View File

@@ -1,2 +0,0 @@
<?xml version="1.0"?>
<conf:configuration-backend-db xmlns:conf="http://openoffice.org/extensionmanager/configuration-registry/2010"/>

View File

@@ -1,2 +0,0 @@
<?xml version="1.0"?>
<help:help-backend-db xmlns:help="http://openoffice.org/extensionmanager/help-registry/2010"/>

View File

@@ -1,2 +0,0 @@
<?xml version="1.0"?>
<conf:configuration-backend-db xmlns:conf="http://openoffice.org/extensionmanager/configuration-registry/2010"/>

View File

@@ -1,2 +0,0 @@
<?xml version="1.0"?>
<help:help-backend-db xmlns:help="http://openoffice.org/extensionmanager/help-registry/2010"/>

View File

Binary file not shown.

View File

Binary file not shown.

View File

Binary file not shown.

View File

Binary file not shown.

View File

Binary file not shown.

View File

Binary file not shown.

View File

Binary file not shown.

View File

Binary file not shown.

View File

Binary file not shown.

View File

File diff suppressed because one or more lines are too long

View File

@@ -1,2 +0,0 @@
<?xml version="1.0"?>
<conf:configuration-backend-db xmlns:conf="http://openoffice.org/extensionmanager/configuration-registry/2010"/>

View File

@@ -1,2 +0,0 @@
<?xml version="1.0"?>
<help:help-backend-db xmlns:help="http://openoffice.org/extensionmanager/help-registry/2010"/>

View File

@@ -1,15 +1,130 @@
require('config') local tabsize = 2
require "paq" { vim.o.number = true
"savq/paq-nvim", -- Let Paq manage itself vim.o.relativenumber = true
"nvim-lua/plenary.nvim", vim.o.wrap = false
{ "nvim-telescope/telescope-fzf-native.nvim", build = "make -j16" }, vim.o.winborder = "rounded"
{ "nvim-treesitter/nvim-treesitter", branch = "main" }, vim.o.tabstop = tabsize
'Mofiqul/vscode.nvim', vim.o.softtabstop = tabsize
'neovim/nvim-lspconfig', vim.o.shiftwidth = tabsize
vim.o.expandtab = false
vim.o.smartindent = true
vim.o.swapfile = false
vim.g.mapleader = " "
vim.keymap.set("n", "<leader>o", ":update<CR>:source<CR>")
vim.keymap.set("n", "<leader>lf", vim.lsp.buf.format)
vim.keymap.set("n", "<leader>ff", ":Telescope find_files<CR>")
vim.keymap.set("n", "<leader>fg", ":Telescope live_grep<CR>")
vim.keymap.set("n", "<leader>n", ":noh<CR>")
vim.pack.add({
{ src = "https://github.com/vague-theme/vague.nvim" },
{ src = "https://github.com/neovim/nvim-lspconfig" },
{ src = "https://github.com/nvim-lua/plenary.nvim" },
{ src = "nvim-telescope/telescope-fzf-native.nvim" },
{ src = "https://github.com/nvim-telescope/telescope.nvim" },
{ src = "https://github.com/hrsh7th/nvim-cmp" },
{ src = "https://github.com/hrsh7th/cmp-nvim-lsp" },
{ src = "https://github.com/windwp/nvim-autopairs" },
{ src = "https://github.com/nvim-treesitter/nvim-treesitter" }
})
vim.lsp.config('lua_ls', {
on_init = function(client)
if client.workspace_folders then
local path = client.workspace_folders[1].name
if
path ~= vim.fn.stdpath('config')
and (vim.uv.fs_stat(path .. '/.luarc.json') or vim.uv.fs_stat(path .. '/.luarc.jsonc'))
then
return
end
end
client.config.settings.Lua = vim.tbl_deep_extend('force', client.config.settings.Lua, {
runtime = {
-- Tell the language server which version of Lua you're using (most
-- likely LuaJIT in the case of Neovim)
version = 'LuaJIT',
-- Tell the language server how to find Lua modules same way as Neovim
-- (see `:h lua-module-load`)
path = {
'lua/?.lua',
'lua/?/init.lua',
},
},
workspace = {
checkThirdParty = false,
library = {
vim.env.VIMRUNTIME,
},
},
})
end,
settings = {
Lua = {},
},
})
local cmp = require 'cmp'
cmp.setup({
snippet = {
expand = function(args)
vim.snippet.expand(args.body)
end
},
preselect = cmp.PreselectMode.Item,
mapping = cmp.mapping.preset.insert({
['<C-b>'] = cmp.mapping.scroll_docs(-4),
['<C-f>'] = cmp.mapping.scroll_docs(4),
['<C-j>'] = cmp.mapping.select_next_item(),
['<C-k>'] = cmp.mapping.select_prev_item(),
['<C-Space>'] = cmp.mapping.complete(),
['<C-e>'] = cmp.mapping.abort(),
['<CR>'] = cmp.mapping.confirm({ select = true }),
}),
sources = cmp.config.sources({
{ name = "nvim_lsp" }
}, { name = 'buffer' })
})
local lsp_group = vim.api.nvim_create_augroup("MyLspKeymaps", { clear = true })
vim.api.nvim_create_autocmd('LspAttach', {
group = lsp_group,
callback = function(ev)
local bufnr = ev.buf
local opts = { silent = true, noremap = true, buffer = bufnr }
vim.keymap.set("n", "gd", vim.lsp.buf.definition, opts)
vim.keymap.set("n", "gD", vim.lsp.buf.declaration, opts)
vim.keymap.set("n", "gi", vim.lsp.buf.implementation, opts)
vim.keymap.set("n", "gr", vim.lsp.buf.references, opts)
vim.keymap.set("n", "K", vim.lsp.buf.hover, opts)
vim.keymap.set("n", "<leader>rn", vim.lsp.buf.rename, opts)
vim.keymap.set("n", "<leader>ca", vim.lsp.buf.code_action, opts)
end
})
require("vague").setup {
transparent = true,
italic = false,
} }
require('treesitter') local capabilities = require('cmp_nvim_lsp').default_capabilities()
require('finder')
require('lsp') vim.o.colorcolumn = "80"
require('theme')
vim.lsp.config('lua_ls', {
capabilities = capabilities,
})
vim.lsp.config('clangd-tweak', {
capabilities = capabilities,
})
vim.lsp.enable({ "lua_ls", "clangd-tweak" })
vim.cmd("colorscheme vague")
require 'nvim-autopairs'.setup {}
require 'nvim-treesitter'.install({ "c", "cpp", "rust", "lua", "javascript", "typescript" })

View File

@@ -0,0 +1,100 @@
---@brief
---
--- https://clangd.llvm.org/installation.html
---
--- - **NOTE:** Clang >= 11 is recommended! See [#23](https://github.com/neovim/nvim-lspconfig/issues/23).
--- - If `compile_commands.json` lives in a build directory, you should
--- symlink it to the root of your source tree.
--- ```
--- ln -s /path/to/myproject/build/compile_commands.json /path/to/myproject/
--- ```
--- - clangd relies on a [JSON compilation database](https://clang.llvm.org/docs/JSONCompilationDatabase.html)
--- specified as compile_commands.json, see https://clangd.llvm.org/installation#compile_commandsjson
-- https://clangd.llvm.org/extensions.html#switch-between-sourceheader
local function switch_source_header(bufnr, client)
local method_name = 'textDocument/switchSourceHeader'
---@diagnostic disable-next-line:param-type-mismatch
if not client or not client:supports_method(method_name) then
return vim.notify(('method %s is not supported by any servers active on the current buffer'):format(method_name))
end
local params = vim.lsp.util.make_text_document_params(bufnr)
---@diagnostic disable-next-line:param-type-mismatch
client:request(method_name, params, function(err, result)
if err then
error(tostring(err))
end
if not result then
vim.notify('corresponding file cannot be determined')
return
end
vim.cmd.edit(vim.uri_to_fname(result))
end, bufnr)
end
local function symbol_info(bufnr, client)
local method_name = 'textDocument/symbolInfo'
---@diagnostic disable-next-line:param-type-mismatch
if not client or not client:supports_method(method_name) then
return vim.notify('Clangd client not found', vim.log.levels.ERROR)
end
local win = vim.api.nvim_get_current_win()
local params = vim.lsp.util.make_position_params(win, client.offset_encoding)
---@diagnostic disable-next-line:param-type-mismatch
client:request(method_name, params, function(err, res)
if err or #res == 0 then
-- Clangd always returns an error, there is no reason to parse it
return
end
local container = string.format('container: %s', res[1].containerName) ---@type string
local name = string.format('name: %s', res[1].name) ---@type string
vim.lsp.util.open_floating_preview({ name, container }, '', {
height = 2,
width = math.max(string.len(name), string.len(container)),
focusable = false,
focus = false,
title = 'Symbol Info',
})
end, bufnr)
end
---@class ClangdInitializeResult: lsp.InitializeResult
---@field offsetEncoding? string
---@type vim.lsp.Config
return {
cmd = { 'clangd', '--enable-config' },
filetypes = { 'c', 'cpp', 'objc', 'objcpp', 'cuda' },
root_markers = {
'.clangd',
'.clang-tidy',
'.clang-format',
'compile_commands.json',
'compile_flags.txt',
'configure.ac', -- AutoTools
'.git',
},
capabilities = {
textDocument = {
completion = {
editsNearCursor = true,
},
},
offsetEncoding = { 'utf-8', 'utf-16' },
},
---@param init_result ClangdInitializeResult
on_init = function(client, init_result)
if init_result.offsetEncoding then
client.offset_encoding = init_result.offsetEncoding
end
end,
on_attach = function(client, bufnr)
vim.api.nvim_buf_create_user_command(bufnr, 'LspClangdSwitchSourceHeader', function()
switch_source_header(bufnr, client)
end, { desc = 'Switch between source/header' })
vim.api.nvim_buf_create_user_command(bufnr, 'LspClangdShowSymbolInfo', function()
symbol_info(bufnr, client)
end, { desc = 'Show symbol info' })
end,
}

View File

@@ -1,13 +0,0 @@
vim.o.syntax = "on"
vim.o.expandtab = true
vim.o.tabstop = 4
vim.o.softtabstop = 4
vim.o.shiftwidth = 4
vim.o.smarttab = true
vim.o.smartindent = true
vim.o.number = true
vim.o.relativenumber = true
vim.o.colorcolumn = "100"
vim.o.bg = "dark"
vim.g.mapleader = " "

View File

@@ -1,17 +0,0 @@
local ok, builtin = pcall(require, "telescope.builtin")
if not ok then
print("failed to load telescope.builtin")
return
end
vim.keymap.set('n', '<leader>ff', builtin.find_files, { desc = 'Telescope find files' })
vim.keymap.set('n', '<leader>fg', builtin.live_grep, { desc = 'Telescope live grep' })
vim.keymap.set('n', '<leader>fb', builtin.buffers, { desc = 'Telescope buffers' })
vim.keymap.set('n', '<leader>fh', builtin.help_tags, { desc = 'Telescope help tags' })
local ok, telescope = pcall(require, "telescope")
if not ok then
print("failed to load telescope")
return
end

View File

@@ -1,3 +0,0 @@
vim.lsp.enable('pyright')

View File

@@ -1,11 +0,0 @@
local ok, theme = pcall(require, "vscode")
if not ok then
print("failed to load vscode theme")
return
end
theme.setup{
transparent = true,
}
vim.cmd.colorscheme "vscode"

View File

@@ -1,8 +0,0 @@
local ok, treesitter = pcall(require, "nvim-treesitter")
if not ok then
print("ERROR: treesitter couldn't be loaded")
return
end
treesitter.install { 'lua' }

View File

@@ -0,0 +1,40 @@
{
"plugins": {
"cmp-nvim-lsp": {
"rev": "cbc7b02bb99fae35cb42f514762b89b5126651ef",
"src": "https://github.com/hrsh7th/cmp-nvim-lsp"
},
"nvim-autopairs": {
"rev": "59bce2eef357189c3305e25bc6dd2d138c1683f5",
"src": "https://github.com/windwp/nvim-autopairs"
},
"nvim-cmp": {
"rev": "da88697d7f45d16852c6b2769dc52387d1ddc45f",
"src": "https://github.com/hrsh7th/nvim-cmp"
},
"nvim-lspconfig": {
"rev": "66fd02ad1c7ea31616d3ca678fa04e6d0b360824",
"src": "https://github.com/neovim/nvim-lspconfig"
},
"nvim-treesitter": {
"rev": "45a07f869b0cffba342276f2c77ba7c116d35db8",
"src": "https://github.com/nvim-treesitter/nvim-treesitter"
},
"plenary.nvim": {
"rev": "b9fd5226c2f76c951fc8ed5923d85e4de065e509",
"src": "https://github.com/nvim-lua/plenary.nvim"
},
"telescope-fzf-native.nvim": {
"rev": "6fea601bd2b694c6f2ae08a6c6fab14930c60e2c",
"src": "https://github.com/nvim-telescope/telescope-fzf-native.nvim"
},
"telescope.nvim": {
"rev": "ad7d9580338354ccc136e5b8f0aa4f880434dcdc",
"src": "https://github.com/nvim-telescope/telescope.nvim"
},
"vague.nvim": {
"rev": "c1ab4d4891ff3a27deba6a80222d895ac8ffb2e5",
"src": "https://github.com/vague-theme/vague.nvim"
}
}
}

View File

@@ -1,20 +0,0 @@
[General]
filedialog-path=@Variant(\0\0\0\x11\0\0\0\f/home/landam)
geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\0\0\0\0\0\0\0\0\as\0\0\x3\xf9\0\0\0\0\0\0\0\0\0\0\x2W\0\0\x1\xa3\0\0\0\0\x2\0\0\0\a\x80\0\0\0\0\0\0\0\0\0\0\as\0\0\x3\xf9)
[FullScreen]
pos=@Point(0 0)
screen=@Rect(0 0 0 0)
wide=false
[MainWindow]
adv-controls=0
bgSize=@Size(600 0)
pl-dock-status=true
playlist-visible=false
playlistSize=@Size(-1 -1)
status-bar-visible=false
[RecentsMRL]
list=file:///home/landam/Music/Car%20Amir/Jannah.m4a, file:///home/landam/Music/Car%20Amir/Qalu%20Lahu.m4a, file:///home/landam/Music/Car%20Amir, file:///home/landam/Music/Car%20Amir/ssstik.io_%40animesunnah_1749586184006.m4a, file:///home/landam/Music/Car%20Music/simpatichnaya.mp3, file:///home/landam/Music/Car%20Music/tesha.mp3, file:///home/landam/Music/Car%20Music/murat-txagalegov-za-tebya-kalym-otdam.mp3, file:///home/landam/Music/Car%20Music/simpatichnaya.m4a, file:///home/landam/Music/Car%20Music/simpatichnaya.mp4, file:///home/landam/Music/Car%20Music/Azizbek_Karimov_Simpatichnaya_krasotkam_uzimni.mp3, file:///home/landam/Music/Car%20Music/tesha.m4a, file:///home/landam/Music/Car%20Music/tesha.mp4, file:///home/landam/Music/Nasheeds/ssstik.io_1740172453231.m4a, file:///home/landam/Music/Nasheeds/ssstik.io_1740008226324.m4a, file:///home/landam/Music/Nasheeds/ssstik.io_1735095534363.m4a, file:///home/landam/Music/Nasheeds/ssstik.io_1734833607835.m4a, file:///home/landam/Music/Nasheeds/ssstik.io_1734719481114.m4a, file:///home/landam/Music/Nasheeds/ssstik.io_1734258407698.m4a, file:///home/landam/Music/Nasheeds/ssstik.io_1733520435113.m4a, file:///home/landam/Music/Nasheeds/ssstik.io_1733419222407.m4a, file:///home/landam/Music/Nasheeds/ssstik.io_@zver_aep_1737072648036.m4a, file:///home/landam/Music/Nasheeds/ssstik.io_@zri.35_1751152957544.m4a, file:///home/landam/Music/Nasheeds/ssstik.io_@yus1bovvvv_1737500122548.m4a, file:///home/landam/Music/Nasheeds/ssstik.io_@youandyourdeeds_1741647769365.m4a, file:///home/landam/Music/Nasheeds/ssstik.io_@wyv.028_1740353357825.m4a, file:///home/landam/Music/Nasheeds/ssstik.io_@wanrhet_1739828922369.m4a, file:///home/landam/Music/Nasheeds/ssstik.io_@walmuwahid_1733254572263.m4a, file:///home/landam/Music/Nasheeds/ssstik.io_@w11cs_1741389745313.m4a, file:///home/landam/Music/Nasheeds/ssstik.io_@vermaledeitmma_1753665284445.m4a, file:///home/landam/Music/Nasheeds/ssstik.io_@vayneheryoll_1734604433338.m4a
times=0, 0, 0, 0, 26650, 0, 0, 0, 0, 4934, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4650, 0

View File

File diff suppressed because it is too large Load Diff

View File

@@ -1,5 +1,6 @@
@define-color window_bg_color #171717; /* Main dark background */ @define-color window_bg_color #131313; /* Main dark background */
@define-color accent_bg_color #2A2A2A; /* Subtle dark-accent (replaces blue) */ @define-color search_bg_color #181818;
@define-color accent_bg_color #222222; /* Subtle dark-accent (replaces blue) */
@define-color theme_fg_color #E0E0E0; /* Light grey text */ @define-color theme_fg_color #E0E0E0; /* Light grey text */
@define-color error_bg_color #9A2B2B; /* Darker, muted red */ @define-color error_bg_color #9A2B2B; /* Darker, muted red */
@define-color error_fg_color #F2DADA; /* Softer error fg */ @define-color error_fg_color #F2DADA; /* Softer error fg */
@@ -50,7 +51,7 @@ scrollbar {
.input { .input {
caret-color: @theme_fg_color; caret-color: @theme_fg_color;
background: #1f1f1f; /* slightly lighter than main bg for contrast */ background: @search_bg_color; /* slightly lighter than main bg for contrast */
padding: 10px; padding: 10px;
color: @theme_fg_color; color: @theme_fg_color;
} }

View File

@@ -39,6 +39,12 @@
"~/.config/waybar/modules/custom/dividers.jsonc" "~/.config/waybar/modules/custom/dividers.jsonc"
], ],
"hyprland/language": {
"format-": "ru",
"format-en": "en",
"format-us": "en",
},
/*------------ /*------------
layout layout
------------*/ ------------*/

4
.gitignore vendored
View File

@@ -2,6 +2,7 @@
.config/systemd/ .config/systemd/
.config/session/ .config/session/
.config/pulse/ .config/pulse/
.config/vlc/
.config/pavucontrol.ini .config/pavucontrol.ini
.config/obsidian/ .config/obsidian/
.config/ktrashrc .config/ktrashrc
@@ -15,5 +16,8 @@
.config/chromium .config/chromium
.config/kritadisplayrc .config/kritadisplayrc
.config/kritarc .config/kritarc
.config/fish
.config/htop
.config/libreoffice
*.swp *.swp
/**/.swp /**/.swp