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)
|
||||
[{: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 []
|
||||
|
|
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
|
||||
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;
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue