Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
neovimconfig
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
codecraft
neovimconfig
Commits
18dfa001
Commit
18dfa001
authored
1 year ago
by
codecraft
Browse files
Options
Downloads
Patches
Plain Diff
Add stylua lua formatter
parent
59504ebe
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
init.lua
+27
-27
27 additions, 27 deletions
init.lua
lua/codecraft/core/colorschemeconfig.lua
+115
-115
115 additions, 115 deletions
lua/codecraft/core/colorschemeconfig.lua
lua/codecraft/plugin/lsp/null-ls.lua
+2
-0
2 additions, 0 deletions
lua/codecraft/plugin/lsp/null-ls.lua
with
144 additions
and
142 deletions
init.lua
+
27
−
27
View file @
18dfa001
-- leader
vim
.
g
.
mapleader
=
' '
vim
.
g
.
maplocalleader
=
' '
-- leader
vim
.
g
.
mapleader
=
" "
vim
.
g
.
maplocalleader
=
" "
-- load locale
require
(
'
codecraft.vimlocale
'
)
require
(
"
codecraft.vimlocale
"
)
-- load plugins
require
(
'
codecraft.plugin-setup
'
)
require
(
"
codecraft.plugin-setup
"
)
-- core codecrafturation
require
(
'
codecraft.core.options
'
)
require
(
'
codecraft.core.keymaps
'
)
require
(
'
codecraft.core.colorschemeconfig
'
)
require
(
'
codecraft.core.colorscheme
'
)
require
(
"
codecraft.core.options
"
)
require
(
"
codecraft.core.keymaps
"
)
require
(
"
codecraft.core.colorschemeconfig
"
)
require
(
"
codecraft.core.colorscheme
"
)
-- plugin codecrafturation
require
(
'
codecraft.plugin.bufferline
'
)
require
(
'
codecraft.plugin.nvimtree
'
)
require
(
'
codecraft.plugin.gitsigns
'
)
require
(
'
codecraft.plugin.lualine
'
)
require
(
'
codecraft.plugin.telescope
'
)
require
(
'
codecraft.plugin.treesitter
'
)
require
(
'
codecraft.plugin.indent-comments
'
)
require
(
'
codecraft.plugin.neodev
'
)
require
(
'
codecraft.plugin.tmux-nvim-navigation
'
)
require
(
'
codecraft.plugin.projects
'
)
require
(
"
codecraft.plugin.bufferline
"
)
require
(
"
codecraft.plugin.nvimtree
"
)
require
(
"
codecraft.plugin.gitsigns
"
)
require
(
"
codecraft.plugin.lualine
"
)
require
(
"
codecraft.plugin.telescope
"
)
require
(
"
codecraft.plugin.treesitter
"
)
require
(
"
codecraft.plugin.indent-comments
"
)
require
(
"
codecraft.plugin.neodev
"
)
require
(
"
codecraft.plugin.tmux-nvim-navigation
"
)
require
(
"
codecraft.plugin.projects
"
)
-- LSP
require
(
'
codecraft.plugin.lsp.navic
'
)
require
(
'
codecraft.plugin.lsp.lsp
'
)
require
(
'
codecraft.plugin.lsp.completion
'
)
require
(
'
codecraft.plugin.lsp.null-ls
'
)
require
(
'
codecraft.plugin.lsp.rust-tools
'
)
require
(
"
codecraft.plugin.lsp.navic
"
)
require
(
"
codecraft.plugin.lsp.lsp
"
)
require
(
"
codecraft.plugin.lsp.completion
"
)
require
(
"
codecraft.plugin.lsp.null-ls
"
)
require
(
"
codecraft.plugin.lsp.rust-tools
"
)
-- DAP
require
(
'
codecraft.plugin.dap.dap
'
)
require
(
'
codecraft.plugin.dap.virtual-text
'
)
require
(
'
codecraft.plugin.dap.dapui
'
)
require
(
"
codecraft.plugin.dap.dap
"
)
require
(
"
codecraft.plugin.dap.virtual-text
"
)
require
(
"
codecraft.plugin.dap.dapui
"
)
This diff is collapsed.
Click to expand it.
lua/codecraft/core/colorschemeconfig.lua
+
115
−
115
View file @
18dfa001
-- ONEDARK
require
(
'
onedark
'
).
setup
{
-- Main options --
style
=
'
dark
'
,
-- Default theme style. Choose between 'dark', 'darker', 'cool', 'deep', 'warm', 'warmer' and 'light'
transparent
=
true
,
-- Show/hide background
term_colors
=
false
,
-- Change terminal color as per the selected theme style
ending_tildes
=
false
,
-- Show the end-of-buffer tildes. By default they are hidden
cmp_itemkind_reverse
=
false
,
-- reverse item kind highlights in cmp menu
require
(
"
onedark
"
).
setup
(
{
-- Main options --
style
=
"
dark
"
,
-- Default theme style. Choose between 'dark', 'darker', 'cool', 'deep', 'warm', 'warmer' and 'light'
transparent
=
true
,
-- Show/hide background
term_colors
=
false
,
-- Change terminal color as per the selected theme style
ending_tildes
=
false
,
-- Show the end-of-buffer tildes. By default they are hidden
cmp_itemkind_reverse
=
false
,
-- reverse item kind highlights in cmp menu
-- toggle theme style ---
toggle_style_key
=
nil
,
-- keybind to toggle theme style. Leave it nil to disable it, or set it to a string, for example "<leader>ts"
toggle_style_list
=
{
'
dark
'
,
'
darker
'
,
'
cool
'
,
'
deep
'
,
'
warm
'
,
'
warmer
'
,
'
light
'
},
-- List of styles to toggle between
-- toggle theme style ---
toggle_style_key
=
nil
,
-- keybind to toggle theme style. Leave it nil to disable it, or set it to a string, for example "<leader>ts"
toggle_style_list
=
{
"
dark
"
,
"
darker
"
,
"
cool
"
,
"
deep
"
,
"
warm
"
,
"
warmer
"
,
"
light
"
},
-- List of styles to toggle between
-- Change code style ---
-- Options are italic, bold, underline, none
-- You can configure multiple style with comma seperated, For e.g., keywords = 'italic,bold'
code_style
=
{
comments
=
'
italic
'
,
keywords
=
'
none
'
,
functions
=
'
none
'
,
strings
=
'
none
'
,
variables
=
'
none
'
},
-- Change code style ---
-- Options are italic, bold, underline, none
-- You can configure multiple style with comma seperated, For e.g., keywords = 'italic,bold'
code_style
=
{
comments
=
"
italic
"
,
keywords
=
"
none
"
,
functions
=
"
none
"
,
strings
=
"
none
"
,
variables
=
"
none
"
,
},
-- Lualine options --
lualine
=
{
transparent
=
true
,
-- lualine center bar transparency
},
-- Lualine options --
lualine
=
{
transparent
=
true
,
-- lualine center bar transparency
},
-- Custom Highlights --
colors
=
{},
-- Override default colors
highlights
=
{},
-- Override highlight groups
-- Custom Highlights --
colors
=
{},
-- Override default colors
highlights
=
{},
-- Override highlight groups
-- Plugins Config --
diagnostics
=
{
darker
=
true
,
-- darker colors for diagnostic
undercurl
=
true
,
-- use undercurl instead of underline for diagnostics
background
=
false
,
-- use background color for virtual text
},
}
-- Plugins Config --
diagnostics
=
{
darker
=
true
,
-- darker colors for diagnostic
undercurl
=
true
,
-- use undercurl instead of underline for diagnostics
background
=
false
,
-- use background color for virtual text
},
}
)
-- CATPUCCIN
require
(
"catppuccin"
).
setup
({
flavour
=
"mocha"
,
-- latte, frappe, macchiato, mocha
background
=
{
-- :h background
light
=
"latte"
,
dark
=
"mocha"
,
},
transparent_background
=
true
,
show_end_of_buffer
=
false
,
-- show the '~' characters after the end of buffers
term_colors
=
false
,
dim_inactive
=
{
enabled
=
false
,
shade
=
"dark"
,
percentage
=
0
.
15
,
},
no_italic
=
false
,
-- Force no italic
no_bold
=
false
,
-- Force no bold
styles
=
{
comments
=
{
"italic"
},
conditionals
=
{
"italic"
},
loops
=
{},
functions
=
{},
keywords
=
{},
strings
=
{},
variables
=
{},
numbers
=
{},
booleans
=
{},
properties
=
{},
types
=
{},
operators
=
{},
},
color_overrides
=
{},
custom_highlights
=
{},
integrations
=
{
cmp
=
true
,
gitsigns
=
true
,
nvimtree
=
true
,
telescope
=
true
,
notify
=
false
,
mini
=
false
,
-- For more plugins integrations please scroll down (https://github.com/catppuccin/nvim#integrations)
},
flavour
=
"mocha"
,
-- latte, frappe, macchiato, mocha
background
=
{
-- :h background
light
=
"latte"
,
dark
=
"mocha"
,
},
transparent_background
=
true
,
show_end_of_buffer
=
false
,
-- show the '~' characters after the end of buffers
term_colors
=
false
,
dim_inactive
=
{
enabled
=
false
,
shade
=
"dark"
,
percentage
=
0
.
15
,
},
no_italic
=
false
,
-- Force no italic
no_bold
=
false
,
-- Force no bold
styles
=
{
comments
=
{
"italic"
},
conditionals
=
{
"italic"
},
loops
=
{},
functions
=
{},
keywords
=
{},
strings
=
{},
variables
=
{},
numbers
=
{},
booleans
=
{},
properties
=
{},
types
=
{},
operators
=
{},
},
color_overrides
=
{},
custom_highlights
=
{},
integrations
=
{
cmp
=
true
,
gitsigns
=
true
,
nvimtree
=
true
,
telescope
=
true
,
notify
=
false
,
mini
=
false
,
-- For more plugins integrations please scroll down (https://github.com/catppuccin/nvim#integrations)
},
})
-- DRACULA
require
(
'
dracula
'
).
setup
({
-- customize dracula color palette
colors
=
{
bg
=
"#282A36"
,
fg
=
"#F8F8F2"
,
selection
=
"#44475A"
,
comment
=
"#6272A4"
,
red
=
"#FF5555"
,
orange
=
"#FFB86C"
,
yellow
=
"#F1FA8C"
,
green
=
"#50fa7b"
,
purple
=
"#BD93F9"
,
cyan
=
"#8BE9FD"
,
pink
=
"#FF79C6"
,
bright_red
=
"#FF6E6E"
,
bright_green
=
"#69FF94"
,
bright_yellow
=
"#FFFFA5"
,
bright_blue
=
"#D6ACFF"
,
bright_magenta
=
"#FF92DF"
,
bright_cyan
=
"#A4FFFF"
,
bright_white
=
"#FFFFFF"
,
menu
=
"#21222C"
,
visual
=
"#3E4452"
,
gutter_fg
=
"#4B5263"
,
nontext
=
"#3B4048"
,
},
-- show the '~' characters after the end of buffers
show_end_of_buffer
=
false
,
-- default false
-- use transparent background
transparent_bg
=
true
,
-- default false
-- set custom lualine background color
lualine_bg_color
=
nil
,
-- default nil
-- set italic comment
italic_comment
=
true
,
-- default false
-- overrides the default highlights see `:h synIDattr`
overrides
=
{
-- Examples
-- NonText = { fg = dracula.colors().white }, -- set NonText fg to white
-- NvimTreeIndentMarker = { link = "NonText" }, -- link to NonText highlight
-- Nothing = {} -- clear highlight of Nothing
},
require
(
"
dracula
"
).
setup
({
-- customize dracula color palette
colors
=
{
bg
=
"#282A36"
,
fg
=
"#F8F8F2"
,
selection
=
"#44475A"
,
comment
=
"#6272A4"
,
red
=
"#FF5555"
,
orange
=
"#FFB86C"
,
yellow
=
"#F1FA8C"
,
green
=
"#50fa7b"
,
purple
=
"#BD93F9"
,
cyan
=
"#8BE9FD"
,
pink
=
"#FF79C6"
,
bright_red
=
"#FF6E6E"
,
bright_green
=
"#69FF94"
,
bright_yellow
=
"#FFFFA5"
,
bright_blue
=
"#D6ACFF"
,
bright_magenta
=
"#FF92DF"
,
bright_cyan
=
"#A4FFFF"
,
bright_white
=
"#FFFFFF"
,
menu
=
"#21222C"
,
visual
=
"#3E4452"
,
gutter_fg
=
"#4B5263"
,
nontext
=
"#3B4048"
,
},
-- show the '~' characters after the end of buffers
show_end_of_buffer
=
false
,
-- default false
-- use transparent background
transparent_bg
=
true
,
-- default false
-- set custom lualine background color
lualine_bg_color
=
nil
,
-- default nil
-- set italic comment
italic_comment
=
true
,
-- default false
-- overrides the default highlights see `:h synIDattr`
overrides
=
{
-- Examples
-- NonText = { fg = dracula.colors().white }, -- set NonText fg to white
-- NvimTreeIndentMarker = { link = "NonText" }, -- link to NonText highlight
-- Nothing = {} -- clear highlight of Nothing
},
})
This diff is collapsed.
Click to expand it.
lua/codecraft/plugin/lsp/null-ls.lua
+
2
−
0
View file @
18dfa001
...
...
@@ -10,6 +10,7 @@ local formatters_linters = {
prettier
=
{},
rustfmt
=
{},
black
=
{},
stylua
=
{},
}
mason_null_ls
.
setup
({
...
...
@@ -20,6 +21,7 @@ null_ls.setup ({
formatting
.
prettier
,
formatting
.
rustfmt
,
formatting
.
black
,
formatting
.
stylua
,
},
on_attach
=
function
(
current_client
,
bufnr
)
if
current_client
.
supports_method
(
"textDocument/formatting"
)
then
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment