Upgrade tabby plugin
This commit is contained in:
parent
49f97d3b12
commit
5b4c9c5bf5
4 changed files with 41 additions and 18 deletions
|
@ -28,6 +28,7 @@
|
||||||
- network-manager-gnome
|
- network-manager-gnome
|
||||||
- network-manager-config-connectivity-debian
|
- network-manager-config-connectivity-debian
|
||||||
- nextcloud-desktop
|
- nextcloud-desktop
|
||||||
|
- nodejs
|
||||||
- npm
|
- npm
|
||||||
- pass
|
- pass
|
||||||
- pavucontrol
|
- pavucontrol
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
vars:
|
vars:
|
||||||
uid: "{{ lookup('env','USER') }}"
|
uid: "{{ lookup('env','USER') }}"
|
||||||
LV_BRANCH: release-1.3/neovim-0.9
|
LV_BRANCH: release-1.3/neovim-0.9
|
||||||
tabby_password: "{{ lookup('ansible.builtin.pipe','pass show tabby-lab.sunet.se/tabby') }}"
|
tabby_token: "{{ lookup('ansible.builtin.pipe','pass show tabby-lab.sunet.se/tabby-token') }}"
|
||||||
connection: local
|
connection: local
|
||||||
become: false
|
become: false
|
||||||
tasks:
|
tasks:
|
||||||
|
@ -80,14 +80,10 @@
|
||||||
owner: '{{ uid }}'
|
owner: '{{ uid }}'
|
||||||
group: '{{ uid }}'
|
group: '{{ uid }}'
|
||||||
mode: '0644'
|
mode: '0644'
|
||||||
- name: Create sources dir
|
- name: Install tabby config
|
||||||
ansible.builtin.file:
|
ansible.builtin.template:
|
||||||
dest: /home/{{ uid }}/sources
|
src: ../templates/config.toml.j2
|
||||||
state: directory
|
dest: /home/{{ uid }}/.tabby-client/agent/config.toml
|
||||||
when: not have_nvim.stat.exists
|
owner: '{{ uid }}'
|
||||||
- name: Get tabby plugin
|
group: '{{ uid }}'
|
||||||
ansible.builtin.command:
|
mode: '0644'
|
||||||
chdir: /home/{{ uid }}/sources/
|
|
||||||
cmd: git clone https://github.com/TabbyML/tabby.git
|
|
||||||
creates: /home/{{ uid }}/sources/tabby
|
|
||||||
when: not have_nvim.stat.exists
|
|
||||||
|
|
|
@ -128,8 +128,8 @@ formatters.setup {
|
||||||
lvim.plugins = {
|
lvim.plugins = {
|
||||||
{
|
{
|
||||||
"rodjek/vim-puppet",
|
"rodjek/vim-puppet",
|
||||||
'tpope/vim-surround',
|
"tpope/vim-surround",
|
||||||
{ 'tabbyml/tabby', name = 'tabby', dir = '~/sources/tabby/clients/vim', enabled = true },
|
"TabbyML/vim-tabby",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -151,8 +151,6 @@ vim.api.nvim_create_autocmd("BufReadPost", {
|
||||||
-- })
|
-- })
|
||||||
|
|
||||||
|
|
||||||
vim.g.tabby_server_url = 'https://tabby:{{ tabby_password }}@tabby-lab.sunet.se'
|
vim.g.tabby_keybinding_accept = '<C-Right>'
|
||||||
-- vim.g.tabby_server_url = 'https://tabby-test.sunet.se'
|
vim.g.tabby_keybinding_trigger_or_dismiss = '<C-Left>'
|
||||||
vim.g.tabby_accept_binding = '<C-Right>'
|
|
||||||
vim.g.tabby_dismiss_binding = '<C-Left>'
|
|
||||||
vim.g.tabby_suggestion_delay = 100
|
vim.g.tabby_suggestion_delay = 100
|
||||||
|
|
28
templates/config.toml.j2
Normal file
28
templates/config.toml.j2
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
## Tabby agent configuration file
|
||||||
|
|
||||||
|
## You can uncomment any block to enable settings.
|
||||||
|
## Configurations in this file has lower priority than in IDE settings.
|
||||||
|
|
||||||
|
## Server
|
||||||
|
## You can set the server endpoint here.
|
||||||
|
# [server]
|
||||||
|
# endpoint = "http://localhost:8080" # http or https URL
|
||||||
|
|
||||||
|
## You can add custom request headers, e.g. for authentication.
|
||||||
|
# [server.requestHeaders]
|
||||||
|
# Authorization = "Bearer eyJhbGciOiJ..........."
|
||||||
|
|
||||||
|
## Logs
|
||||||
|
## You can set the log level here. The log file is located at ~/.tabby-client/agent/logs/.
|
||||||
|
# [logs]
|
||||||
|
# level = "silent" # or "error" or "debug"
|
||||||
|
|
||||||
|
## Anonymous usage tracking
|
||||||
|
## You can disable anonymous usage tracking here.
|
||||||
|
# [anonymousUsageTracking]
|
||||||
|
# disable = false # set to true to disable
|
||||||
|
|
||||||
|
[server]
|
||||||
|
endpoint = "https://tabby-lab.sunet.se:443"
|
||||||
|
[server.requestHeaders]
|
||||||
|
Authorization = "Basic {{ tabby_token }}"
|
Loading…
Add table
Reference in a new issue