-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
require "core" | ||
require "core.utils" | ||
require "core.options" | ||
|
||
vim.defer_fn(function() | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
-- n, v, i are mode names | ||
-- n, v, i, tare mode names | ||
|
||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
siduck
Author
Member
|
||
local function termcodes(str) | ||
return vim.api.nvim_replace_termcodes(str, true, true, true) | ||
|
@@ -147,7 +147,7 @@ M.lspconfig = { | |
|
||
["<leader>ra"] = { | ||
function() | ||
require("ui.renamer").open() | ||
require("nvchad.ui.renamer").open() | ||
end, | ||
" lsp rename", | ||
}, | ||
|
@@ -342,4 +342,24 @@ M.whichkey = { | |
}, | ||
} | ||
|
||
M.blankline = { | ||
n = { | ||
["<leader>bc"] = { | ||
function() | ||
local ok, start = require("indent_blankline.utils").get_current_context( | ||
vim.g.indent_blankline_context_patterns, | ||
vim.g.indent_blankline_use_treesitter_scope | ||
) | ||
|
||
if ok then | ||
vim.api.nvim_win_set_cursor(vim.api.nvim_get_current_win(), { start, 0 }) | ||
vim.cmd [[normal! _]] | ||
end | ||
end, | ||
|
||
" Jump to current_context", | ||
}, | ||
}, | ||
} | ||
|
||
return M |
6 comments
on commit 9bca3ea
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.
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.
these lines maybe not block at 0.7,why rollback ? ,and why remove multiple lsp clients display
client.server_capabilities.documentFormattingProvider = false
client.server_capabilities.documentRangeFormattingProvider = false
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.
these lines maybe not block at 0.7,why rollback ? ,and why remove multiple lsp clients display
client.server_capabilities.documentFormattingProvider = false client.server_capabilities.documentRangeFormattingProvider = false
dac05df#commitcomment-76384097
And multiple lsp clients display cluttered the statusline, user can already see it in LspInfo
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.
Ok ,i think you can remove the tow lines, let the user decide to choose which formatter
client.resolved_capabilities.document_formatting = false
client.resolved_capabilities.document_range_formatting = false
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.
@tomasky many use null-ls or other formatters here and its annoying to add that code in every lspserver's setup table to disable their inbuilt formatter so i made that as default behaviour
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.
But many users use neovim 0.8 dev,like me , although I can handle it myself
tare?