diff --git a/init.lua b/init.lua index 1ff16af5..7336a65a 100644 --- a/init.lua +++ b/init.lua @@ -189,13 +189,13 @@ require('lazy').setup({ }, }, + { "catppuccin/nvim", name = "catppuccin", priority = 1000 }, + { - -- Theme inspired by Atom - 'navarasu/onedark.nvim', - priority = 1000, - config = function() - vim.cmd.colorscheme 'onedark' - end, + "iamcco/markdown-preview.nvim", + cmd = { "MarkdownPreviewToggle", "MarkdownPreview", "MarkdownPreviewStop" }, + ft = { "markdown" }, + build = function() vim.fn["mkdp#util#install"]() end, }, { @@ -257,7 +257,7 @@ require('lazy').setup({ -- NOTE: Next Step on Your Neovim Journey: Add/Configure additional "plugins" for kickstart -- These are some example plugins that I've included in the kickstart repository. -- Uncomment any of the lines below to enable them. - -- require 'kickstart.plugins.autoformat', + require 'kickstart.plugins.autoformat', -- require 'kickstart.plugins.debug', -- NOTE: The import below can automatically add your own plugins, configuration, etc from `lua/custom/plugins/*.lua` @@ -266,13 +266,23 @@ require('lazy').setup({ -- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going. -- -- For additional information see: https://github.com/folke/lazy.nvim#-structuring-your-plugins - -- { import = 'custom.plugins' }, + { import = 'custom.plugins' }, }, {}) -- [[ Setting options ]] -- See `:help vim.o` -- NOTE: You can change these options as you wish! +-- Colorscheme +require("catppuccin").setup({ + flavor = "mocha" +}) +vim.cmd.colorscheme "catppuccin" + +-- Spelling +vim.opt.spelllang = 'en_us' +vim.opt.spell = true + -- Set highlight on search vim.o.hlsearch = false @@ -568,12 +578,13 @@ require('mason-lspconfig').setup() -- If you want to override the default filetypes that your language server will attach to you can -- define the property 'filetypes' to the map in question. local servers = { - -- clangd = {}, - -- gopls = {}, - -- pyright = {}, - -- rust_analyzer = {}, + clangd = {}, + gopls = {}, + pyright = {}, + rust_analyzer = {}, -- tsserver = {}, - -- html = { filetypes = { 'html', 'twig', 'hbs'} }, + html = { filetypes = { 'html', 'twig', 'hbs'} }, + marksman = {}, lua_ls = { Lua = { @@ -662,5 +673,26 @@ cmp.setup { }, } +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` -- vim: ts=2 sts=2 sw=2 et