Skip to content

Commit 067792b

Browse files
committed
Add nvim-colorizer Plugin.
1 parent 828d0fa commit 067792b

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

init.lua

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,8 @@ require('lazy').setup({
231231
-- NOTE: Plugins can be added with a link (or for a github repo: 'owner/repo' link).
232232
'tpope/vim-sleuth', -- Detect tabstop and shiftwidth automatically
233233

234+
{ 'norcalli/nvim-colorizer.lua' },
235+
234236
-- NOTE: Plugins can also be added by using a table,
235237
-- with the first argument being the link and the following
236238
-- keys can be used to configure plugin behavior/loading/etc.
@@ -938,7 +940,7 @@ require('lazy').setup({
938940
-- This is the easiest way to modularize your config.
939941
--
940942
-- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going.
941-
-- { import = 'custom.plugins' },
943+
{ import = 'custom.plugins' },
942944
--
943945
-- For additional information with loading, sourcing and examples see `:help lazy.nvim-🔌-plugin-spec`
944946
-- Or use telescope!
@@ -966,11 +968,19 @@ require('lazy').setup({
966968
},
967969
})
968970

969-
require('lspconfig').pyright.setup {
971+
require('colorizer').setup()
972+
973+
local lspconfig = require 'lspconfig'
974+
975+
lspconfig['pyright'].setup {
970976
trace = 'verbose',
971977
}
972-
require('lspconfig').denols.setup {
978+
979+
lspconfig['denols'].setup {
973980
trace = 'verbose',
981+
settings = {
982+
lint = false,
983+
},
974984
}
975985

976986
vim.g.markdown_fenced_languages = {
@@ -984,5 +994,6 @@ vim.api.nvim_create_autocmd('BufWritePost', {
984994
vim.cmd '!kill -s USR1 -- $(pidof sxhkd)'
985995
end,
986996
})
997+
987998
-- The line beneath this is called `modeline`. See `:help modeline`
988999
-- vim: ts=2 sts=2 sw=2 et

0 commit comments

Comments
 (0)