Add scroll, and llama shortcut
This commit is contained in:
parent
5f4866c0f6
commit
12cd4924a7
@ -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")
|
||||
|
||||
2
lua/config/plugin/llama.lua
Normal file
2
lua/config/plugin/llama.lua
Normal file
@ -0,0 +1,2 @@
|
||||
-- change llama shortcut to use tab for just the line
|
||||
-- and shift-tab for the whole block
|
||||
32
lua/config/plugin/scrollbar.lua
Normal file
32
lua/config/plugin/scrollbar.lua
Normal 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 = { "-", "=" },
|
||||
},
|
||||
},
|
||||
}
|
||||
-- ⚠
|
||||
-- ↦
|
||||
@ -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",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user