1
0
Fork 0

nvim: use otter
All checks were successful
Build / build-amd64-linux (push) Successful in 34s
Build / build-arm64-linux (push) Successful in 1m34s

This commit is contained in:
Daniel Kempkens 2024-06-25 09:24:27 +02:00
parent c622c7824e
commit 60eec41447
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM
5 changed files with 38 additions and 4 deletions

View file

@ -6,7 +6,8 @@
(let [maybe-tabnine (if (pcall require :cmp_tabnine.config)
[{:name :cmp_tabnine}]
[])]
(vim.list_extend (vim.list_extend [{:name :nvim_lsp}] maybe-tabnine)
(vim.list_extend (vim.list_extend [{:name :nvim_lsp} {:name :otter}]
maybe-tabnine)
[{:name :async_path} {:name :luasnip}])))
(fn comparator-list []

View file

@ -0,0 +1,14 @@
(let [otter (require :otter)
languages [:bash :lua]
completion true
diagnostics true
tsquery nil
enabled-filetypes [:elixir :nix]
augroup (vim.api.nvim_create_augroup :NifocOtter {:clear true})
aucmd vim.api.nvim_create_autocmd]
(each [_ ft (pairs enabled-filetypes)]
(aucmd :FileType {:pattern ft
:callback #(otter.activate languages completion
diagnostics tsquery)
:group augroup
:desc "Setup Otter"})))

View file

@ -32,6 +32,7 @@ in
elixir-ls
fennel-ls
#lexical
lua-language-server
nil
nodePackages.dockerfile-language-server-nodejs
nodePackages.svelte-language-server
@ -162,6 +163,12 @@ in
type = "fennel";
}
{
plugin = otter-nvim;
config = builtins.readFile ../../config/nvim/plugins/otter.fnl;
type = "fennel";
}
# Linter
{
plugin = nvim-lint;

View file

@ -40,7 +40,7 @@ in
};
wezterm-nvim = buildVimPlugin {
pname = "wezterm.nvim";
version = "2024-06-01";
version = "2024-06-02";
src = fetchFromGitHub {
owner = "willothy";
repo = "wezterm.nvim";
@ -128,7 +128,7 @@ in
};
rainbow-delimiters-nvim = buildVimPlugin {
pname = "rainbow-delimiters.nvim";
version = "2024-06-13";
version = "2024-06-14";
src = fetchFromGitHub {
owner = "HiPhish";
repo = "rainbow-delimiters.nvim";
@ -247,6 +247,17 @@ in
fetchSubmodules = false;
};
};
otter-nvim = buildVimPlugin {
pname = "otter.nvim";
version = "2024-06-09";
src = fetchFromGitHub {
owner = "jmbuhr";
repo = "otter.nvim";
rev = "cbb1be0586eae18cbea38ada46af428d2bebf81a";
sha256 = "085lx5z7abbn7rq23pma5xmymzgjajp0slg0g42wafxpn7rby9kv";
fetchSubmodules = false;
};
};
nvim-lint = buildVimPlugin {
pname = "nvim-lint";
version = "2024-06-07";
@ -370,7 +381,7 @@ in
};
nvim-autopairs = buildVimPlugin {
pname = "nvim-autopairs";
version = "2024-05-19";
version = "2024-05-20";
src = fetchFromGitHub {
owner = "windwp";
repo = "nvim-autopairs";

View file

@ -26,6 +26,7 @@
- src: onsails/lspkind.nvim
- src: SmiteshP/nvim-navic
- src: RRethy/vim-illuminate
- src: jmbuhr/otter.nvim
# Linter
- src: mfussenegger/nvim-lint
# Comments