mirror of
				https://github.com/KevinMidboe/chsh.git
				synced 2025-10-29 12:30:13 +00:00 
			
		
		
		
	Compare commits
	
		
			5 Commits
		
	
	
		
			9a27a5c4de
			...
			main
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 6f207d438e | |||
| 9c4dd4a112 | |||
| 84a0ed4d1d | |||
| 2c2abb0fc8 | |||
| b881418b33 | 
							
								
								
									
										5
									
								
								.profile
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								.profile
									
									
									
									
									
								
							@@ -15,3 +15,8 @@ export PATH="/opt/local/bin:/opt/local/sbin:$PATH"
 | 
				
			|||||||
# PATH="/Library/Frameworks/Python.framework/Versions/3.11/bin:$PATH"
 | 
					# PATH="/Library/Frameworks/Python.framework/Versions/3.11/bin:$PATH"
 | 
				
			||||||
# export PATH
 | 
					# export PATH
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Setting go environment
 | 
				
			||||||
 | 
					export GOPATH=$HOME/dev/go
 | 
				
			||||||
 | 
					export GOROOT="$(brew --prefix golang)/libexec"
 | 
				
			||||||
 | 
					export PATH="$PATH:$GOPATH/bin:$GOROOT/bin"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										13
									
								
								deploy.sh
									
									
									
									
									
								
							
							
						
						
									
										13
									
								
								deploy.sh
									
									
									
									
									
								
							@@ -78,7 +78,7 @@ move_profile_file () {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
install_packages_brew () {
 | 
					install_packages_brew () {
 | 
				
			||||||
    declare -a packages=("cmake" "tree" "wget" "jq" "ripgrep" "watch" "tmux" "fish" "lua-language-server" "node@18" "gh")
 | 
					    declare -a packages=("cmake" "tree" "wget" "httpie" "jq" "ripgrep" "watch" "tmux" "fish" "lua-language-server" "node@18" "golang" "gh")
 | 
				
			||||||
    echo "Installing ${#packages[@]} packages from brew"
 | 
					    echo "Installing ${#packages[@]} packages from brew"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    brew install --quiet "${packages[@]}"
 | 
					    brew install --quiet "${packages[@]}"
 | 
				
			||||||
@@ -98,6 +98,14 @@ configure_fish () {
 | 
				
			|||||||
    fi
 | 
					    fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					configure_go () {
 | 
				
			||||||
 | 
					    fish -c source $HOME/.profile
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    if ( grep -q GOPATH "$HOME/.profile" ) && [ ! -d $GOPATH ]; then
 | 
				
			||||||
 | 
					        mkdir -p $GOPATH $GOPATH/{bin,pkg}
 | 
				
			||||||
 | 
					    fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Promps for installing custom SF Mono font
 | 
					# Promps for installing custom SF Mono font
 | 
				
			||||||
# patched with devicons + more
 | 
					# patched with devicons + more
 | 
				
			||||||
get_input_df_false "Install custom font? (y/N) " install_font
 | 
					get_input_df_false "Install custom font? (y/N) " install_font
 | 
				
			||||||
@@ -121,5 +129,4 @@ get_input_df_true "Move config files to $HOME/.config? (Y/n) " move_config_files
 | 
				
			|||||||
echo "Configurating fish shell"
 | 
					echo "Configurating fish shell"
 | 
				
			||||||
configure_fish
 | 
					configure_fish
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					configure_go
 | 
				
			||||||
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
@@ -445,18 +445,19 @@ end
 | 
				
			|||||||
--  Add any additional override configuration in the following tables. They will be passed to
 | 
					--  Add any additional override configuration in the following tables. They will be passed to
 | 
				
			||||||
--  the `settings` field of the server config. You must look up that documentation yourself.
 | 
					--  the `settings` field of the server config. You must look up that documentation yourself.
 | 
				
			||||||
local servers = {
 | 
					local servers = {
 | 
				
			||||||
  -- clangd = {},
 | 
					  clangd = {},
 | 
				
			||||||
  -- gopls = {},
 | 
					  cssls = {},
 | 
				
			||||||
  -- pyright = {},
 | 
					  eslint = {},
 | 
				
			||||||
  -- rust_analyzer = {},
 | 
					  jsonls = {},
 | 
				
			||||||
  -- tsserver = {},
 | 
					  golangci_lint_ls = {},
 | 
				
			||||||
 | 
					  gopls = {},
 | 
				
			||||||
  -- sumneko_lua = {
 | 
					  lua_ls = {},
 | 
				
			||||||
  --   Lua = {
 | 
					  pylsp = {},
 | 
				
			||||||
  --     workspace = { checkThirdParty = false },
 | 
					  rust_analyzer = {},
 | 
				
			||||||
  --     telemetry = { enable = false },
 | 
					  svelte = {},
 | 
				
			||||||
  --   },
 | 
					  tsserver = {},
 | 
				
			||||||
  -- },
 | 
					  vimls = {},
 | 
				
			||||||
 | 
					  volar = {},
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
-- Setup neovim lua configuration
 | 
					-- Setup neovim lua configuration
 | 
				
			||||||
@@ -469,8 +470,20 @@ capabilities = require('cmp_nvim_lsp').default_capabilities(capabilities)
 | 
				
			|||||||
-- Setup mason so it can manage external tooling
 | 
					-- Setup mason so it can manage external tooling
 | 
				
			||||||
require("mason").setup()
 | 
					require("mason").setup()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
require("mason-lspconfig").setup {
 | 
					-- Configure lspconfig for each server
 | 
				
			||||||
  ensure_installed = { "cssls", "eslint", "jsonls", "lua_ls", "pylsp", "rust_analyzer", "svelte", "tsserver", "vimls", "volar" },
 | 
					local mason_lspconfig = require 'mason-lspconfig'
 | 
				
			||||||
 | 
					mason_lspconfig.setup {
 | 
				
			||||||
 | 
					  ensure_installed = vim.tbl_keys(servers),
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					mason_lspconfig.setup_handlers {
 | 
				
			||||||
 | 
					  function(server_name)
 | 
				
			||||||
 | 
					    require('lspconfig')[server_name].setup {
 | 
				
			||||||
 | 
					      capabilities = capabilities,
 | 
				
			||||||
 | 
					      on_attach = on_attach,
 | 
				
			||||||
 | 
					      settings = servers[server_name],
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					  end,
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
-- Turn on lsp status information
 | 
					-- Turn on lsp status information
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user