Add customizations

This commit is contained in:
Brad 2024-04-04 08:22:01 -04:00
parent 19afab1641
commit da6943bdbb
3 changed files with 59 additions and 4 deletions

View file

@ -91,13 +91,31 @@ vim.g.mapleader = ' '
vim.g.maplocalleader = ' '
-- Set to true if you have a Nerd Font installed
vim.g.have_nerd_font = false
vim.g.have_nerd_font = true
-- [[ Setting options ]]
-- See `:help vim.opt`
-- NOTE: You can change these options as you wish!
-- For more options, you can see `:help option-list`
-- Powershell Custom
-- Check if Windows
local is_win32 = vim.fn.has 'win32'
if is_win32 == 1 then
local powershell_options = {
shell = vim.fn.executable 'pwsh' == 1 and 'pwsh' or 'powershell',
shellcmdflag = '-NoLogo -NoProfile -ExecutionPolicy RemoteSigned -Command [Console]::InputEncoding=[Console]::OutputEncoding=[System.Text.Encoding]::UTF8;',
shellredir = '-RedirectStandardOutput %s -NoNewWindow -Wait',
shellpipe = '2>&1 | Out-File -Encoding UTF8 %s; exit $LastExitCode',
shellquote = '',
shellxquote = '',
}
for option, value in pairs(powershell_options) do
vim.opt[option] = value
end
end
-- Make line numbers default
vim.opt.number = true
-- You can also add relative line numbers, to help with jumping.
@ -538,8 +556,8 @@ require('lazy').setup({
-- - 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/
local servers = {
-- clangd = {},
-- gopls = {},
clangd = {},
gopls = {},
-- pyright = {},
-- rust_analyzer = {},
-- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs
@ -847,7 +865,7 @@ require('lazy').setup({
--
-- 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`
-- { import = 'custom.plugins' },
{ import = 'custom.plugins' },
}, {
ui = {
-- If you are using a Nerd Font: set icons to an empty table which will use the