Comments (5)
Could you check if it works correctly with dev
branch for you now? I updated dressing.nvim config.
from nvim.
dressing issue is not there in the dev branch. but the other issue with gitsigns still there.
"attempt to index field keymap (a nil value)"
from nvim.
As per the gitsigns README, the configuration currently used requires neovim v0.7 since it uses vim.keymap.set
.
Changing ~/.config/nvim/lua/plugins/gitsigns.lua
to
require('gitsigns').setup {
---omitted the rest of the config
on_attach = function(bufnr)
local function map(mode, lhs, rhs, opts)
opts = vim.tbl_extend('force', {noremap = true, silent = true}, opts or {})
vim.api.nvim_buf_set_keymap(bufnr, mode, lhs, rhs, opts)
end
-- Navigation
map('n', ']c', "&diff ? ']c' : '<cmd>Gitsigns next_hunk<CR>'", {expr=true})
map('n', '[c', "&diff ? '[c' : '<cmd>Gitsigns prev_hunk<CR>'", {expr=true})
-- Actions
map('n', '<leader>hs', ':Gitsigns stage_hunk<CR>')
map('v', '<leader>hs', ':Gitsigns stage_hunk<CR>')
map('n', '<leader>hr', ':Gitsigns reset_hunk<CR>')
map('v', '<leader>hr', ':Gitsigns reset_hunk<CR>')
map('n', '<leader>hS', '<cmd>Gitsigns stage_buffer<CR>')
map('n', '<leader>hu', '<cmd>Gitsigns undo_stage_hunk<CR>')
map('n', '<leader>hR', '<cmd>Gitsigns reset_buffer<CR>')
map('n', '<leader>hp', '<cmd>Gitsigns preview_hunk<CR>')
map('n', '<leader>hb', '<cmd>lua require"gitsigns".blame_line{full=true}<CR>')
map('n', '<leader>tb', '<cmd>Gitsigns toggle_current_line_blame<CR>')
map('n', '<leader>hd', '<cmd>Gitsigns diffthis<CR>')
map('n', '<leader>hD', '<cmd>lua require"gitsigns".diffthis("~")<CR>')
map('n', '<leader>td', '<cmd>Gitsigns toggle_deleted<CR>')
-- Text object
map('o', 'ih', ':<C-U>Gitsigns select_hunk<CR>')
map('x', 'ih', ':<C-U>Gitsigns select_hunk<CR>')
end
}
should get rid of the error. Or you can update to a newer version of neovim.
from nvim.
@rajcspsg Were you able to fix your issues?
from nvim.
@ecosse3 yeap It fixes my issue
from nvim.
Related Issues (20)
- Plugin telescope and neoai not working in v3.5.1 HOT 4
- Ecovim initialization with Lazyman hangs HOT 3
- telescope search not work HOT 2
- cannot see many of the "special characters" used. HOT 1
- Tsserver doesn't work properly HOT 2
- Codeium Auth HOT 2
- why does it hide the imports? HOT 1
- Solve the problem of ‘gcc' comment mapping not work.
- after updating i get alot of errors, how can i debug it? HOT 2
- Alternative for null-ls? HOT 4
- MasonLog: Installation failed for Package(name=html-lsp) error=spawn: npm failed with exit code 1 and signal 0. HOT 3
- Issue right after install HOT 2
- nvim-lsp-file-operations Lazy spec HOT 1
- Formatter not working properly HOT 3
- Formatter not working in file .vue
- Copilot - Codeium HOT 4
- `indent-blanklink` has deprecated settings HOT 2
- Argument must be positive exception HOT 2
- Need Update
- ts_context_commentstring/internal.lua:135 error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nvim.