-
Notifications
You must be signed in to change notification settings - Fork 45.3k
merge commits behind from the base repository #1969
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
cc7917b
feat: updated to the latest nvim-lua/kickstart.nvim
morfize c6356a5
update
morfize 5c4bd73
update
morfize 6078f96
del: avante, snacks
tkrnts-sr 2c09bed
add: opencode.lua
tkrnts-sr 8921b60
chore: rm multicursor, add snacks
tkrnts-sr ff0445d
update
morfize 8046c77
Merge branch 'master' into master
morfize File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| -- local ht = require 'haskell-tools' | ||
| -- local bufnr = vim.api.nvim_get_current_buf() | ||
| -- local base_opts = { noremap = true, silent = true, buffer = bufnr } | ||
| -- | ||
| -- vim.keymap.set('n', '<space>cl', vim.lsp.codelens.run, vim.tbl_extend('force', base_opts, { desc = 'Run all code lenses (e.g. eval, add signature)' })) | ||
| -- | ||
| -- vim.keymap.set('n', '<space>hs', ht.hoogle.hoogle_signature, vim.tbl_extend('force', base_opts, { desc = 'Hoogle search for type signature under cursor' })) | ||
| -- | ||
| -- vim.keymap.set('n', '<space>ea', ht.lsp.buf_eval_all, vim.tbl_extend('force', base_opts, { desc = 'Evaluate all code snippets in buffer' })) | ||
| -- | ||
| -- vim.keymap.set('n', '<leader>rr', ht.repl.toggle, vim.tbl_extend('force', base_opts, { desc = 'Toggle GHCi repl for current package' })) | ||
| -- | ||
| -- vim.keymap.set('n', '<leader>rf', function() | ||
| -- ht.repl.toggle(vim.api.nvim_buf_get_name(0)) | ||
| -- end, vim.tbl_extend('force', base_opts, { desc = 'Toggle GHCi repl for current buffer' })) | ||
| -- | ||
| -- vim.keymap.set('n', '<leader>rq', ht.repl.quit, vim.tbl_extend('force', base_opts, { desc = 'Quit GHCi repl' })) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| -- Add the key mappings only for Markdown files in a zk notebook. | ||
| if require('zk.util').notebook_root(vim.fn.expand '%:p') ~= nil then | ||
| local function map(...) | ||
| vim.api.nvim_buf_set_keymap(0, ...) | ||
| end | ||
| local opts = { noremap = true, silent = false } | ||
|
|
||
| -- Open the link under the caret. | ||
| map('n', '<CR>', '<Cmd>lua vim.lsp.buf.definition()<CR>', opts) | ||
|
|
||
| -- Create a new note after asking for its title. | ||
| -- This overrides the global `<leader>zn` mapping to create the note in the same directory as the current buffer. | ||
| map('n', '<leader>zn', "<Cmd>ZkNew { dir = vim.fn.expand('%:p:h'), title = vim.fn.input('Title: ') }<CR>", opts) | ||
| -- Create a new note in the same directory as the current buffer, using the current selection for title. | ||
| map('v', '<leader>znt', ":'<,'>ZkNewFromTitleSelection { dir = vim.fn.expand('%:p:h') }<CR>", opts) | ||
| -- Create a new note in the same directory as the current buffer, using the current selection for note content and asking for its title. | ||
| map('v', '<leader>znc', ":'<,'>ZkNewFromContentSelection { dir = vim.fn.expand('%:p:h'), title = vim.fn.input('Title: ') }<CR>", opts) | ||
|
|
||
| -- Open notes linking to the current buffer. | ||
| map('n', '<leader>zb', '<Cmd>ZkBacklinks<CR>', opts) | ||
| -- Alternative for backlinks using pure LSP and showing the source context. | ||
| --map('n', '<leader>zb', '<Cmd>lua vim.lsp.buf.references()<CR>', opts) | ||
| -- Open notes linked by the current buffer. | ||
| map('n', '<leader>zl', '<Cmd>ZkLinks<CR>', opts) | ||
|
|
||
| -- Preview a linked note. | ||
| map('n', 'K', '<Cmd>lua vim.lsp.buf.hover()<CR>', opts) | ||
| -- Open the code actions for a visual selection. | ||
| map('v', '<leader>za', ":'<,'>lua vim.lsp.buf.range_code_action()<CR>", opts) | ||
|
|
||
| -- Insert a link to a note. | ||
| map('n', '<leader>zi', '<Cmd>ZkInsertLink<CR>', opts) | ||
| -- Insert a link to a note using the current selection for the link text. | ||
| map('v', '<leader>zil', ":'<,'>ZkInsertLinkAtSelection<CR>", opts) | ||
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| local bufnr = vim.api.nvim_get_current_buf() | ||
| vim.keymap.set('n', '<leader>a', function() | ||
| vim.cmd.RustLsp 'codeAction' -- supports rust-analyzer's grouping | ||
| -- or vim.lsp.buf.codeAction() if you don't want grouping. | ||
| end, { silent = true, buffer = bufnr }) | ||
| vim.keymap.set( | ||
| 'n', | ||
| 'K', -- Override Neovim's built-in hover keymap with rustaceanvim's hover actions | ||
| function() | ||
| vim.cmd.RustLsp { 'hover', 'actions' } | ||
| end, | ||
| { silent = true, buffer = bufnr } | ||
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| return { | ||
| 'sourcegraph/amp.nvim', | ||
| branch = 'main', | ||
| lazy = false, | ||
| opts = { auto_start = true, log_level = 'info' }, | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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, | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| return { | ||
| 'typicode/bg.nvim', | ||
| lazy = false, | ||
| priority = 1000, | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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, | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,58 @@ | ||
| return { | ||
| 'catppuccin/nvim', | ||
| name = 'catppuccin', | ||
| priority = 1000, | ||
| config = function() | ||
| require('catppuccin').setup { | ||
| flavour = 'auto', -- latte, frappe, macchiato, mocha | ||
| background = { -- :h background | ||
| light = 'latte', | ||
| dark = 'mocha', | ||
| }, | ||
| transparent_background = false, -- disables setting the background color. | ||
| show_end_of_buffer = false, -- shows the '~' characters after the end of buffers | ||
| term_colors = false, -- sets terminal colors (e.g. `g:terminal_color_0`) | ||
| dim_inactive = { | ||
| enabled = false, -- dims the background color of inactive window | ||
| shade = 'dark', | ||
| percentage = 0.15, -- percentage of the shade to apply to the inactive window | ||
| }, | ||
| no_italic = false, -- Force no italic | ||
| no_bold = false, -- Force no bold | ||
| no_underline = false, -- Force no underline | ||
| styles = { -- Handles the styles of general hi groups (see `:h highlight-args`): | ||
| comments = { 'italic' }, -- Change the style of comments | ||
| conditionals = { 'italic' }, | ||
| loops = {}, | ||
| functions = {}, | ||
| keywords = {}, | ||
| strings = {}, | ||
| variables = {}, | ||
| numbers = {}, | ||
| booleans = {}, | ||
| properties = {}, | ||
| types = {}, | ||
| operators = {}, | ||
| -- miscs = {}, -- Uncomment to turn off hard-coded styles | ||
| }, | ||
| color_overrides = {}, | ||
| custom_highlights = {}, | ||
| default_integrations = true, | ||
| integrations = { | ||
| cmp = true, | ||
| gitsigns = true, | ||
| nvimtree = true, | ||
| treesitter = true, | ||
| notify = false, | ||
| mini = { | ||
| enabled = true, | ||
| indentscope_color = '', | ||
| }, | ||
| -- For more plugins integrations please scroll down (https://github.com/catppuccin/nvim#integrations) | ||
| }, | ||
| } | ||
|
|
||
| -- setup must be called before loading | ||
| -- vim.cmd.colorscheme 'catppuccin' | ||
| end, | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| return { | ||
| 'uga-rosa/ccc.nvim', | ||
| event = 'VeryLazy', | ||
| config = function() | ||
| require('ccc').setup {} | ||
| end, | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,67 @@ | ||
| return { | ||
| 'coder/claudecode.nvim', | ||
| dependencies = { 'folke/snacks.nvim' }, | ||
| config = true, | ||
| opts = { | ||
| -- Server Configuration | ||
| port_range = { min = 10000, max = 65535 }, | ||
| auto_start = true, | ||
| log_level = 'info', -- "trace", "debug", "info", "warn", "error" | ||
| terminal_cmd = nil, -- Custom terminal command (default: "claude") | ||
| -- For local installations: "~/.claude/local/claude" | ||
| -- For native binary: use output from 'which claude' | ||
|
|
||
| -- Send/Focus Behavior | ||
| -- When true, successful sends will focus the Claude terminal if already connected | ||
| focus_after_send = false, | ||
|
|
||
| -- Selection Tracking | ||
| track_selection = true, | ||
| visual_demotion_delay_ms = 50, | ||
|
|
||
| -- Terminal Configuration | ||
| terminal = { | ||
| split_side = 'right', -- "left" or "right" | ||
| split_width_percentage = 0.30, | ||
| provider = 'auto', -- "auto", "snacks", "native", "external", "none", or custom provider table | ||
| auto_close = true, | ||
| snacks_win_opts = {}, -- Opts to pass to `Snacks.terminal.open()` - see Floating Window section below | ||
|
|
||
| -- Provider-specific options | ||
| provider_opts = { | ||
| -- Command for external terminal provider. Can be: | ||
| -- 1. String with %s placeholder: "alacritty -e %s" (backward compatible) | ||
| -- 2. String with two %s placeholders: "alacritty --working-directory %s -e %s" (cwd, command) | ||
| -- 3. Function returning command: function(cmd, env) return "alacritty -e " .. cmd end | ||
| external_terminal_cmd = nil, | ||
| }, | ||
| }, | ||
|
|
||
| -- Diff Integration | ||
| diff_opts = { | ||
| auto_close_on_accept = true, | ||
| vertical_split = true, | ||
| open_in_current_tab = true, | ||
| keep_terminal_focus = false, -- If true, moves focus back to terminal after diff opens | ||
| }, | ||
| }, | ||
| keys = { | ||
| { '<leader>a', nil, desc = 'AI/Claude Code' }, | ||
| { '<leader>ac', '<cmd>ClaudeCode<cr>', desc = 'Toggle Claude' }, | ||
| { '<leader>af', '<cmd>ClaudeCodeFocus<cr>', desc = 'Focus Claude' }, | ||
| { '<leader>ar', '<cmd>ClaudeCode --resume<cr>', desc = 'Resume Claude' }, | ||
| { '<leader>aC', '<cmd>ClaudeCode --continue<cr>', desc = 'Continue Claude' }, | ||
| { '<leader>am', '<cmd>ClaudeCodeSelectModel<cr>', desc = 'Select Claude model' }, | ||
| { '<leader>ab', '<cmd>ClaudeCodeAdd %<cr>', desc = 'Add current buffer' }, | ||
| { '<leader>as', '<cmd>ClaudeCodeSend<cr>', mode = 'v', desc = 'Send to Claude' }, | ||
| { | ||
| '<leader>as', | ||
| '<cmd>ClaudeCodeTreeAdd<cr>', | ||
| desc = 'Add file', | ||
| ft = { 'NvimTree', 'neo-tree', 'oil', 'minifiles', 'netrw' }, | ||
| }, | ||
| -- Diff management | ||
| { '<leader>aa', '<cmd>ClaudeCodeDiffAccept<cr>', desc = 'Accept diff' }, | ||
| { '<leader>ad', '<cmd>ClaudeCodeDiffDeny<cr>', desc = 'Deny diff' }, | ||
| }, | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the
rust_analyzerserver config, settingcmd = {}andfiletypes = {}overrides lspconfig defaults with empty lists, which will prevent the server from starting/attaching. Remove these keys (or set them to the real command/filetypes) so lspconfig can use its defaults.