Skip to content

Commit 47687fc

Browse files
author
Francis
committed
Kanso Theme :)
1 parent 9f8c1f0 commit 47687fc

File tree

5 files changed

+156
-19
lines changed

5 files changed

+156
-19
lines changed

.DS_Store

6 KB
Binary file not shown.

.github/.DS_Store

6 KB
Binary file not shown.

init.lua

Lines changed: 121 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ vim.g.mapleader = ' '
9191
vim.g.maplocalleader = ' '
9292

9393
-- Set to true if you have a Nerd Font installed and selected in the terminal
94-
vim.g.have_nerd_font = false
94+
vim.g.have_nerd_font = true
9595

9696
-- [[ Setting options ]]
9797
-- See `:help vim.opt`
@@ -268,14 +268,32 @@ vim.opt.rtp:prepend(lazypath)
268268
require('lazy').setup({
269269
-- NOTE: Plugins can be added with a link (or for a github repo: 'owner/repo' link).
270270
'tpope/vim-sleuth', -- Detect tabstop and shiftwidth automatically
271-
271+
--NOTE: nvim-tree - FQ
272+
{
273+
'nvim-tree/nvim-tree.lua',
274+
dependencies = {
275+
'nvim-tree/nvim-web-devicons', -- optional, for file icons
276+
},
277+
version = '*',
278+
lazy = false,
279+
config = function()
280+
require('nvim-tree').setup {}
281+
-- Optional: Keybinding to toggle nvim-tree
282+
vim.keymap.set('n', '<leader>e', ':NvimTreeToggle<CR>', { desc = 'Toggle File Explorer (nvim-tree)' })
283+
end,
284+
},
285+
-- --NOTE: Kanso Theme - FQ
286+
-- {
287+
-- 'webhooked/kanso.nvim',
288+
-- lazy = false,
289+
-- priority = 1000,
290+
-- },
272291
-- NOTE: Plugins can also be added by using a table,
273292
-- with the first argument being the link and the following
274293
-- keys can be used to configure plugin behavior/loading/etc.
275294
--
276295
-- Use `opts = {}` to automatically pass options to a plugin's `setup()` function, forcing the plugin to be loaded.
277296
--
278-
279297
-- Alternatively, use `config = function() ... end` for full control over the configuration.
280298
-- If you prefer to call `setup` explicitly, use:
281299
-- {
@@ -370,8 +388,13 @@ require('lazy').setup({
370388
},
371389
},
372390
},
373-
374-
--NOTE: Avante!
391+
--NOTE: Avante blink cmp
392+
{
393+
'Kaiser-Yang/blink-cmp-avante',
394+
dependencies = { 'saghen/blink.cmp', 'yetone/avante.nvim' },
395+
lazy = false,
396+
},
397+
--NOTE: Avante! Setup
375398

376399
{
377400
'yetone/avante.nvim',
@@ -380,10 +403,10 @@ require('lazy').setup({
380403
opts = {
381404
-- add any opts here
382405
-- for example
383-
provider = 'openai',
406+
provider = 'claude',
384407
openai = {
385-
endpoint = 'https://api.openai.com/v1',
386-
model = 'gpt-4o', -- your desired model (or use gpt-4o, etc.)
408+
endpoint = 'https://api.anthropic.com',
409+
model = 'claude-3-7-sonnet-20250219', -- your desired model (or use gpt-4o, etc.)
387410
timeout = 30000, -- Timeout in milliseconds, increase this for reasoning models
388411
temperature = 0,
389412
max_completion_tokens = 8192, -- Increase this to include reasoning tokens (for reasoning models)
@@ -432,7 +455,6 @@ require('lazy').setup({
432455
},
433456
},
434457
},
435-
436458
-- NOTE: Plugins can specify dependencies.
437459
--
438460
-- The dependencies are proper plugin specifications as well - anything
@@ -864,6 +886,10 @@ require('lazy').setup({
864886
event = 'VimEnter',
865887
version = '1.*',
866888
dependencies = {
889+
--
890+
--
891+
--
892+
'Kaiser-Yang/blink-cmp-avante',
867893
-- Snippet Engine
868894
{
869895
'L3MON4D3/LuaSnip',
@@ -935,13 +961,58 @@ require('lazy').setup({
935961
documentation = { auto_show = false, auto_show_delay_ms = 500 },
936962
},
937963

964+
-- providers = {
965+
-- lazydev = { module = 'lazydev.integrations.blink', score_offset = 100 },
966+
-- avante_commands = {
967+
-- name = 'avante_commands',
968+
-- module = 'blink.compat.source',
969+
-- score_offset = 90,
970+
-- opts = {},
971+
-- },
972+
-- avante_files = {
973+
-- name = 'avante_files',
974+
-- module = 'blink.compat.source',
975+
-- score_offset = 100,
976+
-- opts = {},
977+
-- },
978+
-- avante_mentions = {
979+
-- name = 'avante_mentions',
980+
-- module = 'blink.compat.source',
981+
-- score_offset = 1000,
982+
-- opts = {},
983+
-- },
984+
-- },
985+
-- },
986+
--
938987
sources = {
939-
default = { 'lsp', 'path', 'snippets', 'lazydev' },
988+
default = { 'avante', 'lsp', 'path', 'snippets', 'lazydev' },
940989
providers = {
941-
lazydev = { module = 'lazydev.integrations.blink', score_offset = 100 },
990+
lazydev = {
991+
module = 'lazydev.integrations.blink',
992+
score_offset = 100,
993+
},
994+
avante = {
995+
name = 'Avante',
996+
module = 'blink-cmp-avante',
997+
opts = {
998+
command = {
999+
get_kind_name = function()
1000+
return 'AvanteCmd'
1001+
end,
1002+
},
1003+
mention = {
1004+
get_kind_name = function()
1005+
return 'AvanteMention'
1006+
end,
1007+
},
1008+
kind_icons = {
1009+
AvanteCmd = '',
1010+
AvanteMention = '',
1011+
},
1012+
},
1013+
},
9421014
},
9431015
},
944-
9451016
snippets = { preset = 'luasnip' },
9461017

9471018
-- Blink.cmp includes an optional, recommended rust fuzzy matcher,
@@ -963,21 +1034,50 @@ require('lazy').setup({
9631034
-- change the command in the config to whatever the name of that colorscheme is.
9641035
--
9651036
-- If you want to see what colorschemes are already installed, you can use `:Telescope colorscheme`.
966-
'folke/tokyonight.nvim',
1037+
-- 'folke/tokyonight.nvim',
1038+
1039+
'webhooked/kanso.nvim',
1040+
commit = '62e9c5d',
9671041
priority = 1000, -- Make sure to load this before all the other start plugins.
9681042
config = function()
969-
---@diagnostic disable-next-line: missing-fields
970-
require('tokyonight').setup {
971-
styles = {
972-
comments = { italic = false }, -- Disable italics in comments
1043+
-- -@diagnostic disable-next-line: missing-fields
1044+
-- require('tokyonight').setup {
1045+
-- styles = {
1046+
-- comments = { italic = false }, -- Disable italics in comments
1047+
-- },
1048+
-- }
1049+
-- Default options:
1050+
require('kanso').setup {
1051+
compile = false, -- enable compiling the colorscheme
1052+
undercurl = true, -- enable undercurls
1053+
commentStyle = { italic = true },
1054+
functionStyle = {},
1055+
keywordStyle = { italic = true },
1056+
statementStyle = {},
1057+
typeStyle = {},
1058+
disableItalics = false,
1059+
transparent = false, -- do not set background color
1060+
dimInactive = false, -- dim inactive window `:h hl-NormalNC`
1061+
terminalColors = true, -- define vim.g.terminal_color_{0,17}
1062+
colors = { -- add/modify theme and palette colors
1063+
palette = {},
1064+
theme = { zen = {}, pearl = {}, ink = {}, all = {} },
1065+
},
1066+
overrides = function(colors) -- add/modify highlights
1067+
return {}
1068+
end,
1069+
theme = 'zen', -- Load "zen" theme
1070+
background = { -- map the value of 'background' option to a theme
1071+
dark = 'zen', -- try "ink" or "zen"!
1072+
light = 'pearl',
9731073
},
9741074
}
9751075

976-
-- Load the colorscheme here.
1076+
-- -- Load the colorscheme here.
9771077
-- Like many other themes, this one has different styles, and you could load
9781078
-- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'.
9791079
-- vim.cmd.colorscheme 'tokyonight-night'
980-
vim.cmd.colorscheme 'default'
1080+
vim.cmd.colorscheme 'kanso-zen'
9811081
end,
9821082
},
9831083

@@ -1094,6 +1194,8 @@ require('lazy').setup({
10941194
},
10951195
},
10961196
})
1197+
-- vim.api.nvim_set_hl(0, 'BlinkCmpKindAvanteCmd', { default = false, fg = '#89b4fa' })
1198+
-- vim.api.nvim_set_hl(0, 'BlinkCmpKindAvanteMention', { default = false, fg = '#f38ba8' })
10971199

10981200
-- The line beneath this is called `modeline`. See `:help modeline`
10991201
-- vim: ts=2 sts=2 sw=2 et

lazy-lock.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"LuaSnip": { "branch": "master", "commit": "03c8e67eb7293c404845b3982db895d59c0d1538" },
3+
"avante.nvim": { "branch": "main", "commit": "b2064a8f40cbd10ddd3ea9d82f0bdb2bcaf2f152" },
4+
"blink-cmp-avante": { "branch": "master", "commit": "ddefb8de3cb1286ab39e0ccec0f32a45d03391f2" },
5+
"blink.cmp": { "branch": "main", "commit": "4f38ce99a472932d5776337f08f7a8180f1f571a" },
6+
"conform.nvim": { "branch": "master", "commit": "372fc521f8421b7830ea6db4d6ea3bae1c77548c" },
7+
"copilot.lua": { "branch": "master", "commit": "7ba73866b9b3c696f80579c470c6eec374d3acec" },
8+
"dressing.nvim": { "branch": "master", "commit": "2d7c2db2507fa3c4956142ee607431ddb2828639" },
9+
"fidget.nvim": { "branch": "main", "commit": "d9ba6b7bfe29b3119a610892af67602641da778e" },
10+
"fzf-lua": { "branch": "main", "commit": "02def6b972d7687866738d6f6a5f4839ce5b5a7a" },
11+
"gitsigns.nvim": { "branch": "main", "commit": "43b0c856ae5f32a195d83f4a27fe21d63e6c966c" },
12+
"img-clip.nvim": { "branch": "main", "commit": "08a02e14c8c0d42fa7a92c30a98fd04d6993b35d" },
13+
"kanso.nvim": { "branch": "main", "commit": "62e9c5d669567d086474b2b6863e0724c71c6c99" },
14+
"lazy.nvim": { "branch": "main", "commit": "6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a" },
15+
"lazydev.nvim": { "branch": "main", "commit": "2367a6c0a01eb9edb0464731cc0fb61ed9ab9d2c" },
16+
"mason-lspconfig.nvim": { "branch": "main", "commit": "d39a75bbce4b8aad5d627191ea915179c77c100f" },
17+
"mason-tool-installer.nvim": { "branch": "main", "commit": "aafae207d5a2a28c59c9d478d8581c2739135d09" },
18+
"mason.nvim": { "branch": "main", "commit": "7c7318e8bae7e3536ef6b9e86b9e38e74f2e125e" },
19+
"mini.nvim": { "branch": "main", "commit": "6105b69d79fef0afed5ed576081b1997ef2b4be1" },
20+
"mini.pick": { "branch": "main", "commit": "fa1e449e1080bf7aa9b2890ee186d23b1b4e1287" },
21+
"nui.nvim": { "branch": "main", "commit": "f535005e6ad1016383f24e39559833759453564e" },
22+
"nvim-cmp": { "branch": "main", "commit": "b5311ab3ed9c846b585c0c15b7559be131ec4be9" },
23+
"nvim-lspconfig": { "branch": "master", "commit": "4bc481b6f0c0cf3671fc894debd0e00347089a4e" },
24+
"nvim-tree.lua": { "branch": "master", "commit": "be5b788f2dc1522c73fb7afad9092331c8aebe80" },
25+
"nvim-treesitter": { "branch": "master", "commit": "28d480e0624b259095e56f353ec911f9f2a0f404" },
26+
"nvim-web-devicons": { "branch": "master", "commit": "2c2b4eafce6cdd0cb165036faa17396eff18f847" },
27+
"plenary.nvim": { "branch": "master", "commit": "857c5ac632080dba10aae49dba902ce3abf91b35" },
28+
"render-markdown.nvim": { "branch": "main", "commit": "ff577b44bd3ab642acec0f134a7bf26b7278d137" },
29+
"telescope-fzf-native.nvim": { "branch": "main", "commit": "1f08ed60cafc8f6168b72b80be2b2ea149813e55" },
30+
"telescope-ui-select.nvim": { "branch": "master", "commit": "6e51d7da30bd139a6950adf2a47fda6df9fa06d2" },
31+
"telescope.nvim": { "branch": "master", "commit": "a4ed82509cecc56df1c7138920a1aeaf246c0ac5" },
32+
"todo-comments.nvim": { "branch": "main", "commit": "304a8d204ee787d2544d8bc23cd38d2f929e7cc5" },
33+
"vim-sleuth": { "branch": "master", "commit": "be69bff86754b1aa5adcbb527d7fcd1635a84080" },
34+
"which-key.nvim": { "branch": "main", "commit": "370ec46f710e058c9c1646273e6b225acf47cbed" }
35+
}

lua/.DS_Store

6 KB
Binary file not shown.

0 commit comments

Comments
 (0)