-
-
Notifications
You must be signed in to change notification settings - Fork 198
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fact(highlight): ignore undesired highlights from vim side instead of…
… vscode side (#1334) fact(highlight): ignore undesired highlights from vim side instead of vscode side (#1334) BREAKING-CHANGE: `"vscode-neovim.highlightGroups.ignoreHighlights"` is removed, ignore syntax groups from nvim instead by using `hi MySyntaxGroup NONE`.
- Loading branch information
Showing
10 changed files
with
120 additions
and
426 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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 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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
require("vscode.defaults") | ||
require("vscode.cursor") | ||
|
||
local M = {} | ||
|
This file contains 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,30 @@ | ||
-- customise statusbar | ||
vim.opt.shortmess = "filnxtToOFI" | ||
|
||
--- Turn on auto-indenting | ||
vim.opt.autoindent = true | ||
vim.opt.smartindent = true | ||
|
||
--- split/nosplit doesn't work currently, see https://github.com/asvetliakov/vscode-neovim/issues/329 | ||
vim.opt.inccommand = "" | ||
|
||
-- disable matchparen because we don't need it | ||
vim.g.loaded_matchparen = 1 | ||
|
||
-- syntax groups that are hidden by default but can be overridden by `vscode-neovim.highlightGroups.highlights` or init.vim config (inside ColorScheme au) | ||
local function apply_highlights() | ||
vim.api.nvim_set_hl(0, "Normal", {}) | ||
vim.api.nvim_set_hl(0, "NormalNC", {}) | ||
vim.api.nvim_set_hl(0, "NormalFloat", {}) | ||
vim.api.nvim_set_hl(0, "NonText", {}) | ||
vim.api.nvim_set_hl(0, "Visual", {}) | ||
vim.api.nvim_set_hl(0, "VisualNOS", {}) | ||
vim.api.nvim_set_hl(0, "Substitute", {}) | ||
vim.api.nvim_set_hl(0, "Whitespace", {}) | ||
|
||
-- make cursor visible for plugins that use fake cursor | ||
vim.api.nvim_set_hl(0, 'Cursor', { reverse = true }) | ||
end | ||
|
||
apply_highlights() | ||
vim.api.nvim_create_autocmd({ "FileType", "ColorScheme" }, { callback = apply_highlights }) |
This file contains 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 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
Oops, something went wrong.