Sync my modifications with Kickstart
This commit is contained in:
parent
76b3d7325d
commit
4782c89c80
64
init.lua
64
init.lua
@ -95,6 +95,10 @@ vim.g.maplocalleader = ' '
|
|||||||
-- NOTE: You can change these options as you wish!
|
-- NOTE: You can change these options as you wish!
|
||||||
-- For more options, you can see `:help option-list`
|
-- For more options, you can see `:help option-list`
|
||||||
|
|
||||||
|
-- Spelling
|
||||||
|
vim.opt.spelllang = 'en_us'
|
||||||
|
vim.opt.spell = true
|
||||||
|
|
||||||
-- Make line numbers default
|
-- Make line numbers default
|
||||||
vim.opt.number = true
|
vim.opt.number = true
|
||||||
-- You can also add relative line numbers, for help with jumping.
|
-- You can also add relative line numbers, for help with jumping.
|
||||||
@ -253,8 +257,6 @@ require('lazy').setup({
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
{ 'catppuccin/nvim', name = 'catppuccin', priority = 1000 },
|
|
||||||
|
|
||||||
{
|
{
|
||||||
'iamcco/markdown-preview.nvim',
|
'iamcco/markdown-preview.nvim',
|
||||||
cmd = { 'MarkdownPreviewToggle', 'MarkdownPreview', 'MarkdownPreviewStop' },
|
cmd = { 'MarkdownPreviewToggle', 'MarkdownPreview', 'MarkdownPreviewStop' },
|
||||||
@ -542,8 +544,25 @@ require('lazy').setup({
|
|||||||
-- - settings (table): Override the default settings passed when initializing the server.
|
-- - settings (table): Override the default settings passed when initializing the server.
|
||||||
-- For example, to see the options for `lua_ls`, you could go to: https://luals.github.io/wiki/settings/
|
-- For example, to see the options for `lua_ls`, you could go to: https://luals.github.io/wiki/settings/
|
||||||
local servers = {
|
local servers = {
|
||||||
-- clangd = {},
|
clangd = {
|
||||||
-- gopls = {},
|
cmd = {
|
||||||
|
'clangd',
|
||||||
|
'--background-index',
|
||||||
|
'--clang-tidy',
|
||||||
|
'--header-insertion=iwyu',
|
||||||
|
'--completion-style=detailed',
|
||||||
|
'--function-arg-placeholders',
|
||||||
|
'--query-driver=/usr/bin/c++,/usr/bin/g++',
|
||||||
|
},
|
||||||
|
init_options = {
|
||||||
|
usePlaceholders = true,
|
||||||
|
completeUnimported = true,
|
||||||
|
clangdFileStatus = true,
|
||||||
|
semanticHighlighting = true,
|
||||||
|
},
|
||||||
|
flags = { debounce_text_changes = 150 },
|
||||||
|
},
|
||||||
|
gopls = {},
|
||||||
-- pyright = {},
|
-- pyright = {},
|
||||||
-- rust_analyzer = {},
|
-- rust_analyzer = {},
|
||||||
-- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs
|
-- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs
|
||||||
@ -625,6 +644,7 @@ require('lazy').setup({
|
|||||||
},
|
},
|
||||||
formatters_by_ft = {
|
formatters_by_ft = {
|
||||||
lua = { 'stylua' },
|
lua = { 'stylua' },
|
||||||
|
cpp = { 'clang_format' },
|
||||||
-- Conform can also run multiple formatters sequentially
|
-- Conform can also run multiple formatters sequentially
|
||||||
-- python = { "isort", "black" },
|
-- python = { "isort", "black" },
|
||||||
--
|
--
|
||||||
@ -733,12 +753,13 @@ require('lazy').setup({
|
|||||||
-- change the command in the config to whatever the name of that colorscheme is
|
-- change the command in the config to whatever the name of that colorscheme is
|
||||||
--
|
--
|
||||||
-- If you want to see what colorschemes are already installed, you can use `:Telescope colorscheme`
|
-- If you want to see what colorschemes are already installed, you can use `:Telescope colorscheme`
|
||||||
'folke/tokyonight.nvim',
|
'catppuccin/nvim',
|
||||||
lazy = false, -- make sure we load this during startup if it is your main colorscheme
|
lazy = false, -- make sure we load this during startup if it is your main colorscheme
|
||||||
priority = 1000, -- make sure to load this before all the other start plugins
|
priority = 1000, -- make sure to load this before all the other start plugins
|
||||||
|
setup = { flavor = 'mocha' },
|
||||||
config = function()
|
config = function()
|
||||||
-- Load the colorscheme here
|
-- Load the colorscheme here
|
||||||
vim.cmd.colorscheme 'tokyonight-night'
|
vim.cmd.colorscheme 'catppuccin'
|
||||||
|
|
||||||
-- You can configure highlights by doing something like
|
-- You can configure highlights by doing something like
|
||||||
vim.cmd.hi 'Comment gui=none'
|
vim.cmd.hi 'Comment gui=none'
|
||||||
@ -820,36 +841,5 @@ require('lazy').setup({
|
|||||||
{ import = 'custom.plugins' },
|
{ import = 'custom.plugins' },
|
||||||
}, {})
|
}, {})
|
||||||
|
|
||||||
-- Colorscheme
|
|
||||||
require('catppuccin').setup {
|
|
||||||
flavor = 'mocha',
|
|
||||||
}
|
|
||||||
vim.cmd.colorscheme 'catppuccin'
|
|
||||||
|
|
||||||
-- Spelling
|
|
||||||
vim.opt.spelllang = 'en_us'
|
|
||||||
vim.opt.spell = true
|
|
||||||
|
|
||||||
local lsp = require 'lspconfig'
|
|
||||||
lsp['clangd'].setup {
|
|
||||||
capabilities = capabilities,
|
|
||||||
cmd = {
|
|
||||||
'clangd',
|
|
||||||
'--background-index',
|
|
||||||
'--clang-tidy',
|
|
||||||
'--header-insertion=iwyu',
|
|
||||||
'--completion-style=detailed',
|
|
||||||
'--function-arg-placeholders',
|
|
||||||
'--query-driver=/usr/bin/c++,/usr/bin/g++',
|
|
||||||
},
|
|
||||||
init_options = {
|
|
||||||
usePlaceholders = true,
|
|
||||||
completeUnimported = true,
|
|
||||||
clangdFileStatus = true,
|
|
||||||
semanticHighlighting = true,
|
|
||||||
},
|
|
||||||
on_attach = on_attach,
|
|
||||||
flags = { debounce_text_changes = 150 },
|
|
||||||
}
|
|
||||||
-- The line beneath this is called `modeline`. See `:help modeline`
|
-- The line beneath this is called `modeline`. See `:help modeline`
|
||||||
-- vim: ts=2 sts=2 sw=2 et
|
-- vim: ts=2 sts=2 sw=2 et
|
||||||
|
Loading…
x
Reference in New Issue
Block a user