Skip to content

Commit

Permalink
Initial Personalization and Enabling Rust
Browse files Browse the repository at this point in the history
  • Loading branch information
gcaufield committed Mar 10, 2024
1 parent 3cfccc0 commit cde40af
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 9 deletions.
39 changes: 30 additions & 9 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ vim.g.maplocalleader = ' '

-- Set to true if you have a Nerd Font installed
vim.g.have_nerd_font = false
vim.o.guifont = 'CaskaydiaCove Nerd Font Mono'

-- [[ Setting options ]]
-- See `:help vim.opt`
Expand Down Expand Up @@ -535,7 +536,7 @@ require('lazy').setup({
-- clangd = {},
-- gopls = {},
-- pyright = {},
-- rust_analyzer = {},
rust_analyzer = {},
-- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs
--
-- Some languages (like typescript) have entire language plugins that can be useful:
Expand Down Expand Up @@ -722,16 +723,15 @@ require('lazy').setup({
-- 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`
'folke/tokyonight.nvim',
'maxmx03/solarized.nvim',
lazy = false,
priority = 1000, -- make sure to load this before all the other start plugins
init = function()
-- Load the colorscheme here.
-- Like many other themes, this one has different styles, and you could load
-- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'.
vim.cmd.colorscheme 'tokyonight-night'

-- You can configure highlights by doing something like
vim.cmd.hi 'Comment gui=none'
vim.o.background = 'dark'
vim.cmd.colorscheme 'solarized'
end,
},

Expand Down Expand Up @@ -784,7 +784,7 @@ require('lazy').setup({

---@diagnostic disable-next-line: missing-fields
require('nvim-treesitter.configs').setup {
ensure_installed = { 'bash', 'c', 'html', 'lua', 'markdown', 'vim', 'vimdoc' },
ensure_installed = { 'bash', 'c', 'html', 'lua', 'markdown', 'vim', 'vimdoc', 'rust' },
-- Autoinstall languages that are not installed
auto_install = true,
highlight = { enable = true },
Expand All @@ -809,15 +809,36 @@ require('lazy').setup({
-- Here are some example plugins that I've included in the kickstart repository.
-- Uncomment any of the lines below to enable them (you will need to restart nvim).
--
-- require 'kickstart.plugins.debug',
require 'kickstart.plugins.debug',
-- require 'kickstart.plugins.indent_line',

-- NOTE: The import below can automatically add your own plugins, configuration, etc from `lua/custom/plugins/*.lua`
-- This is the easiest way to modularize your config.
--
-- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going.
-- For additional information, see `:help lazy.nvim-lazy.nvim-structuring-your-plugins`
-- For additional information, nvimsee `:help lazy.nvim -lazy.nvim-structuring-your-plugins`
-- { import = 'custom.plugins' },
{ -- Directory Exploration
'nvim-neo-tree/neo-tree.nvim',
branch = 'v3.x',
dependencies = {
'nvim-lua/plenary.nvim',
'nvim-tree/nvim-web-devicons', -- not strictly required, but recommended
'MunifTanjim/nui.nvim',
-- "3rd/image.nvim", -- Optional image support in preview window: See `# Preview Mode` for more information
},
config = function()
vim.keymap.set('n', '<F3>', ':Neotree toggle<CR>')
end,
},
{ -- Floating Terminal
'voldikss/vim-floaterm',
config = function()
vim.keymap.set('n', '<leader>ft', ':FloatermNew --name=myfloat --height=0.8 --width=0.7 --autoclose=2 fish <CR>')
vim.keymap.set('n', 't', ':FloatermToggle myfloat <CR>')
vim.keymap.set('t', '<Esc>', '<C-\\><C-n>:q<CR>')
end,
},
}, {
ui = {
-- If you have a Nerd Font, set icons to an empty table which will use the
Expand Down
1 change: 1 addition & 0 deletions lua/kickstart/plugins/debug.lua
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ return {
ensure_installed = {
-- Update this to ensure that you have the debuggers for the langs you want
'delve',
'codelldb',
},
}

Expand Down

0 comments on commit cde40af

Please sign in to comment.