Skip to content

Commit 8d570cc

Browse files
committed
dracula and lazydev
1 parent 34e7d29 commit 8d570cc

File tree

3 files changed

+51
-2
lines changed

3 files changed

+51
-2
lines changed

init.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ vim.g.mapleader = ' '
9191
vim.g.maplocalleader = ' '
9292

9393
-- Set to true if you have a Nerd Font installed and selected in the terminal
94-
vim.g.have_nerd_font = false
94+
vim.g.have_nerd_font = true
9595

9696
-- [[ Setting options ]]
9797
-- See `:help vim.opt`
@@ -992,7 +992,7 @@ require('lazy').setup({
992992
-- This is the easiest way to modularize your config.
993993
--
994994
-- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going.
995-
-- { import = 'custom.plugins' },
995+
{ import = 'custom.plugins' },
996996
--
997997
-- For additional information with loading, sourcing and examples see `:help lazy.nvim-🔌-plugin-spec`
998998
-- Or use telescope!

lua/custom/plugins/dracula.lua

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
return {
2+
'binhtran432k/dracula.nvim',
3+
lazy = false,
4+
priority = 1000,
5+
config = function()
6+
vim.cmd.colorscheme 'dracula'
7+
end,
8+
}

lua/custom/plugins/lazydev.lua

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
return {
2+
{
3+
'folke/lazydev.nvim',
4+
ft = 'lua', -- only load on lua files
5+
opts = {
6+
library = {
7+
-- See the configuration section for more details
8+
-- Load luvit types when the `vim.uv` word is found
9+
{ path = '${3rd}/luv/library', words = { 'vim%.uv' } },
10+
},
11+
},
12+
},
13+
{ -- optional cmp completion source for require statements and module annotations
14+
'hrsh7th/nvim-cmp',
15+
opts = function(_, opts)
16+
opts.sources = opts.sources or {}
17+
table.insert(opts.sources, {
18+
name = 'lazydev',
19+
group_index = 0, -- set group index to 0 to skip loading LuaLS completions
20+
})
21+
end,
22+
},
23+
{ -- optional blink completion source for require statements and module annotations
24+
'saghen/blink.cmp',
25+
opts = {
26+
sources = {
27+
-- add lazydev to your completion providers
28+
default = { 'lazydev', 'lsp', 'path', 'snippets', 'buffer' },
29+
providers = {
30+
lazydev = {
31+
name = 'LazyDev',
32+
module = 'lazydev.integrations.blink',
33+
-- make lazydev completions top priority (see `:h blink.cmp`)
34+
score_offset = 100,
35+
},
36+
},
37+
},
38+
},
39+
},
40+
-- { "folke/neodev.nvim", enabled = false }, -- make sure to uninstall or disable neodev.nvim
41+
}

0 commit comments

Comments
 (0)