nvim-config/fnl/init.fnl

50 lines
2.4 KiB
Plaintext
Raw Normal View History

2023-07-28 06:29:05 +00:00
;; Package Management via lazy.nvim
2023-07-29 15:21:07 +00:00
(let [lazy (require :lazy)
lazypath (.. (vim.fn.stdpath :data) :/lazy/lazy.nvim)]
(if (not (vim.loop.fs_stat lazypath))
(vim.fn.system [:git
:clone
"--filter=blob:none"
"https://github.com/folke/lazy.nvim.git"
:--branch=stable
lazypath]))
(vim.opt.rtp:prepend lazypath)
(lazy.setup ["https://github.com/rktjmp/hotpot.nvim"
{:url "https://github.com/nvim-telescope/telescope.nvim"
:tag :0.1.2
:dependencies [:nvim-lua/plenary.nvim]}
{:url "https://github.com/nvim-telescope/telescope-fzf-native.nvim"
:build (.. "cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release"
" && cmake --build build --config Release"
" && cmake --install build --prefix build")}
{:url "https://github.com/nvim-treesitter/nvim-treesitter"
:build ":TSUpdate"}
{:url "https://github.com/neovim/nvim-lspconfig"
:dependencies ["https://github.com/williamboman/mason.nvim"
:williamboman/mason-lspconfig.nvim
{:url "https://github.com/j-hui/fidget.nvim"
:tag :legacy
:opts {}}
:folke/neodev.nvim]}
{:url "https://github.com/hrsh7th/nvim-cmp"
:dependencies ["https://github.com/hrsh7th/cmp-nvim-lsp"
"https://github.com/hrsh7th/cmp-buffer"
"https://github.com/hrsh7th/cmp-path"
"https://github.com/hrsh7th/cmp-cmdline"
"https://github.com/hrsh7th/cmp-cmdline"]}
{:url "https://github.com/L3MON4D3/LuaSnip"
:dependencies ["https://github.com/saadparwaiz1/cmp_luasnip"
"https://github.com/rafamadriz/friendly-snippets"]}
"https://github.com/sainnhe/everforest"]))
2023-07-28 06:29:05 +00:00
2023-07-29 15:21:07 +00:00
(let [telescope (require :telescope)]
2023-07-28 06:29:05 +00:00
(pcall (telescope.load_extension :fzf)))
2023-07-28 14:26:18 +00:00
(require :setup-treesitter)
(require :setup-mason)
(require :setup-cmp)
(let [personalize (require :personalize)]
(personalize.keymap)
(personalize.options))