mirror of
https://github.com/kmein/niveum
synced 2026-03-16 10:11:08 +01:00
vim: enable copilot
This commit is contained in:
@@ -314,6 +314,7 @@
|
|||||||
// flake-utils.lib.eachSystem [flake-utils.lib.system.x86_64-linux flake-utils.lib.system.x86_64-darwin flake-utils.lib.system.aarch64-linux] (system: let
|
// flake-utils.lib.eachSystem [flake-utils.lib.system.x86_64-linux flake-utils.lib.system.x86_64-darwin flake-utils.lib.system.aarch64-linux] (system: let
|
||||||
pkgs = import nixpkgs {
|
pkgs = import nixpkgs {
|
||||||
inherit system;
|
inherit system;
|
||||||
|
config.allowUnfree = true;
|
||||||
overlays = [
|
overlays = [
|
||||||
nur.overlays.default
|
nur.overlays.default
|
||||||
(self: super: {
|
(self: super: {
|
||||||
|
|||||||
@@ -124,3 +124,16 @@ set complete+=kspell
|
|||||||
let g:pandoc#syntax#conceal#use = 0
|
let g:pandoc#syntax#conceal#use = 0
|
||||||
let g:pandoc#modules#disabled = []
|
let g:pandoc#modules#disabled = []
|
||||||
let g:pandoc#spell#default_langs = ['en', 'de']
|
let g:pandoc#spell#default_langs = ['en', 'de']
|
||||||
|
|
||||||
|
|
||||||
|
" Enable Copilot for specific filetypes
|
||||||
|
" See: https://github.com/github/copilot.vim/blob/1a55183ef9347d6f420406a3746474b6b9fb9ef5/doc/copilot.txt#L46
|
||||||
|
let g:copilot_filetypes = {
|
||||||
|
\ 'python': v:true
|
||||||
|
\}
|
||||||
|
" Disable Copilot for files larger than 100kb
|
||||||
|
autocmd BufReadPre *
|
||||||
|
\ let f=getfsize(expand("<afile>"))
|
||||||
|
\ | if f > 100000 || f == -2
|
||||||
|
\ | let b:copilot_enabled = v:false
|
||||||
|
\ | endif
|
||||||
|
|||||||
@@ -40,6 +40,8 @@
|
|||||||
|
|
||||||
editorconfig-vim
|
editorconfig-vim
|
||||||
|
|
||||||
|
copilot-vim
|
||||||
|
|
||||||
fzf-vim
|
fzf-vim
|
||||||
fzfWrapper
|
fzfWrapper
|
||||||
supertab
|
supertab
|
||||||
|
|||||||
Reference in New Issue
Block a user