Compare commits
6 commits
bf20ca501e
...
1662498aa9
Author | SHA1 | Date | |
---|---|---|---|
Bruno BELANYI | 1662498aa9 | ||
Bruno BELANYI | ce65da08ef | ||
Bruno BELANYI | cf78051a84 | ||
Bruno BELANYI | 74400fc6dd | ||
Bruno BELANYI | b8c818ed5e | ||
Bruno BELANYI | 4bcc6772c5 |
|
@ -1,7 +0,0 @@
|
||||||
" Create the `b:undo_ftplugin` variable if it doesn't exist
|
|
||||||
call ftplugined#check_undo_ft()
|
|
||||||
|
|
||||||
" Add comment format
|
|
||||||
setlocal comments=b://,s1:/*,mb:*,ex:*/
|
|
||||||
setlocal commentstring=//\ %s
|
|
||||||
let b:undo_ftplugin.='|setlocal comments< commentstring<'
|
|
|
@ -1,10 +0,0 @@
|
||||||
local wk = require("which-key")
|
|
||||||
|
|
||||||
local keys = {
|
|
||||||
name = "Comment/uncomment",
|
|
||||||
c = "Current line",
|
|
||||||
u = "Uncomment the current and adjacent commented lines",
|
|
||||||
["gc"] = "Uncomment the current and adjacent commented lines",
|
|
||||||
}
|
|
||||||
|
|
||||||
wk.register(keys, { prefix = "gc" })
|
|
|
@ -40,7 +40,6 @@ in
|
||||||
lualine-lsp-progress # Show progress for LSP servers
|
lualine-lsp-progress # Show progress for LSP servers
|
||||||
|
|
||||||
# tpope essentials
|
# tpope essentials
|
||||||
vim-commentary # Easy comments
|
|
||||||
vim-eunuch # UNIX integrations
|
vim-eunuch # UNIX integrations
|
||||||
vim-fugitive # A 'git' wrapper
|
vim-fugitive # A 'git' wrapper
|
||||||
vim-git # Sane git syntax files
|
vim-git # Sane git syntax files
|
||||||
|
@ -58,7 +57,6 @@ in
|
||||||
|
|
||||||
# General enhancements
|
# General enhancements
|
||||||
vim-qf # Better quick-fix list
|
vim-qf # Better quick-fix list
|
||||||
nvim-osc52 # Send clipboard data through terminal escape for SSH
|
|
||||||
|
|
||||||
# Other wrappers
|
# Other wrappers
|
||||||
git-messenger-vim # A simple blame window
|
git-messenger-vim # A simple blame window
|
||||||
|
@ -70,7 +68,6 @@ in
|
||||||
none-ls-nvim # LSP integration for linters and formatters
|
none-ls-nvim # LSP integration for linters and formatters
|
||||||
nvim-treesitter.withAllGrammars # Better highlighting
|
nvim-treesitter.withAllGrammars # Better highlighting
|
||||||
nvim-treesitter-textobjects # More textobjects
|
nvim-treesitter-textobjects # More textobjects
|
||||||
nvim-ts-context-commentstring # Comment string in nested language blocks
|
|
||||||
plenary-nvim # 'null-ls', 'telescope' dependency
|
plenary-nvim # 'null-ls', 'telescope' dependency
|
||||||
|
|
||||||
# Completion
|
# Completion
|
||||||
|
|
|
@ -1,6 +0,0 @@
|
||||||
-- Use `bp` filetype for Blueprint files
|
|
||||||
vim.filetype.add({
|
|
||||||
extension = {
|
|
||||||
bp = "bp",
|
|
||||||
},
|
|
||||||
})
|
|
|
@ -1,7 +0,0 @@
|
||||||
-- Use GN filetype for Chromium Generate Ninja files
|
|
||||||
vim.filetype.add({
|
|
||||||
extension = {
|
|
||||||
gn = "gn",
|
|
||||||
gni = "gn",
|
|
||||||
},
|
|
||||||
})
|
|
|
@ -1,6 +0,0 @@
|
||||||
-- Kbuild is just a Makefile under a different name
|
|
||||||
vim.filetype.add({
|
|
||||||
filename = {
|
|
||||||
["Kbuild"] = "make",
|
|
||||||
},
|
|
||||||
})
|
|
|
@ -1,6 +0,0 @@
|
||||||
-- Use LaTeX filetype for TikZ files
|
|
||||||
vim.filetype.add({
|
|
||||||
extension = {
|
|
||||||
tikz = "tex",
|
|
||||||
},
|
|
||||||
})
|
|
|
@ -86,8 +86,6 @@ set mouse=
|
||||||
" Set dark mode by default
|
" Set dark mode by default
|
||||||
set background=dark
|
set background=dark
|
||||||
|
|
||||||
" 24 bit colors
|
|
||||||
set termguicolors
|
|
||||||
" Setup some overrides for gruvbox
|
" Setup some overrides for gruvbox
|
||||||
lua << EOF
|
lua << EOF
|
||||||
local gruvbox = require("gruvbox")
|
local gruvbox = require("gruvbox")
|
||||||
|
|
|
@ -1,17 +0,0 @@
|
||||||
if not require("ambroisie.utils").is_ssh() then
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
local function copy(lines, _)
|
|
||||||
require("osc52").copy(table.concat(lines, "\n"))
|
|
||||||
end
|
|
||||||
|
|
||||||
local function paste()
|
|
||||||
return { vim.fn.split(vim.fn.getreg(""), "\n"), vim.fn.getregtype("") }
|
|
||||||
end
|
|
||||||
|
|
||||||
vim.g.clipboard = {
|
|
||||||
name = "osc52",
|
|
||||||
copy = { ["+"] = copy, ["*"] = copy },
|
|
||||||
paste = { ["+"] = paste, ["*"] = paste },
|
|
||||||
}
|
|
4
overlays/gruvbox-nvim-delimiters/default.nix
Normal file
4
overlays/gruvbox-nvim-delimiters/default.nix
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
self: prev:
|
||||||
|
{
|
||||||
|
vimPlugins = prev.vimPlugins.extend (self.callPackage ./generated.nix { });
|
||||||
|
}
|
14
overlays/gruvbox-nvim-delimiters/generated.nix
Normal file
14
overlays/gruvbox-nvim-delimiters/generated.nix
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
{ fetchpatch, ... }:
|
||||||
|
|
||||||
|
_final: prev: {
|
||||||
|
gruvbox-nvim = prev.gruvbox-nvim.overrideAttrs (oa: {
|
||||||
|
patches = (oa.patches or [ ]) ++ [
|
||||||
|
# https://github.com/ellisonleao/gruvbox.nvim/pull/319
|
||||||
|
(fetchpatch {
|
||||||
|
name = "add-Delimiter-highlight-group.patch";
|
||||||
|
url = "https://github.com/ellisonleao/gruvbox.nvim/commit/20f90039564b293330bf97acc36dda8dd9e721a0.patch";
|
||||||
|
hash = "sha256-it4SbgK/2iDVyvtXBfVW2YN9DqELfKsMkuCaunERGcE=";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
});
|
||||||
|
}
|
Loading…
Reference in a new issue