nvim: use otter
This commit is contained in:
parent
c622c7824e
commit
60eec41447
5 changed files with 38 additions and 4 deletions
|
@ -6,7 +6,8 @@
|
||||||
(let [maybe-tabnine (if (pcall require :cmp_tabnine.config)
|
(let [maybe-tabnine (if (pcall require :cmp_tabnine.config)
|
||||||
[{:name :cmp_tabnine}]
|
[{: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}])))
|
[{:name :async_path} {:name :luasnip}])))
|
||||||
|
|
||||||
(fn comparator-list []
|
(fn comparator-list []
|
||||||
|
|
14
home/config/nvim/plugins/otter.fnl
Normal file
14
home/config/nvim/plugins/otter.fnl
Normal 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"})))
|
|
@ -32,6 +32,7 @@ in
|
||||||
elixir-ls
|
elixir-ls
|
||||||
fennel-ls
|
fennel-ls
|
||||||
#lexical
|
#lexical
|
||||||
|
lua-language-server
|
||||||
nil
|
nil
|
||||||
nodePackages.dockerfile-language-server-nodejs
|
nodePackages.dockerfile-language-server-nodejs
|
||||||
nodePackages.svelte-language-server
|
nodePackages.svelte-language-server
|
||||||
|
@ -162,6 +163,12 @@ in
|
||||||
type = "fennel";
|
type = "fennel";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
plugin = otter-nvim;
|
||||||
|
config = builtins.readFile ../../config/nvim/plugins/otter.fnl;
|
||||||
|
type = "fennel";
|
||||||
|
}
|
||||||
|
|
||||||
# Linter
|
# Linter
|
||||||
{
|
{
|
||||||
plugin = nvim-lint;
|
plugin = nvim-lint;
|
||||||
|
|
|
@ -40,7 +40,7 @@ in
|
||||||
};
|
};
|
||||||
wezterm-nvim = buildVimPlugin {
|
wezterm-nvim = buildVimPlugin {
|
||||||
pname = "wezterm.nvim";
|
pname = "wezterm.nvim";
|
||||||
version = "2024-06-01";
|
version = "2024-06-02";
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "willothy";
|
owner = "willothy";
|
||||||
repo = "wezterm.nvim";
|
repo = "wezterm.nvim";
|
||||||
|
@ -128,7 +128,7 @@ in
|
||||||
};
|
};
|
||||||
rainbow-delimiters-nvim = buildVimPlugin {
|
rainbow-delimiters-nvim = buildVimPlugin {
|
||||||
pname = "rainbow-delimiters.nvim";
|
pname = "rainbow-delimiters.nvim";
|
||||||
version = "2024-06-13";
|
version = "2024-06-14";
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "HiPhish";
|
owner = "HiPhish";
|
||||||
repo = "rainbow-delimiters.nvim";
|
repo = "rainbow-delimiters.nvim";
|
||||||
|
@ -247,6 +247,17 @@ in
|
||||||
fetchSubmodules = false;
|
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 {
|
nvim-lint = buildVimPlugin {
|
||||||
pname = "nvim-lint";
|
pname = "nvim-lint";
|
||||||
version = "2024-06-07";
|
version = "2024-06-07";
|
||||||
|
@ -370,7 +381,7 @@ in
|
||||||
};
|
};
|
||||||
nvim-autopairs = buildVimPlugin {
|
nvim-autopairs = buildVimPlugin {
|
||||||
pname = "nvim-autopairs";
|
pname = "nvim-autopairs";
|
||||||
version = "2024-05-19";
|
version = "2024-05-20";
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "windwp";
|
owner = "windwp";
|
||||||
repo = "nvim-autopairs";
|
repo = "nvim-autopairs";
|
||||||
|
|
|
@ -26,6 +26,7 @@
|
||||||
- src: onsails/lspkind.nvim
|
- src: onsails/lspkind.nvim
|
||||||
- src: SmiteshP/nvim-navic
|
- src: SmiteshP/nvim-navic
|
||||||
- src: RRethy/vim-illuminate
|
- src: RRethy/vim-illuminate
|
||||||
|
- src: jmbuhr/otter.nvim
|
||||||
# Linter
|
# Linter
|
||||||
- src: mfussenegger/nvim-lint
|
- src: mfussenegger/nvim-lint
|
||||||
# Comments
|
# Comments
|
||||||
|
|
Loading…
Reference in a new issue