Compare commits
3 Commits
work-lapto
...
x1-carbon
| Author | SHA1 | Date | |
|---|---|---|---|
| 2ad618af1b | |||
| 7ebe8337b0 | |||
| cad7412741 |
@@ -35,6 +35,7 @@ monitor=,preferred,auto,auto
|
||||
|
||||
# Set programs that you use
|
||||
$terminal = kitty
|
||||
#$terminal = foot
|
||||
$fileManager = nautilus
|
||||
$menu = wofi --show drun -GI
|
||||
|
||||
@@ -214,9 +215,23 @@ misc {
|
||||
xwayland {
|
||||
force_zero_scaling = true
|
||||
}
|
||||
|
||||
env = GTK_SCALE,1
|
||||
env = XCURSOR_SIZE,32
|
||||
|
||||
plugin {
|
||||
hy3 {
|
||||
tabs {
|
||||
# height of the tab bar
|
||||
height = 2 # default: 22
|
||||
|
||||
# render the window title on the bar
|
||||
render_text = false # default: true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
#############
|
||||
### INPUT ###
|
||||
@@ -266,7 +281,7 @@ bind = $mainMod, M, exec, hyprlock
|
||||
|
||||
bind = $mainMod SHIFT, SPACE, togglefloating,
|
||||
bind = $mainMod SHIFT, Q, hy3:killactive,
|
||||
bind = $mainMod SHIFT, M, exit,
|
||||
bind = $mainMod SHIFT, E, exit,
|
||||
bind = $mainMod SHIFT, S, pin
|
||||
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ background {
|
||||
|
||||
input-field {
|
||||
monitor =
|
||||
size = 20%, 5%
|
||||
size = 15%, 5%
|
||||
font_family = Noto Sans
|
||||
dots_size = 0.08
|
||||
}
|
||||
@@ -15,6 +15,6 @@ input-field {
|
||||
label {
|
||||
monitor =
|
||||
text = $TIME
|
||||
font_size = 80
|
||||
position = 0, -10
|
||||
font_size = 200
|
||||
position = 0, 200
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
font_size 11.5
|
||||
font_size 10.5
|
||||
|
||||
#text_composition_strategy legacy
|
||||
#modify_font cell_width 95%
|
||||
@@ -9,11 +9,6 @@ cursor_trail_start_threshold 0
|
||||
shell_integration no-cursor
|
||||
cursor_trail_decay 0.01 0.15
|
||||
cursor_shape block
|
||||
cursor_blink true
|
||||
|
||||
map cmd+c copy_to_clipboard
|
||||
map cmd+v paste_from_clipboard
|
||||
map shift+insert paste_from_clipboard
|
||||
|
||||
linux_display_server wayland
|
||||
wayland_enable_ime yes
|
||||
|
||||
@@ -16,9 +16,9 @@ vim.cmd("set number")
|
||||
|
||||
vim.cmd("set relativenumber")
|
||||
vim.cmd("set expandtab")
|
||||
vim.cmd("set shiftwidth=4")
|
||||
vim.cmd("set softtabstop=4")
|
||||
vim.cmd("set tabstop=4")
|
||||
vim.cmd("set shiftwidth=2")
|
||||
vim.cmd("set softtabstop=2")
|
||||
vim.cmd("set tabstop=2")
|
||||
vim.cmd("set smartindent")
|
||||
|
||||
vim.cmd("set backspace=indent,eol,start")
|
||||
|
||||
@@ -1,63 +0,0 @@
|
||||
return {
|
||||
"yetone/avante.nvim",
|
||||
-- if you want to build from source then do `make BUILD_FROM_SOURCE=true`
|
||||
-- ⚠️ must add this setting! ! !
|
||||
build = vim.fn.has("win32") ~= 0
|
||||
and "powershell -ExecutionPolicy Bypass -File Build.ps1 -BuildFromSource false"
|
||||
or "make",
|
||||
event = "VeryLazy",
|
||||
version = false, -- Never set this value to "*"! Never!
|
||||
---@module 'avante'
|
||||
---@type avante.Config
|
||||
opts = {
|
||||
-- add any opts here
|
||||
-- this file can contain specific instructions for your project
|
||||
instructions_file = "avante.md",
|
||||
-- for example
|
||||
provider = "ollama",
|
||||
providers = {
|
||||
ollama = {
|
||||
model = "devstral-small-2:24b-32k",
|
||||
--is_env_set = require("avante.providers.ollama").check_endpoint_alive,
|
||||
},
|
||||
},
|
||||
},
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
"MunifTanjim/nui.nvim",
|
||||
--- The below dependencies are optional,
|
||||
"nvim-mini/mini.pick", -- for file_selector provider mini.pick
|
||||
"nvim-telescope/telescope.nvim", -- for file_selector provider telescope
|
||||
"hrsh7th/nvim-cmp", -- autocompletion for avante commands and mentions
|
||||
"ibhagwan/fzf-lua", -- for file_selector provider fzf
|
||||
"stevearc/dressing.nvim", -- for input provider dressing
|
||||
"folke/snacks.nvim", -- for input provider snacks
|
||||
"nvim-tree/nvim-web-devicons", -- or echasnovski/mini.icons
|
||||
"zbirenbaum/copilot.lua", -- for providers='copilot'
|
||||
{
|
||||
-- support for image pasting
|
||||
"HakonHarnes/img-clip.nvim",
|
||||
event = "VeryLazy",
|
||||
opts = {
|
||||
-- recommended settings
|
||||
default = {
|
||||
embed_image_as_base64 = false,
|
||||
prompt_for_file_name = false,
|
||||
drag_and_drop = {
|
||||
insert_mode = true,
|
||||
},
|
||||
-- required for Windows users
|
||||
use_absolute_path = true,
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
-- Make sure to set this up properly if you have lazy=true
|
||||
'MeanderingProgrammer/render-markdown.nvim',
|
||||
opts = {
|
||||
file_types = { "markdown", "Avante" },
|
||||
},
|
||||
ft = { "markdown", "Avante" },
|
||||
},
|
||||
},
|
||||
}
|
||||
54
.config/nvim/lua/plugins/llm.lua
Normal file
54
.config/nvim/lua/plugins/llm.lua
Normal file
@@ -0,0 +1,54 @@
|
||||
return {
|
||||
"huggingface/llm.nvim",
|
||||
config = function()
|
||||
local llm = require('llm')
|
||||
llm.setup({
|
||||
api_token = nil, -- cf Install paragraph
|
||||
model = "Qwen3.5-9B", -- the model ID, behavior depends on backend
|
||||
backend = "openai", -- backend ID, "huggingface" | "ollama" | "openai" | "tgi"
|
||||
url = "http://localhost:8123", -- the http url of the backend
|
||||
--tokens_to_clear = { "<|endoftext|>" }, -- tokens to remove from the model's output
|
||||
-- parameters that are added to the request body, values are arbitrary, you can set any field:value pair here it will be passed as is to the backend
|
||||
request_body = {
|
||||
parameters = {
|
||||
temperature=0.6,
|
||||
top_p=0.95,
|
||||
top_k=20,
|
||||
min_p=0.0,
|
||||
presence_penalty=0.0,
|
||||
repetition_penalty=1.0,
|
||||
max_new_tokens = 2000,
|
||||
chat_template_kwargs='{"enable_thinking": False}',
|
||||
},
|
||||
},
|
||||
-- set this if the model supports fill in the middle
|
||||
fim = {
|
||||
enabled = true,
|
||||
prefix = "<fim_prefix>",
|
||||
middle = "<fim_middle>",
|
||||
suffix = "<fim_suffix>",
|
||||
},
|
||||
debounce_ms = 100,
|
||||
accept_keymap = "<Tab>",
|
||||
dismiss_keymap = "<S-Tab>",
|
||||
tls_skip_verify_insecure = false,
|
||||
-- llm-ls configuration, cf llm-ls section
|
||||
--lsp = {
|
||||
-- bin_path = nil,
|
||||
-- host = nil,
|
||||
-- port = nil,
|
||||
-- cmd_env = nil, -- or { LLM_LOG_LEVEL = "DEBUG" } to set the log level of llm-ls
|
||||
-- version = "0.5.3",
|
||||
--},
|
||||
tokenizer = {
|
||||
repository = "Qwen/Qwen3.5-9B",
|
||||
api_token = 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,
|
||||
|
||||
}, -- cf Tokenizer paragraph
|
||||
context_window = 5000, -- max number of tokens for the context window
|
||||
enable_suggestions_on_startup = false,
|
||||
enable_suggestions_on_files = "*", -- pattern matching syntax to enable suggestions on specific files, either a string or a list of strings
|
||||
disable_url_path_completion = false, -- cf Backend
|
||||
})
|
||||
end
|
||||
}
|
||||
@@ -3,6 +3,7 @@ return {
|
||||
dependencies = {
|
||||
{"mason-org/mason.nvim"},
|
||||
{'neovim/nvim-lspconfig'},
|
||||
|
||||
{'nvim-mini/mini.nvim'},
|
||||
{'nvim-mini/mini.completion'},
|
||||
},
|
||||
|
||||
@@ -2,6 +2,6 @@ return {
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
build = ":TSUpdate",
|
||||
config = function()
|
||||
require("nvim-treesitter").install({})
|
||||
--require("nvim-treesitter").install({})
|
||||
end
|
||||
}
|
||||
|
||||
@@ -90,3 +90,4 @@ bindsym $mod+Ctrl+y exec : | wl-copy -p
|
||||
exec systemctl --user import-environment XDG_SESSION_TYPE XDG_CURRENT_DESKTOP
|
||||
exec dbus-update-activation-environment --systemd WAYLAND_DISPLAY DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP=sway XDG_SESSION_DESKTOP=sway
|
||||
|
||||
|
||||
|
||||
0
.config/sway/scripts/clamshell-mode.sh
Normal file → Executable file
0
.config/sway/scripts/clamshell-mode.sh
Normal file → Executable file
Reference in New Issue
Block a user