fix
This commit is contained in:
parent
41981bc6d5
commit
1a95e151db
7
init.lua
7
init.lua
|
|
@ -3,8 +3,9 @@
|
||||||
Module: none — Neovim executes this file before any Lua `require`.
|
Module: none — Neovim executes this file before any Lua `require`.
|
||||||
|
|
||||||
Purpose
|
Purpose
|
||||||
Single entrypoint for your configuration. Everything else lives under
|
Single entrypoint for your configuration. Core Lua lives under
|
||||||
`lua/` so this file stays small and easy to skim.
|
`lua/config/` (options, keymaps, lazy.nvim, plugin specs); personal extras
|
||||||
|
under `lua/custom/`.
|
||||||
|
|
||||||
Rationale
|
Rationale
|
||||||
A minimal root `init.lua` avoids duplicating logic that belongs in modular
|
A minimal root `init.lua` avoids duplicating logic that belongs in modular
|
||||||
|
|
@ -13,4 +14,4 @@
|
||||||
See `:help config` and `:help lua-require`.
|
See `:help config` and `:help lua-require`.
|
||||||
]]
|
]]
|
||||||
|
|
||||||
require 'plugins.kickstart'
|
require 'config'
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,9 @@ local rtp = vim.opt.rtp
|
||||||
rtp:prepend(lazypath)
|
rtp:prepend(lazypath)
|
||||||
|
|
||||||
require('lazy').setup(require 'config.plugins.spec', {
|
require('lazy').setup(require 'config.plugins.spec', {
|
||||||
|
-- No luarocks/hererocks: avoids :checkhealth lazy ERROR when hererocks is missing.
|
||||||
|
-- Re-enable if you install a plugin that requires luarocks (:help lazy.nvim-rocks).
|
||||||
|
rocks = { enabled = false },
|
||||||
ui = {
|
ui = {
|
||||||
icons = vim.g.have_nerd_font and {} or {
|
icons = vim.g.have_nerd_font and {} or {
|
||||||
cmd = '⌘',
|
cmd = '⌘',
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,13 @@
|
||||||
See `:help vim.o`, `:help option-list`, `:help 'clipboard'`.
|
See `:help vim.o`, `:help option-list`, `:help 'clipboard'`.
|
||||||
]]
|
]]
|
||||||
|
|
||||||
|
-- Legacy providers (optional): silence :checkhealth vim.provider if you do not
|
||||||
|
-- use :python, :perl, or Node-driven remote plugins. Lua-only configs can leave these off.
|
||||||
|
vim.g.loaded_node_provider = 0
|
||||||
|
vim.g.loaded_perl_provider = 0
|
||||||
|
vim.g.loaded_python3_provider = 0
|
||||||
|
vim.g.loaded_ruby_provider = 0
|
||||||
|
|
||||||
vim.o.mouse = 'a'
|
vim.o.mouse = 'a'
|
||||||
|
|
||||||
vim.o.showmode = false
|
vim.o.showmode = false
|
||||||
|
|
|
||||||
|
|
@ -95,14 +95,10 @@ return {
|
||||||
|
|
||||||
snippets = { preset = 'luasnip' },
|
snippets = { preset = 'luasnip' },
|
||||||
|
|
||||||
-- Blink.cmp includes an optional, recommended rust fuzzy matcher,
|
-- Rust fuzzy matcher (prebuilt binary on supported platforms). Fixes
|
||||||
-- which automatically downloads a prebuilt binary when enabled.
|
-- :checkhealth blink “fuzzy lib is not downloaded” when using pure Lua.
|
||||||
--
|
-- See :h blink-cmp-config-fuzzy
|
||||||
-- By default, we use the Lua implementation instead, but you may enable
|
fuzzy = { implementation = 'prefer_rust_with_warning' },
|
||||||
-- the rust implementation via `'prefer_rust_with_warning'`
|
|
||||||
--
|
|
||||||
-- See :h blink-cmp-config-fuzzy for more information
|
|
||||||
fuzzy = { implementation = 'lua' },
|
|
||||||
|
|
||||||
-- Shows a signature help window while you type arguments for a function
|
-- Shows a signature help window while you type arguments for a function
|
||||||
signature = { enabled = true },
|
signature = { enabled = true },
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue