Add nvim-cmp omni source for ledger files

main
Ensar Sarajčić 2022-04-29 14:39:45 +02:00
parent e032b5b803
commit a56fe50c16
2 changed files with 5 additions and 0 deletions

View File

@ -75,6 +75,7 @@ return require("packer").startup({
use("hrsh7th/cmp-buffer") -- Buffer source for nvim-cmp
use("hrsh7th/cmp-path") -- Path source for nvim-cmp
use("hrsh7th/cmp-nvim-lua") -- Nvim-Lua source for nvim-cmp
use("hrsh7th/cmp-omni") -- omnifunc source for nvim-cmp
use("hrsh7th/nvim-cmp") -- completion integration
use("jose-elias-alvarez/null-ls.nvim") -- Linting and formatting

View File

@ -56,3 +56,7 @@ cmp.setup({
{ name = "buffer" },
},
})
cmp.setup.filetype("ledger", {
sources = cmp.config.sources({ name = "omni" }),
})