Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: nvim-lua/kickstart.nvim
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: coton3um/kickstart.nvim
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Can’t automatically merge. Don’t worry, you can still create the pull request.
  • 3 commits
  • 10 files changed
  • 1 contributor

Commits on Feb 7, 2025

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    319bacc View commit details

Commits on Mar 1, 2025

  1. 1 Mar 2025

    coton3um committed Mar 1, 2025
    Copy the full SHA
    9207c4a View commit details

Commits on Mar 14, 2025

  1. regular update

    coton3um committed Mar 14, 2025
    Copy the full SHA
    add4029 View commit details
76 changes: 54 additions & 22 deletions init.lua
Original file line number Diff line number Diff line change
@@ -91,7 +91,7 @@ vim.g.mapleader = ' '
vim.g.maplocalleader = ' '

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

-- [[ Setting options ]]
-- See `:help vim.opt`
@@ -388,7 +388,11 @@ require('lazy').setup({
-- i = { ['<c-enter>'] = 'to_fuzzy_refine' },
-- },
-- },
-- pickers = {}
-- pickers = {
-- colorscheme = {
-- enable_preview = true,
-- },
-- },
extensions = {
['ui-select'] = {
require('telescope.themes').get_dropdown(),
@@ -590,14 +594,14 @@ require('lazy').setup({
})

-- Change diagnostic symbols in the sign column (gutter)
-- if vim.g.have_nerd_font then
-- local signs = { ERROR = '', WARN = '', INFO = '', HINT = '' }
-- local diagnostic_signs = {}
-- for type, icon in pairs(signs) do
-- diagnostic_signs[vim.diagnostic.severity[type]] = icon
-- end
-- vim.diagnostic.config { signs = { text = diagnostic_signs } }
-- end
if vim.g.have_nerd_font then
local signs = { ERROR = '', WARN = '', INFO = '', HINT = '' }
local diagnostic_signs = {}
for type, icon in pairs(signs) do
diagnostic_signs[vim.diagnostic.severity[type]] = icon
end
vim.diagnostic.config { signs = { text = diagnostic_signs } }
end

-- LSP servers and clients are able to communicate to each other what features they support.
-- By default, Neovim doesn't support everything that is in the LSP specification.
@@ -619,7 +623,34 @@ require('lazy').setup({
-- clangd = {},
-- gopls = {},
-- pyright = {},
-- rust_analyzer = {},
rust_analyzer = {
opts = {
checkOnSave = { enable = true },
diagnostics = { enable = true },
},
settings = {
['rust-analyzer'] = {
diagnostics = {
underline = false,
},
imports = {
granularity = {
group = 'module',
},
prefix = 'self',
},
cargo = {
buildScripts = {
enable = true,
},
},
procMacro = {
enable = true,
},
},
},
},

-- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs
--
-- Some languages (like typescript) have entire language plugins that can be useful:
@@ -628,7 +659,6 @@ require('lazy').setup({
-- But for many setups, the LSP (`ts_ls`) will work just fine
-- ts_ls = {},
--

lua_ls = {
-- cmd = { ... },
-- filetypes = { ... },
@@ -639,7 +669,7 @@ require('lazy').setup({
callSnippet = 'Replace',
},
-- You can toggle below to ignore Lua_LS's noisy `missing-fields` warnings
-- diagnostics = { disable = { 'missing-fields' } },
diagnostics = { disable = { 'missing-fields' } },
},
},
},
@@ -661,6 +691,7 @@ require('lazy').setup({
local ensure_installed = vim.tbl_keys(servers or {})
vim.list_extend(ensure_installed, {
'stylua', -- Used to format Lua code
'markdownlint',
})
require('mason-tool-installer').setup { ensure_installed = ensure_installed }

@@ -713,6 +744,7 @@ require('lazy').setup({
end,
formatters_by_ft = {
lua = { 'stylua' },
rust = { 'rust-analyzer' },
-- Conform can also run multiple formatters sequentially
-- python = { "isort", "black" },
--
@@ -789,7 +821,7 @@ require('lazy').setup({
-- Accept ([y]es) the completion.
-- This will auto-import if your LSP supports it.
-- This will expand snippets if the LSP sent a snippet.
['<C-y>'] = cmp.mapping.confirm { select = true },
-- ['<C-y>'] = cmp.mapping.confirm { select = true },

-- If you prefer more traditional completion keymaps,
-- you can uncomment the following lines
@@ -849,7 +881,7 @@ require('lazy').setup({
-- Load the colorscheme here.
-- Like many other themes, this one has different styles, and you could load
-- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'.
vim.cmd.colorscheme 'tokyonight-night'
vim.cmd.colorscheme 'tokyonight'

-- You can configure highlights by doing something like:
vim.cmd.hi 'Comment gui=none'
@@ -931,18 +963,18 @@ require('lazy').setup({
-- Here are some example plugins that I've included in the Kickstart repository.
-- Uncomment any of the lines below to enable them (you will need to restart nvim).
--
-- require 'kickstart.plugins.debug',
-- require 'kickstart.plugins.indent_line',
-- require 'kickstart.plugins.lint',
-- require 'kickstart.plugins.autopairs',
-- require 'kickstart.plugins.neo-tree',
-- require 'kickstart.plugins.gitsigns', -- adds gitsigns recommend keymaps
require 'kickstart.plugins.debug',
require 'kickstart.plugins.indent_line',
require 'kickstart.plugins.lint',
require 'kickstart.plugins.autopairs',
require 'kickstart.plugins.neo-tree',
require 'kickstart.plugins.gitsigns', -- adds gitsigns recommend keymaps

-- NOTE: The import below can automatically add your own plugins, configuration, etc from `lua/custom/plugins/*.lua`
-- This is the easiest way to modularize your config.
--
-- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going.
-- { import = 'custom.plugins' },
{ import = 'custom.plugins' },
--
-- For additional information with loading, sourcing and examples see `:help lazy.nvim-🔌-plugin-spec`
-- Or use telescope!
118 changes: 118 additions & 0 deletions lua/custom/plugins/avante.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
return {
'yetone/avante.nvim',
event = 'VeryLazy',
lazy = false,
version = false,
opts = {
provider = 'copilot',
auto_suggestions_provider = 'copilot',

-- 動作設定
behaviour = {
auto_suggestions = false,
auto_set_highlight_group = true,
auto_set_keymaps = true,
auto_apply_diff_after_generation = false,
support_paste_from_clipboard = false,
minimize_diff = true,
},

-- ウィンドウ設定
windows = {
position = 'right', -- サイドバーの位置
wrap = true, -- テキストの折り返し
width = 30, -- サイドバーの幅
},
},
-- 依存関係の設定
dependencies = {
'nvim-treesitter/nvim-treesitter',
'stevearc/dressing.nvim',
'nvim-lua/plenary.nvim',
'MunifTanjim/nui.nvim',
--- The below dependencies are optional,
'echasnovski/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
'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,
},
},
},
},
},
}

-- from https://github.com/yetone/avante.nvim?tab=readme-ov-file
-- {
-- "yetone/avante.nvim",
-- event = "VeryLazy",
-- lazy = false,
-- version = false, -- Set this to "*" to always pull the latest release version, or set it to false to update to the latest code changes.
-- opts = {
-- -- add any opts here
-- -- for example
-- provider = "openai",
-- openai = {
-- endpoint = "https://api.openai.com/v1",
-- model = "gpt-4o", -- your desired model (or use gpt-4o, etc.)
-- timeout = 30000, -- timeout in milliseconds
-- temperature = 0, -- adjust if needed
-- max_tokens = 4096,
-- -- reasoning_effort = "high" -- only supported for reasoning models (o1, etc.)
-- },
-- },
-- -- if you want to build from source then do `make BUILD_FROM_SOURCE=true`
-- build = "make",
-- -- build = "powershell -ExecutionPolicy Bypass -File Build.ps1 -BuildFromSource false" -- for windows
-- dependencies = {
-- "nvim-treesitter/nvim-treesitter",
-- "stevearc/dressing.nvim",
-- "nvim-lua/plenary.nvim",
-- "MunifTanjim/nui.nvim",
-- --- The below dependencies are optional,
-- "echasnovski/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
-- "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" },
-- },
-- },
-- }
7 changes: 7 additions & 0 deletions lua/custom/plugins/better-escape.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
-- lua with lazy.nvim
return {
'max397574/better-escape.nvim',
config = function()
require('better_escape').setup()
end,
}
4 changes: 4 additions & 0 deletions lua/custom/plugins/bg.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
return {
'typicode/bg.nvim',
lazy = false,
}
9 changes: 9 additions & 0 deletions lua/custom/plugins/bufferline.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
return {
'akinsho/bufferline.nvim',
lazy = false,
version = '*',
dependencies = 'nvim-tree/nvim-web-devicons',
config = function()
require('bufferline').setup {}
end,
}
31 changes: 31 additions & 0 deletions lua/custom/plugins/init.lua
Original file line number Diff line number Diff line change
@@ -2,4 +2,35 @@
-- I promise not to create any merge conflicts in this directory :)
--
-- See the kickstart.nvim README for more information

vim.cmd 'language en_GB'

vim.opt.termguicolors = true

vim.opt.wrap = true
vim.diagnostic.config {
update_in_insert = true,
underline = false,
}

-- TODO: custom keymaps. These should be moved to appropriate location eg. lua/custom/mappings.lua, which should be imported in the toppest init.lua
vim.keymap.set('n', ';', ':', { desc = '' })

-- buffer control
vim.keymap.set('n', '<Tab>', '<cmd>bnext<CR>', { desc = 'Next buffer' })
vim.keymap.set('n', '<Leader>x', '<cmd>bdelete<CR>', { desc = 'delete buffer' })

--telescope
vim.keymap.set('n', '<Leader>tc', '<cmd>Telescope colorscheme<CR>', { desc = '[T]elescope [C]olorscheme' })

-- toggleterm
vim.keymap.set('n', '<Leader>H', '<cmd>ToggleTerm size=25 direction=horizontal<CR>', { desc = 'Open Terminal Horizontal' })
vim.keymap.set('t', '<Leader>H', '<cmd>ToggleTerm size=25 direction=horizontal<CR>', { desc = 'Open Terminal Horizontal' })

vim.keymap.set('n', '<Leader>V', '<cmd>ToggleTerm size=80 direction=vertical<CR>', { desc = 'Open Terminal Vertical' })
vim.keymap.set('t', '<Leader>V', '<cmd>ToggleTerm size=80 direction=vertical<CR>', { desc = 'Open Terminal Vertical' })

vim.keymap.set('n', '<M-i>', '<cmd>ToggleTerm direction=float<CR>', { desc = 'Open Terminal floating' })
vim.keymap.set('t', '<M-i>', '<cmd>ToggleTerm direction=float<CR>', { desc = 'Open Terminal floating' })

return {}
6 changes: 6 additions & 0 deletions lua/custom/plugins/rustaceanvim.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
return {
'mrcjkb/rustaceanvim',
enabled = false,
version = '^5',
lazy = false,
}
5 changes: 5 additions & 0 deletions lua/custom/plugins/smear_cursor.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
return {
'sphamba/smear-cursor.nvim',
enabled = false,
opts = {},
}
6 changes: 6 additions & 0 deletions lua/custom/plugins/toggleterm.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
return {
'akinsho/toggleterm.nvim',
version = '*',
config = true,
opts = {},
}
2 changes: 1 addition & 1 deletion lua/kickstart/plugins/neo-tree.lua
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@ return {
},
cmd = 'Neotree',
keys = {
{ '\\', ':Neotree reveal<CR>', desc = 'NeoTree reveal', silent = true },
{ '\\', ':Neotree toggle position=right<CR>', desc = 'NeoTree reveal', silent = true },
},
opts = {
filesystem = {