Add scroll, and llama shortcut

This commit is contained in:
Raoul Branten 2025-06-05 22:06:17 +02:00
parent 5f4866c0f6
commit 12cd4924a7
4 changed files with 46 additions and 1 deletions

View File

@ -12,6 +12,7 @@ require("config.plugin.rainbow-delimiters")
require("config.plugin.marks")
require("config.plugin.vim-indentwise")
require("config.plugin.indent-blankline")
require("config.plugin.scrollbar")
require("config.plugin.gruvbox")
--require("config.plugin.lsp_config")

View File

@ -0,0 +1,2 @@
-- change llama shortcut to use tab for just the line
-- and shift-tab for the whole block

View File

@ -0,0 +1,32 @@
require'scrollbar'.setup{
handle = {
text = " ",
blend = 10, -- Integer between 0 and 100. 0 for fully opaque and 100 to full transparent. Defaults to 30.
color = '#FFF',
color_nr = nil, -- cterm
highlight = "CursorColumn",
hide_if_all_visible = true, -- Hides handle if all lines are visible
},
marks = {
Cursor = {
text = "",
},
Error = {
text = { "", "" },
},
Warn = {
text = { "", "" },
},
Info = {
text = { "", "" },
},
Hint = {
text = { "", "" },
},
Misc = {
text = { "-", "=" },
},
},
}
-- ⚠
-- ↦

View File

@ -60,7 +60,15 @@ return {
--# indentwise, helps with indentation formatting
"jeetsukumaran/vim-indentwise",
--# local ai, needs llama.cpp which should be built using CUDA, see https://github.com/ggml-org/llama.cpp
'ggml-org/llama.vim',
{
'ggml-org/llama.vim',
init = function()
vim.g.llama_config = {
keymap_accept_line = "<Tab>",
keymap_accept_full = "<S-Tab>",
}
end,
},
--# indent-blankline, shows indentation
{
"lukas-reineke/indent-blankline.nvim",
@ -91,6 +99,8 @@ return {
require("lazy-lsp").setup {}
end,
},
-- Add scrollbar
'petertriho/nvim-scrollbar',
}
--"williamboman/mason.nvim",
--"williamboman/mason-lspconfig.nvim",