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
-- leader
vim
.
g
.
mapleader
=
' '
vim
.
g
.
mapleader
=
" "
vim
.
g
.
maplocalleader
=
' '
vim
.
g
.
maplocalleader
=
" "
-- load locale
-- load locale
require
(
'
codecraft.vimlocale
'
)
require
(
"
codecraft.vimlocale
"
)
-- load plugins
-- load plugins
require
(
'
codecraft.plugin-setup
'
)
require
(
"
codecraft.plugin-setup
"
)
-- core codecrafturation
-- core codecrafturation
require
(
'
codecraft.core.options
'
)
require
(
"
codecraft.core.options
"
)
require
(
'
codecraft.core.keymaps
'
)
require
(
"
codecraft.core.keymaps
"
)
require
(
'
codecraft.core.colorschemeconfig
'
)
require
(
"
codecraft.core.colorschemeconfig
"
)
require
(
'
codecraft.core.colorscheme
'
)
require
(
"
codecraft.core.colorscheme
"
)
-- plugin codecrafturation
-- plugin codecrafturation
require
(
'
codecraft.plugin.bufferline
'
)
require
(
"
codecraft.plugin.bufferline
"
)
require
(
'
codecraft.plugin.nvimtree
'
)
require
(
"
codecraft.plugin.nvimtree
"
)
require
(
'
codecraft.plugin.gitsigns
'
)
require
(
"
codecraft.plugin.gitsigns
"
)
require
(
'
codecraft.plugin.lualine
'
)
require
(
"
codecraft.plugin.lualine
"
)
require
(
'
codecraft.plugin.telescope
'
)
require
(
"
codecraft.plugin.telescope
"
)
require
(
'
codecraft.plugin.treesitter
'
)
require
(
"
codecraft.plugin.treesitter
"
)
require
(
'
codecraft.plugin.indent-comments
'
)
require
(
"
codecraft.plugin.indent-comments
"
)
require
(
'
codecraft.plugin.neodev
'
)
require
(
"
codecraft.plugin.neodev
"
)
require
(
'
codecraft.plugin.tmux-nvim-navigation
'
)
require
(
"
codecraft.plugin.tmux-nvim-navigation
"
)
require
(
'
codecraft.plugin.projects
'
)
require
(
"
codecraft.plugin.projects
"
)
-- LSP
-- LSP
require
(
'
codecraft.plugin.lsp.navic
'
)
require
(
"
codecraft.plugin.lsp.navic
"
)
require
(
'
codecraft.plugin.lsp.lsp
'
)
require
(
"
codecraft.plugin.lsp.lsp
"
)
require
(
'
codecraft.plugin.lsp.completion
'
)
require
(
"
codecraft.plugin.lsp.completion
"
)
require
(
'
codecraft.plugin.lsp.null-ls
'
)
require
(
"
codecraft.plugin.lsp.null-ls
"
)
require
(
'
codecraft.plugin.lsp.rust-tools
'
)
require
(
"
codecraft.plugin.lsp.rust-tools
"
)
-- DAP
-- DAP
require
(
'
codecraft.plugin.dap.dap
'
)
require
(
"
codecraft.plugin.dap.dap
"
)
require
(
'
codecraft.plugin.dap.virtual-text
'
)
require
(
"
codecraft.plugin.dap.virtual-text
"
)
require
(
'
codecraft.plugin.dap.dapui
'
)
require
(
"
codecraft.plugin.dap.dapui
"
)
This diff is collapsed.
Click to expand it.
lua/codecraft/core/colorschemeconfig.lua
+
115
−
115
View file @
18dfa001
-- ONEDARK
-- ONEDARK
require
(
'
onedark
'
).
setup
{
require
(
"
onedark
"
).
setup
(
{
-- Main options --
-- Main options --
style
=
'
dark
'
,
-- Default theme style. Choose between 'dark', 'darker', 'cool', 'deep', 'warm', 'warmer' and 'light'
style
=
"
dark
"
,
-- Default theme style. Choose between 'dark', 'darker', 'cool', 'deep', 'warm', 'warmer' and 'light'
transparent
=
true
,
-- Show/hide background
transparent
=
true
,
-- Show/hide background
term_colors
=
false
,
-- Change terminal color as per the selected theme style
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
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
cmp_itemkind_reverse
=
false
,
-- reverse item kind highlights in cmp menu
-- toggle theme style ---
-- 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_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_style_list
=
{
"
dark
"
,
"
darker
"
,
"
cool
"
,
"
deep
"
,
"
warm
"
,
"
warmer
"
,
"
light
"
},
-- List of styles to toggle between
-- Change code style ---
-- Change code style ---
-- Options are italic, bold, underline, none
-- Options are italic, bold, underline, none
-- You can configure multiple style with comma seperated, For e.g., keywords = 'italic,bold'
-- You can configure multiple style with comma seperated, For e.g., keywords = 'italic,bold'
code_style
=
{
code_style
=
{
comments
=
'
italic
'
,
comments
=
"
italic
"
,
keywords
=
'
none
'
,
keywords
=
"
none
"
,
functions
=
'
none
'
,
functions
=
"
none
"
,
strings
=
'
none
'
,
strings
=
"
none
"
,
variables
=
'
none
'
variables
=
"
none
"
,
},
},
-- Lualine options --
-- Lualine options --
lualine
=
{
lualine
=
{
transparent
=
true
,
-- lualine center bar transparency
transparent
=
true
,
-- lualine center bar transparency
},
},
-- Custom Highlights --
-- Custom Highlights --
colors
=
{},
-- Override default colors
colors
=
{},
-- Override default colors
highlights
=
{},
-- Override highlight groups
highlights
=
{},
-- Override highlight groups
-- Plugins Config --
-- Plugins Config --
diagnostics
=
{
diagnostics
=
{
darker
=
true
,
-- darker colors for diagnostic
darker
=
true
,
-- darker colors for diagnostic
undercurl
=
true
,
-- use undercurl instead of underline for diagnostics
undercurl
=
true
,
-- use undercurl instead of underline for diagnostics
background
=
false
,
-- use background color for virtual text
background
=
false
,
-- use background color for virtual text
},
},
}
}
)
-- CATPUCCIN
-- CATPUCCIN
require
(
"catppuccin"
).
setup
({
require
(
"catppuccin"
).
setup
({
flavour
=
"mocha"
,
-- latte, frappe, macchiato, mocha
flavour
=
"mocha"
,
-- latte, frappe, macchiato, mocha
background
=
{
-- :h background
background
=
{
-- :h background
light
=
"latte"
,
light
=
"latte"
,
dark
=
"mocha"
,
dark
=
"mocha"
,
},
},
transparent_background
=
true
,
transparent_background
=
true
,
show_end_of_buffer
=
false
,
-- show the '~' characters after the end of buffers
show_end_of_buffer
=
false
,
-- show the '~' characters after the end of buffers
term_colors
=
false
,
term_colors
=
false
,
dim_inactive
=
{
dim_inactive
=
{
enabled
=
false
,
enabled
=
false
,
shade
=
"dark"
,
shade
=
"dark"
,
percentage
=
0
.
15
,
percentage
=
0
.
15
,
},
},
no_italic
=
false
,
-- Force no italic
no_italic
=
false
,
-- Force no italic
no_bold
=
false
,
-- Force no bold
no_bold
=
false
,
-- Force no bold
styles
=
{
styles
=
{
comments
=
{
"italic"
},
comments
=
{
"italic"
},
conditionals
=
{
"italic"
},
conditionals
=
{
"italic"
},
loops
=
{},
loops
=
{},
functions
=
{},
functions
=
{},
keywords
=
{},
keywords
=
{},
strings
=
{},
strings
=
{},
variables
=
{},
variables
=
{},
numbers
=
{},
numbers
=
{},
booleans
=
{},
booleans
=
{},
properties
=
{},
properties
=
{},
types
=
{},
types
=
{},
operators
=
{},
operators
=
{},
},
},
color_overrides
=
{},
color_overrides
=
{},
custom_highlights
=
{},
custom_highlights
=
{},
integrations
=
{
integrations
=
{
cmp
=
true
,
cmp
=
true
,
gitsigns
=
true
,
gitsigns
=
true
,
nvimtree
=
true
,
nvimtree
=
true
,
telescope
=
true
,
telescope
=
true
,
notify
=
false
,
notify
=
false
,
mini
=
false
,
mini
=
false
,
-- For more plugins integrations please scroll down (https://github.com/catppuccin/nvim#integrations)
-- For more plugins integrations please scroll down (https://github.com/catppuccin/nvim#integrations)
},
},
})
})
-- DRACULA
-- DRACULA
require
(
'
dracula
'
).
setup
({
require
(
"
dracula
"
).
setup
({
-- customize dracula color palette
-- customize dracula color palette
colors
=
{
colors
=
{
bg
=
"#282A36"
,
bg
=
"#282A36"
,
fg
=
"#F8F8F2"
,
fg
=
"#F8F8F2"
,
selection
=
"#44475A"
,
selection
=
"#44475A"
,
comment
=
"#6272A4"
,
comment
=
"#6272A4"
,
red
=
"#FF5555"
,
red
=
"#FF5555"
,
orange
=
"#FFB86C"
,
orange
=
"#FFB86C"
,
yellow
=
"#F1FA8C"
,
yellow
=
"#F1FA8C"
,
green
=
"#50fa7b"
,
green
=
"#50fa7b"
,
purple
=
"#BD93F9"
,
purple
=
"#BD93F9"
,
cyan
=
"#8BE9FD"
,
cyan
=
"#8BE9FD"
,
pink
=
"#FF79C6"
,
pink
=
"#FF79C6"
,
bright_red
=
"#FF6E6E"
,
bright_red
=
"#FF6E6E"
,
bright_green
=
"#69FF94"
,
bright_green
=
"#69FF94"
,
bright_yellow
=
"#FFFFA5"
,
bright_yellow
=
"#FFFFA5"
,
bright_blue
=
"#D6ACFF"
,
bright_blue
=
"#D6ACFF"
,
bright_magenta
=
"#FF92DF"
,
bright_magenta
=
"#FF92DF"
,
bright_cyan
=
"#A4FFFF"
,
bright_cyan
=
"#A4FFFF"
,
bright_white
=
"#FFFFFF"
,
bright_white
=
"#FFFFFF"
,
menu
=
"#21222C"
,
menu
=
"#21222C"
,
visual
=
"#3E4452"
,
visual
=
"#3E4452"
,
gutter_fg
=
"#4B5263"
,
gutter_fg
=
"#4B5263"
,
nontext
=
"#3B4048"
,
nontext
=
"#3B4048"
,
},
},
-- show the '~' characters after the end of buffers
-- show the '~' characters after the end of buffers
show_end_of_buffer
=
false
,
-- default false
show_end_of_buffer
=
false
,
-- default false
-- use transparent background
-- use transparent background
transparent_bg
=
true
,
-- default false
transparent_bg
=
true
,
-- default false
-- set custom lualine background color
-- set custom lualine background color
lualine_bg_color
=
nil
,
-- default nil
lualine_bg_color
=
nil
,
-- default nil
-- set italic comment
-- set italic comment
italic_comment
=
true
,
-- default false
italic_comment
=
true
,
-- default false
-- overrides the default highlights see `:h synIDattr`
-- overrides the default highlights see `:h synIDattr`
overrides
=
{
overrides
=
{
-- Examples
-- Examples
-- NonText = { fg = dracula.colors().white }, -- set NonText fg to white
-- NonText = { fg = dracula.colors().white }, -- set NonText fg to white
-- NvimTreeIndentMarker = { link = "NonText" }, -- link to NonText highlight
-- NvimTreeIndentMarker = { link = "NonText" }, -- link to NonText highlight
-- Nothing = {} -- clear highlight of Nothing
-- 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 = {
...
@@ -10,6 +10,7 @@ local formatters_linters = {
prettier
=
{},
prettier
=
{},
rustfmt
=
{},
rustfmt
=
{},
black
=
{},
black
=
{},
stylua
=
{},
}
}
mason_null_ls
.
setup
({
mason_null_ls
.
setup
({
...
@@ -20,6 +21,7 @@ null_ls.setup ({
...
@@ -20,6 +21,7 @@ null_ls.setup ({
formatting
.
prettier
,
formatting
.
prettier
,
formatting
.
rustfmt
,
formatting
.
rustfmt
,
formatting
.
black
,
formatting
.
black
,
formatting
.
stylua
,
},
},
on_attach
=
function
(
current_client
,
bufnr
)
on_attach
=
function
(
current_client
,
bufnr
)
if
current_client
.
supports_method
(
"textDocument/formatting"
)
then
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